mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-21 09:33:01 +08:00
update protobuf
This commit is contained in:
parent
c1ff8242d9
commit
2846804234
@ -496,8 +496,7 @@ export function controlKeyToJSON(object: ControlKey): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export enum FileType {
|
export enum FileType {
|
||||||
UnknownFileType = 0,
|
Dir = 0,
|
||||||
Dir = 1,
|
|
||||||
DirLink = 2,
|
DirLink = 2,
|
||||||
DirDrive = 3,
|
DirDrive = 3,
|
||||||
File = 4,
|
File = 4,
|
||||||
@ -508,9 +507,6 @@ export enum FileType {
|
|||||||
export function fileTypeFromJSON(object: any): FileType {
|
export function fileTypeFromJSON(object: any): FileType {
|
||||||
switch (object) {
|
switch (object) {
|
||||||
case 0:
|
case 0:
|
||||||
case "UnknownFileType":
|
|
||||||
return FileType.UnknownFileType;
|
|
||||||
case 1:
|
|
||||||
case "Dir":
|
case "Dir":
|
||||||
return FileType.Dir;
|
return FileType.Dir;
|
||||||
case 2:
|
case 2:
|
||||||
@ -534,8 +530,6 @@ export function fileTypeFromJSON(object: any): FileType {
|
|||||||
|
|
||||||
export function fileTypeToJSON(object: FileType): string {
|
export function fileTypeToJSON(object: FileType): string {
|
||||||
switch (object) {
|
switch (object) {
|
||||||
case FileType.UnknownFileType:
|
|
||||||
return "UnknownFileType";
|
|
||||||
case FileType.Dir:
|
case FileType.Dir:
|
||||||
return "Dir";
|
return "Dir";
|
||||||
case FileType.DirLink:
|
case FileType.DirLink:
|
||||||
@ -819,8 +813,7 @@ export interface PermissionInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export enum PermissionInfo_Permission {
|
export enum PermissionInfo_Permission {
|
||||||
Unknown = 0,
|
Keyboard = 0,
|
||||||
Keyboard = 1,
|
|
||||||
Clipboard = 2,
|
Clipboard = 2,
|
||||||
Audio = 3,
|
Audio = 3,
|
||||||
UNRECOGNIZED = -1,
|
UNRECOGNIZED = -1,
|
||||||
@ -831,9 +824,6 @@ export function permissionInfo_PermissionFromJSON(
|
|||||||
): PermissionInfo_Permission {
|
): PermissionInfo_Permission {
|
||||||
switch (object) {
|
switch (object) {
|
||||||
case 0:
|
case 0:
|
||||||
case "Unknown":
|
|
||||||
return PermissionInfo_Permission.Unknown;
|
|
||||||
case 1:
|
|
||||||
case "Keyboard":
|
case "Keyboard":
|
||||||
return PermissionInfo_Permission.Keyboard;
|
return PermissionInfo_Permission.Keyboard;
|
||||||
case 2:
|
case 2:
|
||||||
@ -853,8 +843,6 @@ export function permissionInfo_PermissionToJSON(
|
|||||||
object: PermissionInfo_Permission
|
object: PermissionInfo_Permission
|
||||||
): string {
|
): string {
|
||||||
switch (object) {
|
switch (object) {
|
||||||
case PermissionInfo_Permission.Unknown:
|
|
||||||
return "Unknown";
|
|
||||||
case PermissionInfo_Permission.Keyboard:
|
case PermissionInfo_Permission.Keyboard:
|
||||||
return "Keyboard";
|
return "Keyboard";
|
||||||
case PermissionInfo_Permission.Clipboard:
|
case PermissionInfo_Permission.Clipboard:
|
||||||
|
@ -139,8 +139,7 @@ export interface RegisterPkResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export enum RegisterPkResponse_Result {
|
export enum RegisterPkResponse_Result {
|
||||||
UNKNOWN = 0,
|
OK = 0,
|
||||||
OK = 1,
|
|
||||||
UUID_MISMATCH = 2,
|
UUID_MISMATCH = 2,
|
||||||
ID_EXISTS = 3,
|
ID_EXISTS = 3,
|
||||||
TOO_FREQUENT = 4,
|
TOO_FREQUENT = 4,
|
||||||
@ -155,9 +154,6 @@ export function registerPkResponse_ResultFromJSON(
|
|||||||
): RegisterPkResponse_Result {
|
): RegisterPkResponse_Result {
|
||||||
switch (object) {
|
switch (object) {
|
||||||
case 0:
|
case 0:
|
||||||
case "UNKNOWN":
|
|
||||||
return RegisterPkResponse_Result.UNKNOWN;
|
|
||||||
case 1:
|
|
||||||
case "OK":
|
case "OK":
|
||||||
return RegisterPkResponse_Result.OK;
|
return RegisterPkResponse_Result.OK;
|
||||||
case 2:
|
case 2:
|
||||||
@ -189,8 +185,6 @@ export function registerPkResponse_ResultToJSON(
|
|||||||
object: RegisterPkResponse_Result
|
object: RegisterPkResponse_Result
|
||||||
): string {
|
): string {
|
||||||
switch (object) {
|
switch (object) {
|
||||||
case RegisterPkResponse_Result.UNKNOWN:
|
|
||||||
return "UNKNOWN";
|
|
||||||
case RegisterPkResponse_Result.OK:
|
case RegisterPkResponse_Result.OK:
|
||||||
return "OK";
|
return "OK";
|
||||||
case RegisterPkResponse_Result.UUID_MISMATCH:
|
case RegisterPkResponse_Result.UUID_MISMATCH:
|
||||||
@ -221,8 +215,7 @@ export interface PunchHoleResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export enum PunchHoleResponse_Failure {
|
export enum PunchHoleResponse_Failure {
|
||||||
UNKNOWN = 0,
|
ID_NOT_EXIST = 0,
|
||||||
ID_NOT_EXIST = 1,
|
|
||||||
OFFLINE = 2,
|
OFFLINE = 2,
|
||||||
LICENSE_MISMATCH = 3,
|
LICENSE_MISMATCH = 3,
|
||||||
LICENSE_OVERUSE = 4,
|
LICENSE_OVERUSE = 4,
|
||||||
@ -234,9 +227,6 @@ export function punchHoleResponse_FailureFromJSON(
|
|||||||
): PunchHoleResponse_Failure {
|
): PunchHoleResponse_Failure {
|
||||||
switch (object) {
|
switch (object) {
|
||||||
case 0:
|
case 0:
|
||||||
case "UNKNOWN":
|
|
||||||
return PunchHoleResponse_Failure.UNKNOWN;
|
|
||||||
case 1:
|
|
||||||
case "ID_NOT_EXIST":
|
case "ID_NOT_EXIST":
|
||||||
return PunchHoleResponse_Failure.ID_NOT_EXIST;
|
return PunchHoleResponse_Failure.ID_NOT_EXIST;
|
||||||
case 2:
|
case 2:
|
||||||
@ -259,8 +249,6 @@ export function punchHoleResponse_FailureToJSON(
|
|||||||
object: PunchHoleResponse_Failure
|
object: PunchHoleResponse_Failure
|
||||||
): string {
|
): string {
|
||||||
switch (object) {
|
switch (object) {
|
||||||
case PunchHoleResponse_Failure.UNKNOWN:
|
|
||||||
return "UNKNOWN";
|
|
||||||
case PunchHoleResponse_Failure.ID_NOT_EXIST:
|
case PunchHoleResponse_Failure.ID_NOT_EXIST:
|
||||||
return "ID_NOT_EXIST";
|
return "ID_NOT_EXIST";
|
||||||
case PunchHoleResponse_Failure.OFFLINE:
|
case PunchHoleResponse_Failure.OFFLINE:
|
||||||
|
Loading…
Reference in New Issue
Block a user