// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "adminConnection.proto" (package "api", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; 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 { ValueType } from "./shared"; /** * @generated from protobuf message api.AdminConnection */ export interface AdminConnection { /** * @generated from protobuf field: string ID = 1 */ ID: string; /** * @generated from protobuf field: string UriStartApi = 2 */ UriStartApi: string; /** * @generated from protobuf field: repeated api.ArgElement ArgsUriStart = 3 */ ArgsUriStart: ArgElement[]; } /** * @generated from protobuf message api.ArgElement */ export interface ArgElement { /** * @generated from protobuf field: string Key = 1 */ Key: string; /** * @generated from protobuf field: api.ValueType Value = 2 */ Value?: ValueType; } /** * @generated from protobuf message api.RegisterConnectionManagerRequest */ export interface RegisterConnectionManagerRequest { /** * @generated from protobuf field: string ID = 1 */ ID: string; /** * @generated from protobuf field: string UriStartApi = 2 */ UriStartApi: string; /** * @generated from protobuf field: repeated api.ArgElement ArgsUriStart = 3 */ ArgsUriStart: ArgElement[]; } /** * @generated from protobuf message api.RegisterConnectionManagerResult */ export interface RegisterConnectionManagerResult { } /** * @generated from protobuf message api.ListConnectionManagerRequest */ export interface ListConnectionManagerRequest { } /** * @generated from protobuf message api.ListConnectionManagerResult */ export interface ListConnectionManagerResult { /** * @generated from protobuf field: repeated api.AdminConnection Results = 1 */ Results: AdminConnection[]; } // @generated message type with reflection information, may provide speed optimized methods class AdminConnection$Type extends MessageType { constructor() { super("api.AdminConnection", [ { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/ }, { no: 2, name: "UriStartApi", kind: "scalar", localName: "UriStartApi", jsonName: "UriStartApi", T: 9 /*ScalarType.STRING*/ }, { no: 3, name: "ArgsUriStart", kind: "message", localName: "ArgsUriStart", jsonName: "ArgsUriStart", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ArgElement } ]); } create(value?: PartialMessage): AdminConnection { const message = globalThis.Object.create((this.messagePrototype!)); message.ID = ""; message.UriStartApi = ""; message.ArgsUriStart = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AdminConnection): AdminConnection { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string ID */ 1: message.ID = reader.string(); break; case /* string UriStartApi */ 2: message.UriStartApi = reader.string(); break; case /* repeated api.ArgElement ArgsUriStart */ 3: message.ArgsUriStart.push(ArgElement.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: AdminConnection, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ID = 1; */ if (message.ID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ID); /* string UriStartApi = 2; */ if (message.UriStartApi !== "") writer.tag(2, WireType.LengthDelimited).string(message.UriStartApi); /* repeated api.ArgElement ArgsUriStart = 3; */ for (let i = 0; i < message.ArgsUriStart.length; i++) ArgElement.internalBinaryWrite(message.ArgsUriStart[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.AdminConnection */ export const AdminConnection = new AdminConnection$Type(); // @generated message type with reflection information, may provide speed optimized methods class ArgElement$Type extends MessageType { constructor() { super("api.ArgElement", [ { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/ }, { no: 2, name: "Value", kind: "message", localName: "Value", jsonName: "Value", T: () => ValueType } ]); } create(value?: PartialMessage): ArgElement { const message = globalThis.Object.create((this.messagePrototype!)); message.Key = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ArgElement): ArgElement { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string Key */ 1: message.Key = reader.string(); break; case /* api.ValueType Value */ 2: message.Value = ValueType.internalBinaryRead(reader, reader.uint32(), options, message.Value); 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: ArgElement, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string Key = 1; */ if (message.Key !== "") writer.tag(1, WireType.LengthDelimited).string(message.Key); /* api.ValueType Value = 2; */ if (message.Value) ValueType.internalBinaryWrite(message.Value, 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.ArgElement */ export const ArgElement = new ArgElement$Type(); // @generated message type with reflection information, may provide speed optimized methods class RegisterConnectionManagerRequest$Type extends MessageType { constructor() { super("api.RegisterConnectionManagerRequest", [ { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "UriStartApi", kind: "scalar", localName: "UriStartApi", jsonName: "UriStartApi", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "ArgsUriStart", kind: "message", localName: "ArgsUriStart", jsonName: "ArgsUriStart", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ArgElement } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ID", "UriStartApi"] } } }); } create(value?: PartialMessage): RegisterConnectionManagerRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.ID = ""; message.UriStartApi = ""; message.ArgsUriStart = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RegisterConnectionManagerRequest): RegisterConnectionManagerRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string ID */ 1: message.ID = reader.string(); break; case /* string UriStartApi */ 2: message.UriStartApi = reader.string(); break; case /* repeated api.ArgElement ArgsUriStart */ 3: message.ArgsUriStart.push(ArgElement.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: RegisterConnectionManagerRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ID = 1; */ if (message.ID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ID); /* string UriStartApi = 2; */ if (message.UriStartApi !== "") writer.tag(2, WireType.LengthDelimited).string(message.UriStartApi); /* repeated api.ArgElement ArgsUriStart = 3; */ for (let i = 0; i < message.ArgsUriStart.length; i++) ArgElement.internalBinaryWrite(message.ArgsUriStart[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.RegisterConnectionManagerRequest */ export const RegisterConnectionManagerRequest = new RegisterConnectionManagerRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class RegisterConnectionManagerResult$Type extends MessageType { constructor() { super("api.RegisterConnectionManagerResult", []); } create(value?: PartialMessage): RegisterConnectionManagerResult { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RegisterConnectionManagerResult): RegisterConnectionManagerResult { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { 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: RegisterConnectionManagerResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.RegisterConnectionManagerResult */ export const RegisterConnectionManagerResult = new RegisterConnectionManagerResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class ListConnectionManagerRequest$Type extends MessageType { constructor() { super("api.ListConnectionManagerRequest", []); } create(value?: PartialMessage): ListConnectionManagerRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListConnectionManagerRequest): ListConnectionManagerRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { 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: ListConnectionManagerRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.ListConnectionManagerRequest */ export const ListConnectionManagerRequest = new ListConnectionManagerRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class ListConnectionManagerResult$Type extends MessageType { constructor() { super("api.ListConnectionManagerResult", [ { no: 1, name: "Results", kind: "message", localName: "Results", jsonName: "Results", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AdminConnection, options: { "n1validate.rules": { repeated: { minItems: "1" } } } } ]); } create(value?: PartialMessage): ListConnectionManagerResult { const message = globalThis.Object.create((this.messagePrototype!)); message.Results = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListConnectionManagerResult): ListConnectionManagerResult { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* repeated api.AdminConnection Results */ 1: message.Results.push(AdminConnection.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: ListConnectionManagerResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* repeated api.AdminConnection Results = 1; */ for (let i = 0; i < message.Results.length; i++) AdminConnection.internalBinaryWrite(message.Results[i], 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.ListConnectionManagerResult */ export const ListConnectionManagerResult = new ListConnectionManagerResult$Type(); /** * @generated ServiceType for protobuf service api.AdminConnectionService */ export const AdminConnectionService = new ServiceType("api.AdminConnectionService", [ { name: "RegisterConnectionManager", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Connection Manager"], description: "Register a connection manager in the platform" }, "api.rscType": "Platform", "api.roles": "Platform.Connection", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: RegisterConnectionManagerRequest, O: RegisterConnectionManagerResult }, { name: "ListConnectionManager", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Connection Manager"], description: "List connections manager" }, "api.rscType": "Platform", "api.roles": "Platform.Connection", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ListConnectionManagerRequest, O: ListConnectionManagerResult } ], { "api.k8sService": "organisation-server", "api.roleManager": true, "api.resourceManager": true });