mirror of
https://github.com/VaalaCat/frp-panel.git
synced 2025-09-27 03:36:10 +08:00
753 lines
34 KiB
TypeScript
753 lines
34 KiB
TypeScript
// @generated by protobuf-ts 2.9.3
|
|
// @generated from protobuf file "api_client.proto" (package "api_client", syntax proto3)
|
|
// tslint:disable
|
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
import { WireType } from "@protobuf-ts/runtime";
|
|
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
import { Client } from "./common";
|
|
import { Status } from "./common";
|
|
/**
|
|
* @generated from protobuf message api_client.InitClientRequest
|
|
*/
|
|
export interface InitClientRequest {
|
|
/**
|
|
* @generated from protobuf field: optional string client_id = 1;
|
|
*/
|
|
clientId?: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api_client.InitClientResponse
|
|
*/
|
|
export interface InitClientResponse {
|
|
/**
|
|
* @generated from protobuf field: optional common.Status status = 1;
|
|
*/
|
|
status?: Status;
|
|
/**
|
|
* @generated from protobuf field: optional string client_id = 2;
|
|
*/
|
|
clientId?: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api_client.ListClientsRequest
|
|
*/
|
|
export interface ListClientsRequest {
|
|
/**
|
|
* @generated from protobuf field: optional int32 page = 1;
|
|
*/
|
|
page?: number;
|
|
/**
|
|
* @generated from protobuf field: optional int32 page_size = 2;
|
|
*/
|
|
pageSize?: number;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api_client.ListClientsResponse
|
|
*/
|
|
export interface ListClientsResponse {
|
|
/**
|
|
* @generated from protobuf field: optional common.Status status = 1;
|
|
*/
|
|
status?: Status;
|
|
/**
|
|
* @generated from protobuf field: optional int32 total = 2;
|
|
*/
|
|
total?: number;
|
|
/**
|
|
* @generated from protobuf field: repeated common.Client clients = 3;
|
|
*/
|
|
clients: Client[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api_client.GetClientRequest
|
|
*/
|
|
export interface GetClientRequest {
|
|
/**
|
|
* @generated from protobuf field: optional string client_id = 1;
|
|
*/
|
|
clientId?: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api_client.GetClientResponse
|
|
*/
|
|
export interface GetClientResponse {
|
|
/**
|
|
* @generated from protobuf field: optional common.Status status = 1;
|
|
*/
|
|
status?: Status;
|
|
/**
|
|
* @generated from protobuf field: optional common.Client client = 2;
|
|
*/
|
|
client?: Client;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api_client.DeleteClientRequest
|
|
*/
|
|
export interface DeleteClientRequest {
|
|
/**
|
|
* @generated from protobuf field: optional string client_id = 1;
|
|
*/
|
|
clientId?: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api_client.DeleteClientResponse
|
|
*/
|
|
export interface DeleteClientResponse {
|
|
/**
|
|
* @generated from protobuf field: optional common.Status status = 1;
|
|
*/
|
|
status?: Status;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api_client.UpdateFRPCRequest
|
|
*/
|
|
export interface UpdateFRPCRequest {
|
|
/**
|
|
* @generated from protobuf field: optional string client_id = 1;
|
|
*/
|
|
clientId?: string;
|
|
/**
|
|
* @generated from protobuf field: optional string server_id = 2;
|
|
*/
|
|
serverId?: string;
|
|
/**
|
|
* @generated from protobuf field: optional bytes config = 3;
|
|
*/
|
|
config?: Uint8Array;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api_client.UpdateFRPCResponse
|
|
*/
|
|
export interface UpdateFRPCResponse {
|
|
/**
|
|
* @generated from protobuf field: optional common.Status status = 1;
|
|
*/
|
|
status?: Status;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api_client.RemoveFRPCRequest
|
|
*/
|
|
export interface RemoveFRPCRequest {
|
|
/**
|
|
* @generated from protobuf field: optional string client_id = 1;
|
|
*/
|
|
clientId?: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api_client.RemoveFRPCResponse
|
|
*/
|
|
export interface RemoveFRPCResponse {
|
|
/**
|
|
* @generated from protobuf field: optional common.Status status = 1;
|
|
*/
|
|
status?: Status;
|
|
}
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class InitClientRequest$Type extends MessageType<InitClientRequest> {
|
|
constructor() {
|
|
super("api_client.InitClientRequest", [
|
|
{ no: 1, name: "client_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<InitClientRequest>): InitClientRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<InitClientRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InitClientRequest): InitClientRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* optional string client_id */ 1:
|
|
message.clientId = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: InitClientRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* optional string client_id = 1; */
|
|
if (message.clientId !== undefined)
|
|
writer.tag(1, WireType.LengthDelimited).string(message.clientId);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api_client.InitClientRequest
|
|
*/
|
|
export const InitClientRequest = new InitClientRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class InitClientResponse$Type extends MessageType<InitClientResponse> {
|
|
constructor() {
|
|
super("api_client.InitClientResponse", [
|
|
{ no: 1, name: "status", kind: "message", T: () => Status },
|
|
{ no: 2, name: "client_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<InitClientResponse>): InitClientResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<InitClientResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InitClientResponse): InitClientResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* optional common.Status status */ 1:
|
|
message.status = Status.internalBinaryRead(reader, reader.uint32(), options, message.status);
|
|
break;
|
|
case /* optional string client_id */ 2:
|
|
message.clientId = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: InitClientResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* optional common.Status status = 1; */
|
|
if (message.status)
|
|
Status.internalBinaryWrite(message.status, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* optional string client_id = 2; */
|
|
if (message.clientId !== undefined)
|
|
writer.tag(2, WireType.LengthDelimited).string(message.clientId);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api_client.InitClientResponse
|
|
*/
|
|
export const InitClientResponse = new InitClientResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListClientsRequest$Type extends MessageType<ListClientsRequest> {
|
|
constructor() {
|
|
super("api_client.ListClientsRequest", [
|
|
{ no: 1, name: "page", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
{ no: 2, name: "page_size", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ListClientsRequest>): ListClientsRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListClientsRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListClientsRequest): ListClientsRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* optional int32 page */ 1:
|
|
message.page = reader.int32();
|
|
break;
|
|
case /* optional int32 page_size */ 2:
|
|
message.pageSize = reader.int32();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: ListClientsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* optional int32 page = 1; */
|
|
if (message.page !== undefined)
|
|
writer.tag(1, WireType.Varint).int32(message.page);
|
|
/* optional int32 page_size = 2; */
|
|
if (message.pageSize !== undefined)
|
|
writer.tag(2, WireType.Varint).int32(message.pageSize);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api_client.ListClientsRequest
|
|
*/
|
|
export const ListClientsRequest = new ListClientsRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListClientsResponse$Type extends MessageType<ListClientsResponse> {
|
|
constructor() {
|
|
super("api_client.ListClientsResponse", [
|
|
{ no: 1, name: "status", kind: "message", T: () => Status },
|
|
{ no: 2, name: "total", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
{ no: 3, name: "clients", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Client }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ListClientsResponse>): ListClientsResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.clients = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListClientsResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListClientsResponse): ListClientsResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* optional common.Status status */ 1:
|
|
message.status = Status.internalBinaryRead(reader, reader.uint32(), options, message.status);
|
|
break;
|
|
case /* optional int32 total */ 2:
|
|
message.total = reader.int32();
|
|
break;
|
|
case /* repeated common.Client clients */ 3:
|
|
message.clients.push(Client.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: ListClientsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* optional common.Status status = 1; */
|
|
if (message.status)
|
|
Status.internalBinaryWrite(message.status, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* optional int32 total = 2; */
|
|
if (message.total !== undefined)
|
|
writer.tag(2, WireType.Varint).int32(message.total);
|
|
/* repeated common.Client clients = 3; */
|
|
for (let i = 0; i < message.clients.length; i++)
|
|
Client.internalBinaryWrite(message.clients[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api_client.ListClientsResponse
|
|
*/
|
|
export const ListClientsResponse = new ListClientsResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetClientRequest$Type extends MessageType<GetClientRequest> {
|
|
constructor() {
|
|
super("api_client.GetClientRequest", [
|
|
{ no: 1, name: "client_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetClientRequest>): GetClientRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetClientRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetClientRequest): GetClientRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* optional string client_id */ 1:
|
|
message.clientId = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetClientRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* optional string client_id = 1; */
|
|
if (message.clientId !== undefined)
|
|
writer.tag(1, WireType.LengthDelimited).string(message.clientId);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api_client.GetClientRequest
|
|
*/
|
|
export const GetClientRequest = new GetClientRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetClientResponse$Type extends MessageType<GetClientResponse> {
|
|
constructor() {
|
|
super("api_client.GetClientResponse", [
|
|
{ no: 1, name: "status", kind: "message", T: () => Status },
|
|
{ no: 2, name: "client", kind: "message", T: () => Client }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetClientResponse>): GetClientResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetClientResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetClientResponse): GetClientResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* optional common.Status status */ 1:
|
|
message.status = Status.internalBinaryRead(reader, reader.uint32(), options, message.status);
|
|
break;
|
|
case /* optional common.Client client */ 2:
|
|
message.client = Client.internalBinaryRead(reader, reader.uint32(), options, message.client);
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: GetClientResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* optional common.Status status = 1; */
|
|
if (message.status)
|
|
Status.internalBinaryWrite(message.status, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* optional common.Client client = 2; */
|
|
if (message.client)
|
|
Client.internalBinaryWrite(message.client, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api_client.GetClientResponse
|
|
*/
|
|
export const GetClientResponse = new GetClientResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteClientRequest$Type extends MessageType<DeleteClientRequest> {
|
|
constructor() {
|
|
super("api_client.DeleteClientRequest", [
|
|
{ no: 1, name: "client_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<DeleteClientRequest>): DeleteClientRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteClientRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteClientRequest): DeleteClientRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* optional string client_id */ 1:
|
|
message.clientId = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: DeleteClientRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* optional string client_id = 1; */
|
|
if (message.clientId !== undefined)
|
|
writer.tag(1, WireType.LengthDelimited).string(message.clientId);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api_client.DeleteClientRequest
|
|
*/
|
|
export const DeleteClientRequest = new DeleteClientRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteClientResponse$Type extends MessageType<DeleteClientResponse> {
|
|
constructor() {
|
|
super("api_client.DeleteClientResponse", [
|
|
{ no: 1, name: "status", kind: "message", T: () => Status }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<DeleteClientResponse>): DeleteClientResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteClientResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteClientResponse): DeleteClientResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* optional common.Status status */ 1:
|
|
message.status = Status.internalBinaryRead(reader, reader.uint32(), options, message.status);
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: DeleteClientResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* optional common.Status status = 1; */
|
|
if (message.status)
|
|
Status.internalBinaryWrite(message.status, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api_client.DeleteClientResponse
|
|
*/
|
|
export const DeleteClientResponse = new DeleteClientResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdateFRPCRequest$Type extends MessageType<UpdateFRPCRequest> {
|
|
constructor() {
|
|
super("api_client.UpdateFRPCRequest", [
|
|
{ no: 1, name: "client_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 2, name: "server_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 3, name: "config", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<UpdateFRPCRequest>): UpdateFRPCRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdateFRPCRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateFRPCRequest): UpdateFRPCRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* optional string client_id */ 1:
|
|
message.clientId = reader.string();
|
|
break;
|
|
case /* optional string server_id */ 2:
|
|
message.serverId = reader.string();
|
|
break;
|
|
case /* optional bytes config */ 3:
|
|
message.config = reader.bytes();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: UpdateFRPCRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* optional string client_id = 1; */
|
|
if (message.clientId !== undefined)
|
|
writer.tag(1, WireType.LengthDelimited).string(message.clientId);
|
|
/* optional string server_id = 2; */
|
|
if (message.serverId !== undefined)
|
|
writer.tag(2, WireType.LengthDelimited).string(message.serverId);
|
|
/* optional bytes config = 3; */
|
|
if (message.config !== undefined)
|
|
writer.tag(3, WireType.LengthDelimited).bytes(message.config);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api_client.UpdateFRPCRequest
|
|
*/
|
|
export const UpdateFRPCRequest = new UpdateFRPCRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class UpdateFRPCResponse$Type extends MessageType<UpdateFRPCResponse> {
|
|
constructor() {
|
|
super("api_client.UpdateFRPCResponse", [
|
|
{ no: 1, name: "status", kind: "message", T: () => Status }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<UpdateFRPCResponse>): UpdateFRPCResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<UpdateFRPCResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateFRPCResponse): UpdateFRPCResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* optional common.Status status */ 1:
|
|
message.status = Status.internalBinaryRead(reader, reader.uint32(), options, message.status);
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: UpdateFRPCResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* optional common.Status status = 1; */
|
|
if (message.status)
|
|
Status.internalBinaryWrite(message.status, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api_client.UpdateFRPCResponse
|
|
*/
|
|
export const UpdateFRPCResponse = new UpdateFRPCResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class RemoveFRPCRequest$Type extends MessageType<RemoveFRPCRequest> {
|
|
constructor() {
|
|
super("api_client.RemoveFRPCRequest", [
|
|
{ no: 1, name: "client_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<RemoveFRPCRequest>): RemoveFRPCRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<RemoveFRPCRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveFRPCRequest): RemoveFRPCRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* optional string client_id */ 1:
|
|
message.clientId = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: RemoveFRPCRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* optional string client_id = 1; */
|
|
if (message.clientId !== undefined)
|
|
writer.tag(1, WireType.LengthDelimited).string(message.clientId);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api_client.RemoveFRPCRequest
|
|
*/
|
|
export const RemoveFRPCRequest = new RemoveFRPCRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class RemoveFRPCResponse$Type extends MessageType<RemoveFRPCResponse> {
|
|
constructor() {
|
|
super("api_client.RemoveFRPCResponse", [
|
|
{ no: 1, name: "status", kind: "message", T: () => Status }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<RemoveFRPCResponse>): RemoveFRPCResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<RemoveFRPCResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveFRPCResponse): RemoveFRPCResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* optional common.Status status */ 1:
|
|
message.status = Status.internalBinaryRead(reader, reader.uint32(), options, message.status);
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: RemoveFRPCResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* optional common.Status status = 1; */
|
|
if (message.status)
|
|
Status.internalBinaryWrite(message.status, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api_client.RemoveFRPCResponse
|
|
*/
|
|
export const RemoveFRPCResponse = new RemoveFRPCResponse$Type();
|