// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "accounts.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 { NamedNscCredentials } from "./nsc-base"; import { NatsCredentials } from "./shared"; import { NscPermission } from "./nsc-base"; // Types /** * Entity creation messages * * @generated from protobuf message api.CreateAccountRequest */ export interface CreateAccountRequest { /** * @generated from protobuf field: string name = 1 */ name: string; /** * @generated from protobuf field: api.NscPermission permission = 2 */ permission?: NscPermission; /** * @generated from protobuf field: bool jetStream = 3 */ jetStream: boolean; } /** * @generated from protobuf message api.CreateAccountResult */ export interface CreateAccountResult { /** * NatsCredentials holds the configuration for interacting with Platform's NATS * * @generated from protobuf field: api.NatsCredentials Credentials = 1 */ Credentials?: NatsCredentials; } /** * Account Imports / Exports * * @generated from protobuf message api.AddExportRequest */ export interface AddExportRequest { /** * @generated from protobuf field: string accountName = 1 */ accountName: string; /** * @generated from protobuf field: bool public = 2 */ public: boolean; /** * @generated from protobuf field: bool stream = 3 */ stream: boolean; /** * @generated from protobuf field: string subject = 4 */ subject: string; } /** * @generated from protobuf message api.AddExportResult */ export interface AddExportResult { /** * NatsCredentials holds the configuration for interacting with Platform's NATS * * @generated from protobuf field: api.NatsCredentials Credentials = 1 */ Credentials?: NatsCredentials; } /** * @generated from protobuf message api.AddImportRequest */ export interface AddImportRequest { /** * @generated from protobuf field: string accountName = 1 */ accountName: string; /** * @generated from protobuf field: string remoteAccount = 2 */ remoteAccount: string; /** * @generated from protobuf field: string subject = 3 */ subject: string; } /** * @generated from protobuf message api.AddImportResult */ export interface AddImportResult { /** * NatsCredentials holds the configuration for interacting with Platform's NATS * * @generated from protobuf field: api.NatsCredentials Credentials = 1 */ Credentials?: NatsCredentials; } /** * @generated from protobuf message api.DeleteExportRequest */ export interface DeleteExportRequest { /** * @generated from protobuf field: string accountName = 1 */ accountName: string; /** * @generated from protobuf field: string subject = 2 */ subject: string; } /** * @generated from protobuf message api.DeleteExportResult */ export interface DeleteExportResult { /** * NatsCredentials holds the configuration for interacting with Platform's NATS * * @generated from protobuf field: api.NatsCredentials Credentials = 1 */ Credentials?: NatsCredentials; } /** * @generated from protobuf message api.DeleteImportRequest */ export interface DeleteImportRequest { /** * @generated from protobuf field: string accountName = 1 */ accountName: string; /** * @generated from protobuf field: string remoteAccount = 2 */ remoteAccount: string; /** * @generated from protobuf field: string subject = 3 */ subject: string; } /** * @generated from protobuf message api.DeleteImportResult */ export interface DeleteImportResult { /** * NatsCredentials holds the configuration for interacting with Platform's NATS * * @generated from protobuf field: api.NatsCredentials Credentials = 1 */ Credentials?: NatsCredentials; } /** * Entity read messages * * @generated from protobuf message api.GetAccountRequest */ export interface GetAccountRequest { /** * @generated from protobuf field: string name = 1 */ name: string; } /** * @generated from protobuf message api.GetAccountResult */ export interface GetAccountResult { /** * NatsCredentials holds the configuration for interacting with Platform's NATS * * @generated from protobuf field: api.NatsCredentials Credentials = 1 */ Credentials?: NatsCredentials; } /** * Entity edition messages * * @generated from protobuf message api.EditAccountRequest */ export interface EditAccountRequest { /** * @generated from protobuf field: string name = 1 */ name: string; /** * @generated from protobuf field: api.NscPermission permission = 2 */ permission?: NscPermission; /** * @generated from protobuf field: repeated string rmPerms = 3 */ rmPerms: string[]; /** * @generated from protobuf field: bool jetStream = 4 */ jetStream: boolean; /** * @generated from protobuf field: int64 diskStorage = 5 */ diskStorage: bigint; /** * @generated from protobuf field: int64 streams = 6 */ streams: bigint; /** * @generated from protobuf field: int64 consumers = 7 */ consumers: bigint; } /** * @generated from protobuf message api.EditAccountResult */ export interface EditAccountResult { /** * NatsCredentials holds the configuration for interacting with Platform's NATS * * @generated from protobuf field: api.NatsCredentials Credentials = 1 */ Credentials?: NatsCredentials; } /** * Entity deletion messages * * @generated from protobuf message api.DeleteAccountRequest */ export interface DeleteAccountRequest { /** * @generated from protobuf field: string accountName = 1 */ accountName: string; } /** * @generated from protobuf message api.DeleteAccountResult */ export interface DeleteAccountResult { } /** * Communication with NATS Server Account Messages * * @generated from protobuf message api.PushAccountsRequest */ export interface PushAccountsRequest { /** * @generated from protobuf oneof: Params */ Params: { oneofKind: "addAcc"; /** * @generated from protobuf field: string addAcc = 1 */ addAcc: string; } | { oneofKind: "removeAcc"; /** * @generated from protobuf field: string removeAcc = 2 */ removeAcc: string; } | { oneofKind: "pushAll"; /** * @generated from protobuf field: bool pushAll = 3 */ pushAll: boolean; } | { oneofKind: undefined; }; } /** * @generated from protobuf message api.PushAccountsResult */ export interface PushAccountsResult { } /** * @generated from protobuf message api.ListAccountsRequest */ export interface ListAccountsRequest { } /** * @generated from protobuf message api.ListAccountsResult */ export interface ListAccountsResult { /** * @generated from protobuf field: repeated api.NamedNscCredentials entities = 1 */ entities: NamedNscCredentials[]; } // @generated message type with reflection information, may provide speed optimized methods class CreateAccountRequest$Type extends MessageType { constructor() { super("api.CreateAccountRequest", [ { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "permission", kind: "message", T: () => NscPermission }, { no: 3, name: "jetStream", kind: "scalar", T: 8 /*ScalarType.BOOL*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["name"] } } }); } create(value?: PartialMessage): CreateAccountRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.name = ""; message.jetStream = false; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAccountRequest): CreateAccountRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string name */ 1: message.name = reader.string(); break; case /* api.NscPermission permission */ 2: message.permission = NscPermission.internalBinaryRead(reader, reader.uint32(), options, message.permission); break; case /* bool jetStream */ 3: message.jetStream = reader.bool(); 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: CreateAccountRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string name = 1; */ if (message.name !== "") writer.tag(1, WireType.LengthDelimited).string(message.name); /* api.NscPermission permission = 2; */ if (message.permission) NscPermission.internalBinaryWrite(message.permission, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* bool jetStream = 3; */ if (message.jetStream !== false) writer.tag(3, WireType.Varint).bool(message.jetStream); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.CreateAccountRequest */ export const CreateAccountRequest = new CreateAccountRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class CreateAccountResult$Type extends MessageType { constructor() { super("api.CreateAccountResult", [ { no: 1, name: "Credentials", kind: "message", localName: "Credentials", jsonName: "Credentials", T: () => NatsCredentials, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "NatsCredentials holds the configuration for interacting with Platform's NATS" } } } ]); } create(value?: PartialMessage): CreateAccountResult { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAccountResult): CreateAccountResult { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.NatsCredentials Credentials */ 1: message.Credentials = NatsCredentials.internalBinaryRead(reader, reader.uint32(), options, message.Credentials); 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: CreateAccountResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.NatsCredentials Credentials = 1; */ if (message.Credentials) NatsCredentials.internalBinaryWrite(message.Credentials, 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.CreateAccountResult */ export const CreateAccountResult = new CreateAccountResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class AddExportRequest$Type extends MessageType { constructor() { super("api.AddExportRequest", [ { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "public", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, { no: 3, name: "stream", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, { no: 4, name: "subject", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["accountName", "subject"] } } }); } create(value?: PartialMessage): AddExportRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.accountName = ""; message.public = false; message.stream = false; message.subject = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddExportRequest): AddExportRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string accountName */ 1: message.accountName = reader.string(); break; case /* bool public */ 2: message.public = reader.bool(); break; case /* bool stream */ 3: message.stream = reader.bool(); break; case /* string subject */ 4: message.subject = 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: AddExportRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string accountName = 1; */ if (message.accountName !== "") writer.tag(1, WireType.LengthDelimited).string(message.accountName); /* bool public = 2; */ if (message.public !== false) writer.tag(2, WireType.Varint).bool(message.public); /* bool stream = 3; */ if (message.stream !== false) writer.tag(3, WireType.Varint).bool(message.stream); /* string subject = 4; */ if (message.subject !== "") writer.tag(4, WireType.LengthDelimited).string(message.subject); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AddExportRequest */ export const AddExportRequest = new AddExportRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AddExportResult$Type extends MessageType { constructor() { super("api.AddExportResult", [ { no: 1, name: "Credentials", kind: "message", localName: "Credentials", jsonName: "Credentials", T: () => NatsCredentials, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "NatsCredentials holds the configuration for interacting with Platform's NATS" } } } ]); } create(value?: PartialMessage): AddExportResult { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddExportResult): AddExportResult { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.NatsCredentials Credentials */ 1: message.Credentials = NatsCredentials.internalBinaryRead(reader, reader.uint32(), options, message.Credentials); 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: AddExportResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.NatsCredentials Credentials = 1; */ if (message.Credentials) NatsCredentials.internalBinaryWrite(message.Credentials, 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.AddExportResult */ export const AddExportResult = new AddExportResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class AddImportRequest$Type extends MessageType { constructor() { super("api.AddImportRequest", [ { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "remoteAccount", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "subject", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["accountName", "remoteAccount", "subject"] } } }); } create(value?: PartialMessage): AddImportRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.accountName = ""; message.remoteAccount = ""; message.subject = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddImportRequest): AddImportRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string accountName */ 1: message.accountName = reader.string(); break; case /* string remoteAccount */ 2: message.remoteAccount = reader.string(); break; case /* string subject */ 3: message.subject = 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: AddImportRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string accountName = 1; */ if (message.accountName !== "") writer.tag(1, WireType.LengthDelimited).string(message.accountName); /* string remoteAccount = 2; */ if (message.remoteAccount !== "") writer.tag(2, WireType.LengthDelimited).string(message.remoteAccount); /* string subject = 3; */ if (message.subject !== "") writer.tag(3, WireType.LengthDelimited).string(message.subject); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AddImportRequest */ export const AddImportRequest = new AddImportRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AddImportResult$Type extends MessageType { constructor() { super("api.AddImportResult", [ { no: 1, name: "Credentials", kind: "message", localName: "Credentials", jsonName: "Credentials", T: () => NatsCredentials, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "NatsCredentials holds the configuration for interacting with Platform's NATS" } } } ]); } create(value?: PartialMessage): AddImportResult { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddImportResult): AddImportResult { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.NatsCredentials Credentials */ 1: message.Credentials = NatsCredentials.internalBinaryRead(reader, reader.uint32(), options, message.Credentials); 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: AddImportResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.NatsCredentials Credentials = 1; */ if (message.Credentials) NatsCredentials.internalBinaryWrite(message.Credentials, 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.AddImportResult */ export const AddImportResult = new AddImportResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class DeleteExportRequest$Type extends MessageType { constructor() { super("api.DeleteExportRequest", [ { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "subject", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["accountName", "subject"] } } }); } create(value?: PartialMessage): DeleteExportRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.accountName = ""; message.subject = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteExportRequest): DeleteExportRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string accountName */ 1: message.accountName = reader.string(); break; case /* string subject */ 2: message.subject = 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: DeleteExportRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string accountName = 1; */ if (message.accountName !== "") writer.tag(1, WireType.LengthDelimited).string(message.accountName); /* string subject = 2; */ if (message.subject !== "") writer.tag(2, WireType.LengthDelimited).string(message.subject); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.DeleteExportRequest */ export const DeleteExportRequest = new DeleteExportRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class DeleteExportResult$Type extends MessageType { constructor() { super("api.DeleteExportResult", [ { no: 1, name: "Credentials", kind: "message", localName: "Credentials", jsonName: "Credentials", T: () => NatsCredentials, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "NatsCredentials holds the configuration for interacting with Platform's NATS" } } } ]); } create(value?: PartialMessage): DeleteExportResult { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteExportResult): DeleteExportResult { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.NatsCredentials Credentials */ 1: message.Credentials = NatsCredentials.internalBinaryRead(reader, reader.uint32(), options, message.Credentials); 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: DeleteExportResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.NatsCredentials Credentials = 1; */ if (message.Credentials) NatsCredentials.internalBinaryWrite(message.Credentials, 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.DeleteExportResult */ export const DeleteExportResult = new DeleteExportResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class DeleteImportRequest$Type extends MessageType { constructor() { super("api.DeleteImportRequest", [ { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "remoteAccount", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "subject", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["accountName", "remoteAccount", "subject"] } } }); } create(value?: PartialMessage): DeleteImportRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.accountName = ""; message.remoteAccount = ""; message.subject = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteImportRequest): DeleteImportRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string accountName */ 1: message.accountName = reader.string(); break; case /* string remoteAccount */ 2: message.remoteAccount = reader.string(); break; case /* string subject */ 3: message.subject = 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: DeleteImportRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string accountName = 1; */ if (message.accountName !== "") writer.tag(1, WireType.LengthDelimited).string(message.accountName); /* string remoteAccount = 2; */ if (message.remoteAccount !== "") writer.tag(2, WireType.LengthDelimited).string(message.remoteAccount); /* string subject = 3; */ if (message.subject !== "") writer.tag(3, WireType.LengthDelimited).string(message.subject); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.DeleteImportRequest */ export const DeleteImportRequest = new DeleteImportRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class DeleteImportResult$Type extends MessageType { constructor() { super("api.DeleteImportResult", [ { no: 1, name: "Credentials", kind: "message", localName: "Credentials", jsonName: "Credentials", T: () => NatsCredentials, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "NatsCredentials holds the configuration for interacting with Platform's NATS" } } } ]); } create(value?: PartialMessage): DeleteImportResult { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteImportResult): DeleteImportResult { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.NatsCredentials Credentials */ 1: message.Credentials = NatsCredentials.internalBinaryRead(reader, reader.uint32(), options, message.Credentials); 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: DeleteImportResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.NatsCredentials Credentials = 1; */ if (message.Credentials) NatsCredentials.internalBinaryWrite(message.Credentials, 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.DeleteImportResult */ export const DeleteImportResult = new DeleteImportResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class GetAccountRequest$Type extends MessageType { constructor() { super("api.GetAccountRequest", [ { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["name"] } } }); } create(value?: PartialMessage): GetAccountRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.name = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAccountRequest): GetAccountRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string name */ 1: message.name = 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: GetAccountRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string name = 1; */ if (message.name !== "") writer.tag(1, WireType.LengthDelimited).string(message.name); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.GetAccountRequest */ export const GetAccountRequest = new GetAccountRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class GetAccountResult$Type extends MessageType { constructor() { super("api.GetAccountResult", [ { no: 1, name: "Credentials", kind: "message", localName: "Credentials", jsonName: "Credentials", T: () => NatsCredentials, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "NatsCredentials holds the configuration for interacting with Platform's NATS" } } } ]); } create(value?: PartialMessage): GetAccountResult { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAccountResult): GetAccountResult { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.NatsCredentials Credentials */ 1: message.Credentials = NatsCredentials.internalBinaryRead(reader, reader.uint32(), options, message.Credentials); 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: GetAccountResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.NatsCredentials Credentials = 1; */ if (message.Credentials) NatsCredentials.internalBinaryWrite(message.Credentials, 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.GetAccountResult */ export const GetAccountResult = new GetAccountResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class EditAccountRequest$Type extends MessageType { constructor() { super("api.EditAccountRequest", [ { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "permission", kind: "message", T: () => NscPermission }, { no: 3, name: "rmPerms", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "jetStream", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, { no: 5, name: "diskStorage", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, { no: 6, name: "streams", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, { no: 7, name: "consumers", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Entity edition messages", required: ["name"] } } }); } create(value?: PartialMessage): EditAccountRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.name = ""; message.rmPerms = []; message.jetStream = false; message.diskStorage = 0n; message.streams = 0n; message.consumers = 0n; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EditAccountRequest): EditAccountRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string name */ 1: message.name = reader.string(); break; case /* api.NscPermission permission */ 2: message.permission = NscPermission.internalBinaryRead(reader, reader.uint32(), options, message.permission); break; case /* repeated string rmPerms */ 3: message.rmPerms.push(reader.string()); break; case /* bool jetStream */ 4: message.jetStream = reader.bool(); break; case /* int64 diskStorage */ 5: message.diskStorage = reader.int64().toBigInt(); break; case /* int64 streams */ 6: message.streams = reader.int64().toBigInt(); break; case /* int64 consumers */ 7: message.consumers = reader.int64().toBigInt(); 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: EditAccountRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string name = 1; */ if (message.name !== "") writer.tag(1, WireType.LengthDelimited).string(message.name); /* api.NscPermission permission = 2; */ if (message.permission) NscPermission.internalBinaryWrite(message.permission, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* repeated string rmPerms = 3; */ for (let i = 0; i < message.rmPerms.length; i++) writer.tag(3, WireType.LengthDelimited).string(message.rmPerms[i]); /* bool jetStream = 4; */ if (message.jetStream !== false) writer.tag(4, WireType.Varint).bool(message.jetStream); /* int64 diskStorage = 5; */ if (message.diskStorage !== 0n) writer.tag(5, WireType.Varint).int64(message.diskStorage); /* int64 streams = 6; */ if (message.streams !== 0n) writer.tag(6, WireType.Varint).int64(message.streams); /* int64 consumers = 7; */ if (message.consumers !== 0n) writer.tag(7, WireType.Varint).int64(message.consumers); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.EditAccountRequest */ export const EditAccountRequest = new EditAccountRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class EditAccountResult$Type extends MessageType { constructor() { super("api.EditAccountResult", [ { no: 1, name: "Credentials", kind: "message", localName: "Credentials", jsonName: "Credentials", T: () => NatsCredentials, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "NatsCredentials holds the configuration for interacting with Platform's NATS" } } } ]); } create(value?: PartialMessage): EditAccountResult { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EditAccountResult): EditAccountResult { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.NatsCredentials Credentials */ 1: message.Credentials = NatsCredentials.internalBinaryRead(reader, reader.uint32(), options, message.Credentials); 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: EditAccountResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.NatsCredentials Credentials = 1; */ if (message.Credentials) NatsCredentials.internalBinaryWrite(message.Credentials, 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.EditAccountResult */ export const EditAccountResult = new EditAccountResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class DeleteAccountRequest$Type extends MessageType { constructor() { super("api.DeleteAccountRequest", [ { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["accountName"] } } }); } create(value?: PartialMessage): DeleteAccountRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.accountName = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAccountRequest): DeleteAccountRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string accountName */ 1: message.accountName = 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: DeleteAccountRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string accountName = 1; */ if (message.accountName !== "") writer.tag(1, WireType.LengthDelimited).string(message.accountName); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.DeleteAccountRequest */ export const DeleteAccountRequest = new DeleteAccountRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class DeleteAccountResult$Type extends MessageType { constructor() { super("api.DeleteAccountResult", []); } create(value?: PartialMessage): DeleteAccountResult { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAccountResult): DeleteAccountResult { 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: DeleteAccountResult, 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.DeleteAccountResult */ export const DeleteAccountResult = new DeleteAccountResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class PushAccountsRequest$Type extends MessageType { constructor() { super("api.PushAccountsRequest", [ { no: 1, name: "addAcc", kind: "scalar", oneof: "Params", T: 9 /*ScalarType.STRING*/ }, { no: 2, name: "removeAcc", kind: "scalar", oneof: "Params", T: 9 /*ScalarType.STRING*/ }, { no: 3, name: "pushAll", kind: "scalar", oneof: "Params", T: 8 /*ScalarType.BOOL*/ } ]); } create(value?: PartialMessage): PushAccountsRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.Params = { oneofKind: undefined }; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PushAccountsRequest): PushAccountsRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string addAcc */ 1: message.Params = { oneofKind: "addAcc", addAcc: reader.string() }; break; case /* string removeAcc */ 2: message.Params = { oneofKind: "removeAcc", removeAcc: reader.string() }; break; case /* bool pushAll */ 3: message.Params = { oneofKind: "pushAll", pushAll: reader.bool() }; 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: PushAccountsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string addAcc = 1; */ if (message.Params.oneofKind === "addAcc") writer.tag(1, WireType.LengthDelimited).string(message.Params.addAcc); /* string removeAcc = 2; */ if (message.Params.oneofKind === "removeAcc") writer.tag(2, WireType.LengthDelimited).string(message.Params.removeAcc); /* bool pushAll = 3; */ if (message.Params.oneofKind === "pushAll") writer.tag(3, WireType.Varint).bool(message.Params.pushAll); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.PushAccountsRequest */ export const PushAccountsRequest = new PushAccountsRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class PushAccountsResult$Type extends MessageType { constructor() { super("api.PushAccountsResult", []); } create(value?: PartialMessage): PushAccountsResult { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PushAccountsResult): PushAccountsResult { 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: PushAccountsResult, 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.PushAccountsResult */ export const PushAccountsResult = new PushAccountsResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class ListAccountsRequest$Type extends MessageType { constructor() { super("api.ListAccountsRequest", []); } create(value?: PartialMessage): ListAccountsRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListAccountsRequest): ListAccountsRequest { 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: ListAccountsRequest, 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.ListAccountsRequest */ export const ListAccountsRequest = new ListAccountsRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class ListAccountsResult$Type extends MessageType { constructor() { super("api.ListAccountsResult", [ { no: 1, name: "entities", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => NamedNscCredentials } ]); } create(value?: PartialMessage): ListAccountsResult { const message = globalThis.Object.create((this.messagePrototype!)); message.entities = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListAccountsResult): ListAccountsResult { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* repeated api.NamedNscCredentials entities */ 1: message.entities.push(NamedNscCredentials.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: ListAccountsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* repeated api.NamedNscCredentials entities = 1; */ for (let i = 0; i < message.entities.length; i++) NamedNscCredentials.internalBinaryWrite(message.entities[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.ListAccountsResult */ export const ListAccountsResult = new ListAccountsResult$Type(); /** * @generated ServiceType for protobuf service api.Accounts */ export const Accounts = new ServiceType("api.Accounts", [ { name: "CreateAccount", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["NSC Admin"], description: "Create an account" }, "api.rscType": "Platform", "api.roles": "Platform.Nsc-Manage", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreateAccountRequest, O: CreateAccountResult }, { name: "GetAccount", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["NSC Admin"], description: "Get an account" }, "api.rscType": "Platform", "api.roles": "Platform.Nsc-Manage", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetAccountRequest, O: GetAccountResult }, { name: "ListAccounts", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["NSC Admin"], description: "List accounts" }, "api.rscType": "Platform", "api.roles": "Platform.Nsc-Manage", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ListAccountsRequest, O: ListAccountsResult }, { name: "EditAccount", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["NSC Admin"], description: "Edit an account" }, "api.rscType": "Platform", "api.roles": "Platform.Nsc-Manage", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: EditAccountRequest, O: EditAccountResult }, { name: "DeleteAccount", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["NSC Admin"], description: "Delete an account" }, "api.rscType": "Platform", "api.roles": "Platform.Nsc-Manage", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteAccountRequest, O: DeleteAccountResult }, { name: "PushAccounts", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["NSC Admin"], description: "Push accounts" }, "api.rscType": "Platform", "api.roles": "Platform.Nsc-Manage", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: PushAccountsRequest, O: PushAccountsResult }, { name: "AddExport", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["NSC Admin"], description: "Add export" }, "api.rscType": "Platform", "api.roles": "Platform.Nsc-Manage", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AddExportRequest, O: AddExportResult }, { name: "AddImport", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["NSC Admin"], description: "Add import" }, "api.rscType": "Platform", "api.roles": "Platform.Nsc-Manage", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AddImportRequest, O: AddImportResult }, { name: "DeleteExport", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["NSC Admin"], description: "Delete export" }, "api.rscType": "Platform", "api.roles": "Platform.Nsc-Manage", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteExportRequest, O: DeleteExportResult }, { name: "DeleteImport", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["NSC Admin"], description: "Delete import" }, "api.rscType": "Platform", "api.roles": "Platform.Nsc-Manage", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteImportRequest, O: DeleteImportResult } ], { "api.k8sService": "nsc-admin", "google.api.api_visibility": { restriction: "INTERNAL" } });