You've already forked npm-core-sdk
1065 lines
52 KiB
TypeScript
1065 lines
52 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
|
// @generated from protobuf file "alias.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 { CommandIdentifierEntry } from "./slotbooking";
|
|
import { AppointmentType } from "./slotbooking";
|
|
/**
|
|
* Properties specific to appointment scheduling aliases
|
|
*
|
|
* @generated from protobuf message api.AliasPropertiesAppointmentScheduling
|
|
*/
|
|
export interface AliasPropertiesAppointmentScheduling {
|
|
/**
|
|
* @generated from protobuf field: api.AppointmentType AptType = 1
|
|
*/
|
|
AptType: AppointmentType;
|
|
/**
|
|
* CommandIdentifierEntry
|
|
*
|
|
* @generated from protobuf field: api.CommandIdentifierEntry LoadingCommandIdentifierEntry = 2
|
|
*/
|
|
LoadingCommandIdentifierEntry: CommandIdentifierEntry;
|
|
/**
|
|
* CommandIdentifierEntry
|
|
*
|
|
* @generated from protobuf field: api.CommandIdentifierEntry UnLoadingCommandIdentifierEntry = 3
|
|
*/
|
|
UnLoadingCommandIdentifierEntry: CommandIdentifierEntry;
|
|
/**
|
|
* Name of the actor
|
|
*
|
|
* @generated from protobuf field: string ActorName = 4
|
|
*/
|
|
ActorName: string;
|
|
}
|
|
/**
|
|
* Alias represents a named link from one resource to another.
|
|
* Example: A Site (FromID="SITE_ORG1_123") can have an alias named "ACTOR_456"
|
|
* (AliasName) of type ALIAS_TYPE_SITE_ACTOR pointing to another Site (ToID="SITE_ORG1_789").
|
|
* The combination of (FromID, AliasType, AliasName) must be unique.
|
|
* Properties can be defined for each alias, their format is up to the user.
|
|
*
|
|
* @generated from protobuf message api.Alias
|
|
*/
|
|
export interface Alias {
|
|
/**
|
|
* @generated from protobuf field: string FromID = 1
|
|
*/
|
|
FromID: string;
|
|
/**
|
|
* @generated from protobuf field: api.AliasType AliasType = 2
|
|
*/
|
|
AliasType: AliasType;
|
|
/**
|
|
* @generated from protobuf field: string AliasName = 3
|
|
*/
|
|
AliasName: string;
|
|
/**
|
|
* @generated from protobuf field: string ToID = 4
|
|
*/
|
|
ToID: string;
|
|
/**
|
|
* @generated from protobuf field: string Properties = 5
|
|
*/
|
|
Properties: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.CreateAliasRequest
|
|
*/
|
|
export interface CreateAliasRequest {
|
|
/**
|
|
* @generated from protobuf field: api.Alias Alias = 1
|
|
*/
|
|
Alias?: Alias;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.CreateAliasResponse
|
|
*/
|
|
export interface CreateAliasResponse {
|
|
/**
|
|
* @generated from protobuf field: api.Alias Alias = 1
|
|
*/
|
|
Alias?: Alias;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetAliasRequest
|
|
*/
|
|
export interface GetAliasRequest {
|
|
/**
|
|
* @generated from protobuf field: string FromID = 1
|
|
*/
|
|
FromID: string;
|
|
/**
|
|
* @generated from protobuf field: api.AliasType AliasType = 2
|
|
*/
|
|
AliasType: AliasType;
|
|
/**
|
|
* @generated from protobuf field: string AliasName = 3
|
|
*/
|
|
AliasName: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.GetAliasResponse
|
|
*/
|
|
export interface GetAliasResponse {
|
|
/**
|
|
* @generated from protobuf field: api.Alias Alias = 1
|
|
*/
|
|
Alias?: Alias;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ListAliasesFromRequest
|
|
*/
|
|
export interface ListAliasesFromRequest {
|
|
/**
|
|
* @generated from protobuf field: string FromID = 1
|
|
*/
|
|
FromID: string;
|
|
/**
|
|
* @generated from protobuf field: api.AliasType AliasType = 2
|
|
*/
|
|
AliasType: AliasType;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ListAliasesFromResponse
|
|
*/
|
|
export interface ListAliasesFromResponse {
|
|
/**
|
|
* @generated from protobuf field: repeated api.Alias Aliases = 1
|
|
*/
|
|
Aliases: Alias[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ListAliasesToRequest
|
|
*/
|
|
export interface ListAliasesToRequest {
|
|
/**
|
|
* @generated from protobuf field: string ToID = 1
|
|
*/
|
|
ToID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ListAliasesToResponse
|
|
*/
|
|
export interface ListAliasesToResponse {
|
|
/**
|
|
* @generated from protobuf field: repeated api.Alias Aliases = 1
|
|
*/
|
|
Aliases: Alias[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteAliasRequest
|
|
*/
|
|
export interface DeleteAliasRequest {
|
|
/**
|
|
* @generated from protobuf field: string FromID = 1
|
|
*/
|
|
FromID: string;
|
|
/**
|
|
* @generated from protobuf field: api.AliasType AliasType = 2
|
|
*/
|
|
AliasType: AliasType;
|
|
/**
|
|
* @generated from protobuf field: string AliasName = 3
|
|
*/
|
|
AliasName: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteAliasResponse
|
|
*/
|
|
export interface DeleteAliasResponse {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteAllAliasesFromRequest
|
|
*/
|
|
export interface DeleteAllAliasesFromRequest {
|
|
/**
|
|
* @generated from protobuf field: string FromID = 1
|
|
*/
|
|
FromID: string;
|
|
/**
|
|
* @generated from protobuf field: api.AliasType AliasType = 2
|
|
*/
|
|
AliasType: AliasType;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteAllAliasesFromResponse
|
|
*/
|
|
export interface DeleteAllAliasesFromResponse {
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteAllAliasesToRequest
|
|
*/
|
|
export interface DeleteAllAliasesToRequest {
|
|
/**
|
|
* @generated from protobuf field: string ToID = 1
|
|
*/
|
|
ToID: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.DeleteAllAliasesToResponse
|
|
*/
|
|
export interface DeleteAllAliasesToResponse {
|
|
}
|
|
/**
|
|
* @generated from protobuf enum api.AliasType
|
|
*/
|
|
export enum AliasType {
|
|
/**
|
|
* @generated from protobuf enum value: ALIAS_TYPE_UNKNOWN = 0;
|
|
*/
|
|
ALIAS_TYPE_UNKNOWN = 0,
|
|
/**
|
|
* @generated from protobuf enum value: ALIAS_TYPE_APPOINTMENT_SCHEDULING = 1;
|
|
*/
|
|
ALIAS_TYPE_APPOINTMENT_SCHEDULING = 1
|
|
}
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class AliasPropertiesAppointmentScheduling$Type extends MessageType<AliasPropertiesAppointmentScheduling> {
|
|
constructor() {
|
|
super("api.AliasPropertiesAppointmentScheduling", [
|
|
{ no: 1, name: "AptType", kind: "enum", localName: "AptType", jsonName: "AptType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 2, name: "LoadingCommandIdentifierEntry", kind: "enum", localName: "LoadingCommandIdentifierEntry", jsonName: "LoadingCommandIdentifierEntry", T: () => ["api.CommandIdentifierEntry", CommandIdentifierEntry], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 3, name: "UnLoadingCommandIdentifierEntry", kind: "enum", localName: "UnLoadingCommandIdentifierEntry", jsonName: "UnLoadingCommandIdentifierEntry", T: () => ["api.CommandIdentifierEntry", CommandIdentifierEntry], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 4, name: "ActorName", kind: "scalar", localName: "ActorName", jsonName: "ActorName", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<AliasPropertiesAppointmentScheduling>): AliasPropertiesAppointmentScheduling {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.AptType = 0;
|
|
message.LoadingCommandIdentifierEntry = 0;
|
|
message.UnLoadingCommandIdentifierEntry = 0;
|
|
message.ActorName = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<AliasPropertiesAppointmentScheduling>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AliasPropertiesAppointmentScheduling): AliasPropertiesAppointmentScheduling {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.AppointmentType AptType */ 1:
|
|
message.AptType = reader.int32();
|
|
break;
|
|
case /* api.CommandIdentifierEntry LoadingCommandIdentifierEntry */ 2:
|
|
message.LoadingCommandIdentifierEntry = reader.int32();
|
|
break;
|
|
case /* api.CommandIdentifierEntry UnLoadingCommandIdentifierEntry */ 3:
|
|
message.UnLoadingCommandIdentifierEntry = reader.int32();
|
|
break;
|
|
case /* string ActorName */ 4:
|
|
message.ActorName = 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: AliasPropertiesAppointmentScheduling, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.AppointmentType AptType = 1; */
|
|
if (message.AptType !== 0)
|
|
writer.tag(1, WireType.Varint).int32(message.AptType);
|
|
/* api.CommandIdentifierEntry LoadingCommandIdentifierEntry = 2; */
|
|
if (message.LoadingCommandIdentifierEntry !== 0)
|
|
writer.tag(2, WireType.Varint).int32(message.LoadingCommandIdentifierEntry);
|
|
/* api.CommandIdentifierEntry UnLoadingCommandIdentifierEntry = 3; */
|
|
if (message.UnLoadingCommandIdentifierEntry !== 0)
|
|
writer.tag(3, WireType.Varint).int32(message.UnLoadingCommandIdentifierEntry);
|
|
/* string ActorName = 4; */
|
|
if (message.ActorName !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.ActorName);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.AliasPropertiesAppointmentScheduling
|
|
*/
|
|
export const AliasPropertiesAppointmentScheduling = new AliasPropertiesAppointmentScheduling$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class Alias$Type extends MessageType<Alias> {
|
|
constructor() {
|
|
super("api.Alias", [
|
|
{ no: 1, name: "FromID", kind: "scalar", localName: "FromID", jsonName: "FromID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 2, name: "AliasType", kind: "enum", localName: "AliasType", jsonName: "AliasType", T: () => ["api.AliasType", AliasType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 3, name: "AliasName", kind: "scalar", localName: "AliasName", jsonName: "AliasName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 4, name: "ToID", kind: "scalar", localName: "ToID", jsonName: "ToID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 5, name: "Properties", kind: "scalar", localName: "Properties", jsonName: "Properties", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<Alias>): Alias {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.FromID = "";
|
|
message.AliasType = 0;
|
|
message.AliasName = "";
|
|
message.ToID = "";
|
|
message.Properties = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<Alias>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Alias): Alias {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string FromID */ 1:
|
|
message.FromID = reader.string();
|
|
break;
|
|
case /* api.AliasType AliasType */ 2:
|
|
message.AliasType = reader.int32();
|
|
break;
|
|
case /* string AliasName */ 3:
|
|
message.AliasName = reader.string();
|
|
break;
|
|
case /* string ToID */ 4:
|
|
message.ToID = reader.string();
|
|
break;
|
|
case /* string Properties */ 5:
|
|
message.Properties = 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: Alias, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string FromID = 1; */
|
|
if (message.FromID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.FromID);
|
|
/* api.AliasType AliasType = 2; */
|
|
if (message.AliasType !== 0)
|
|
writer.tag(2, WireType.Varint).int32(message.AliasType);
|
|
/* string AliasName = 3; */
|
|
if (message.AliasName !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.AliasName);
|
|
/* string ToID = 4; */
|
|
if (message.ToID !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.ToID);
|
|
/* string Properties = 5; */
|
|
if (message.Properties !== "")
|
|
writer.tag(5, WireType.LengthDelimited).string(message.Properties);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.Alias
|
|
*/
|
|
export const Alias = new Alias$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CreateAliasRequest$Type extends MessageType<CreateAliasRequest> {
|
|
constructor() {
|
|
super("api.CreateAliasRequest", [
|
|
{ no: 1, name: "Alias", kind: "message", localName: "Alias", jsonName: "Alias", T: () => Alias, options: { "validate.rules": { message: { required: true } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Alias"] } } });
|
|
}
|
|
create(value?: PartialMessage<CreateAliasRequest>): CreateAliasRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CreateAliasRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAliasRequest): CreateAliasRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Alias Alias */ 1:
|
|
message.Alias = Alias.internalBinaryRead(reader, reader.uint32(), options, message.Alias);
|
|
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: CreateAliasRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Alias Alias = 1; */
|
|
if (message.Alias)
|
|
Alias.internalBinaryWrite(message.Alias, 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.CreateAliasRequest
|
|
*/
|
|
export const CreateAliasRequest = new CreateAliasRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CreateAliasResponse$Type extends MessageType<CreateAliasResponse> {
|
|
constructor() {
|
|
super("api.CreateAliasResponse", [
|
|
{ no: 1, name: "Alias", kind: "message", localName: "Alias", jsonName: "Alias", T: () => Alias }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<CreateAliasResponse>): CreateAliasResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CreateAliasResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAliasResponse): CreateAliasResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Alias Alias */ 1:
|
|
message.Alias = Alias.internalBinaryRead(reader, reader.uint32(), options, message.Alias);
|
|
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: CreateAliasResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Alias Alias = 1; */
|
|
if (message.Alias)
|
|
Alias.internalBinaryWrite(message.Alias, 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.CreateAliasResponse
|
|
*/
|
|
export const CreateAliasResponse = new CreateAliasResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetAliasRequest$Type extends MessageType<GetAliasRequest> {
|
|
constructor() {
|
|
super("api.GetAliasRequest", [
|
|
{ no: 1, name: "FromID", kind: "scalar", localName: "FromID", jsonName: "FromID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 2, name: "AliasType", kind: "enum", localName: "AliasType", jsonName: "AliasType", T: () => ["api.AliasType", AliasType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 3, name: "AliasName", kind: "scalar", localName: "AliasName", jsonName: "AliasName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["FromID", "AliasType", "AliasName"] } } });
|
|
}
|
|
create(value?: PartialMessage<GetAliasRequest>): GetAliasRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.FromID = "";
|
|
message.AliasType = 0;
|
|
message.AliasName = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetAliasRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAliasRequest): GetAliasRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string FromID */ 1:
|
|
message.FromID = reader.string();
|
|
break;
|
|
case /* api.AliasType AliasType */ 2:
|
|
message.AliasType = reader.int32();
|
|
break;
|
|
case /* string AliasName */ 3:
|
|
message.AliasName = 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: GetAliasRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string FromID = 1; */
|
|
if (message.FromID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.FromID);
|
|
/* api.AliasType AliasType = 2; */
|
|
if (message.AliasType !== 0)
|
|
writer.tag(2, WireType.Varint).int32(message.AliasType);
|
|
/* string AliasName = 3; */
|
|
if (message.AliasName !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.AliasName);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GetAliasRequest
|
|
*/
|
|
export const GetAliasRequest = new GetAliasRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GetAliasResponse$Type extends MessageType<GetAliasResponse> {
|
|
constructor() {
|
|
super("api.GetAliasResponse", [
|
|
{ no: 1, name: "Alias", kind: "message", localName: "Alias", jsonName: "Alias", T: () => Alias }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GetAliasResponse>): GetAliasResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GetAliasResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAliasResponse): GetAliasResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.Alias Alias */ 1:
|
|
message.Alias = Alias.internalBinaryRead(reader, reader.uint32(), options, message.Alias);
|
|
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: GetAliasResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.Alias Alias = 1; */
|
|
if (message.Alias)
|
|
Alias.internalBinaryWrite(message.Alias, 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.GetAliasResponse
|
|
*/
|
|
export const GetAliasResponse = new GetAliasResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListAliasesFromRequest$Type extends MessageType<ListAliasesFromRequest> {
|
|
constructor() {
|
|
super("api.ListAliasesFromRequest", [
|
|
{ no: 1, name: "FromID", kind: "scalar", localName: "FromID", jsonName: "FromID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 2, name: "AliasType", kind: "enum", localName: "AliasType", jsonName: "AliasType", T: () => ["api.AliasType", AliasType] }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["FromID"] } } });
|
|
}
|
|
create(value?: PartialMessage<ListAliasesFromRequest>): ListAliasesFromRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.FromID = "";
|
|
message.AliasType = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListAliasesFromRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListAliasesFromRequest): ListAliasesFromRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string FromID */ 1:
|
|
message.FromID = reader.string();
|
|
break;
|
|
case /* api.AliasType AliasType */ 2:
|
|
message.AliasType = 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: ListAliasesFromRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string FromID = 1; */
|
|
if (message.FromID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.FromID);
|
|
/* api.AliasType AliasType = 2; */
|
|
if (message.AliasType !== 0)
|
|
writer.tag(2, WireType.Varint).int32(message.AliasType);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ListAliasesFromRequest
|
|
*/
|
|
export const ListAliasesFromRequest = new ListAliasesFromRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListAliasesFromResponse$Type extends MessageType<ListAliasesFromResponse> {
|
|
constructor() {
|
|
super("api.ListAliasesFromResponse", [
|
|
{ no: 1, name: "Aliases", kind: "message", localName: "Aliases", jsonName: "Aliases", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Alias }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ListAliasesFromResponse>): ListAliasesFromResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Aliases = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListAliasesFromResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListAliasesFromResponse): ListAliasesFromResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated api.Alias Aliases */ 1:
|
|
message.Aliases.push(Alias.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: ListAliasesFromResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated api.Alias Aliases = 1; */
|
|
for (let i = 0; i < message.Aliases.length; i++)
|
|
Alias.internalBinaryWrite(message.Aliases[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.ListAliasesFromResponse
|
|
*/
|
|
export const ListAliasesFromResponse = new ListAliasesFromResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListAliasesToRequest$Type extends MessageType<ListAliasesToRequest> {
|
|
constructor() {
|
|
super("api.ListAliasesToRequest", [
|
|
{ no: 1, name: "ToID", kind: "scalar", localName: "ToID", jsonName: "ToID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ToID"] } } });
|
|
}
|
|
create(value?: PartialMessage<ListAliasesToRequest>): ListAliasesToRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ToID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListAliasesToRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListAliasesToRequest): ListAliasesToRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string ToID */ 1:
|
|
message.ToID = 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: ListAliasesToRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ToID = 1; */
|
|
if (message.ToID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.ToID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ListAliasesToRequest
|
|
*/
|
|
export const ListAliasesToRequest = new ListAliasesToRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ListAliasesToResponse$Type extends MessageType<ListAliasesToResponse> {
|
|
constructor() {
|
|
super("api.ListAliasesToResponse", [
|
|
{ no: 1, name: "Aliases", kind: "message", localName: "Aliases", jsonName: "Aliases", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Alias }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ListAliasesToResponse>): ListAliasesToResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Aliases = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ListAliasesToResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListAliasesToResponse): ListAliasesToResponse {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated api.Alias Aliases */ 1:
|
|
message.Aliases.push(Alias.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: ListAliasesToResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated api.Alias Aliases = 1; */
|
|
for (let i = 0; i < message.Aliases.length; i++)
|
|
Alias.internalBinaryWrite(message.Aliases[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.ListAliasesToResponse
|
|
*/
|
|
export const ListAliasesToResponse = new ListAliasesToResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteAliasRequest$Type extends MessageType<DeleteAliasRequest> {
|
|
constructor() {
|
|
super("api.DeleteAliasRequest", [
|
|
{ no: 1, name: "FromID", kind: "scalar", localName: "FromID", jsonName: "FromID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 2, name: "AliasType", kind: "enum", localName: "AliasType", jsonName: "AliasType", T: () => ["api.AliasType", AliasType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
|
{ no: 3, name: "AliasName", kind: "scalar", localName: "AliasName", jsonName: "AliasName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["FromID", "AliasType", "AliasName"] } } });
|
|
}
|
|
create(value?: PartialMessage<DeleteAliasRequest>): DeleteAliasRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.FromID = "";
|
|
message.AliasType = 0;
|
|
message.AliasName = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteAliasRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAliasRequest): DeleteAliasRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string FromID */ 1:
|
|
message.FromID = reader.string();
|
|
break;
|
|
case /* api.AliasType AliasType */ 2:
|
|
message.AliasType = reader.int32();
|
|
break;
|
|
case /* string AliasName */ 3:
|
|
message.AliasName = 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: DeleteAliasRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string FromID = 1; */
|
|
if (message.FromID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.FromID);
|
|
/* api.AliasType AliasType = 2; */
|
|
if (message.AliasType !== 0)
|
|
writer.tag(2, WireType.Varint).int32(message.AliasType);
|
|
/* string AliasName = 3; */
|
|
if (message.AliasName !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.AliasName);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteAliasRequest
|
|
*/
|
|
export const DeleteAliasRequest = new DeleteAliasRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteAliasResponse$Type extends MessageType<DeleteAliasResponse> {
|
|
constructor() {
|
|
super("api.DeleteAliasResponse", []);
|
|
}
|
|
create(value?: PartialMessage<DeleteAliasResponse>): DeleteAliasResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteAliasResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAliasResponse): DeleteAliasResponse {
|
|
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: DeleteAliasResponse, 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.DeleteAliasResponse
|
|
*/
|
|
export const DeleteAliasResponse = new DeleteAliasResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteAllAliasesFromRequest$Type extends MessageType<DeleteAllAliasesFromRequest> {
|
|
constructor() {
|
|
super("api.DeleteAllAliasesFromRequest", [
|
|
{ no: 1, name: "FromID", kind: "scalar", localName: "FromID", jsonName: "FromID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 2, name: "AliasType", kind: "enum", localName: "AliasType", jsonName: "AliasType", T: () => ["api.AliasType", AliasType] }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["FromID"] } } });
|
|
}
|
|
create(value?: PartialMessage<DeleteAllAliasesFromRequest>): DeleteAllAliasesFromRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.FromID = "";
|
|
message.AliasType = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteAllAliasesFromRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAllAliasesFromRequest): DeleteAllAliasesFromRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string FromID */ 1:
|
|
message.FromID = reader.string();
|
|
break;
|
|
case /* api.AliasType AliasType */ 2:
|
|
message.AliasType = 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: DeleteAllAliasesFromRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string FromID = 1; */
|
|
if (message.FromID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.FromID);
|
|
/* api.AliasType AliasType = 2; */
|
|
if (message.AliasType !== 0)
|
|
writer.tag(2, WireType.Varint).int32(message.AliasType);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteAllAliasesFromRequest
|
|
*/
|
|
export const DeleteAllAliasesFromRequest = new DeleteAllAliasesFromRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteAllAliasesFromResponse$Type extends MessageType<DeleteAllAliasesFromResponse> {
|
|
constructor() {
|
|
super("api.DeleteAllAliasesFromResponse", []);
|
|
}
|
|
create(value?: PartialMessage<DeleteAllAliasesFromResponse>): DeleteAllAliasesFromResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteAllAliasesFromResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAllAliasesFromResponse): DeleteAllAliasesFromResponse {
|
|
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: DeleteAllAliasesFromResponse, 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.DeleteAllAliasesFromResponse
|
|
*/
|
|
export const DeleteAllAliasesFromResponse = new DeleteAllAliasesFromResponse$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteAllAliasesToRequest$Type extends MessageType<DeleteAllAliasesToRequest> {
|
|
constructor() {
|
|
super("api.DeleteAllAliasesToRequest", [
|
|
{ no: 1, name: "ToID", kind: "scalar", localName: "ToID", jsonName: "ToID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ToID"] } } });
|
|
}
|
|
create(value?: PartialMessage<DeleteAllAliasesToRequest>): DeleteAllAliasesToRequest {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ToID = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteAllAliasesToRequest>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAllAliasesToRequest): DeleteAllAliasesToRequest {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string ToID */ 1:
|
|
message.ToID = 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: DeleteAllAliasesToRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ToID = 1; */
|
|
if (message.ToID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.ToID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.DeleteAllAliasesToRequest
|
|
*/
|
|
export const DeleteAllAliasesToRequest = new DeleteAllAliasesToRequest$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class DeleteAllAliasesToResponse$Type extends MessageType<DeleteAllAliasesToResponse> {
|
|
constructor() {
|
|
super("api.DeleteAllAliasesToResponse", []);
|
|
}
|
|
create(value?: PartialMessage<DeleteAllAliasesToResponse>): DeleteAllAliasesToResponse {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
if (value !== undefined)
|
|
reflectionMergePartial<DeleteAllAliasesToResponse>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAllAliasesToResponse): DeleteAllAliasesToResponse {
|
|
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: DeleteAllAliasesToResponse, 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.DeleteAllAliasesToResponse
|
|
*/
|
|
export const DeleteAllAliasesToResponse = new DeleteAllAliasesToResponse$Type();
|
|
/**
|
|
* @generated ServiceType for protobuf service api.AliasService
|
|
*/
|
|
export const AliasService = new ServiceType("api.AliasService", [
|
|
{ name: "CreateAlias", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Aliases"], description: "Create a new alias linking one resource to another. Returns an error if the alias (FromID, AliasType, AliasName) already exists." }, "api.rscType": "Platform", "api.roles": "Platform.Alias", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreateAliasRequest, O: CreateAliasResponse },
|
|
{ name: "GetAlias", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Aliases"], description: "Retrieve an alias by its key (FromID, AliasType, AliasName)" }, "api.rscType": "Platform", "api.roles": "Platform.Alias", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetAliasRequest, O: GetAliasResponse },
|
|
{ name: "ListAliasesFrom", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Aliases"], description: "List all aliases originating from a resource. Optionally filter by AliasType." }, "api.rscType": "Platform", "api.roles": "Platform.Alias", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ListAliasesFromRequest, O: ListAliasesFromResponse },
|
|
{ name: "ListAliasesTo", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Aliases"], description: "List all aliases pointing to a resource (reverse lookup)" }, "api.rscType": "Platform", "api.roles": "Platform.Alias", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ListAliasesToRequest, O: ListAliasesToResponse },
|
|
{ name: "DeleteAlias", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Aliases"], description: "Delete a specific alias by its key (FromID, AliasType, AliasName)" }, "api.rscType": "Platform", "api.roles": "Platform.Alias", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteAliasRequest, O: DeleteAliasResponse },
|
|
{ name: "DeleteAllAliasesFrom", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Aliases"], description: "Delete all aliases originating from a resource. Optionally filter by AliasType." }, "api.rscType": "Platform", "api.roles": "Platform.Alias", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteAllAliasesFromRequest, O: DeleteAllAliasesFromResponse },
|
|
{ name: "DeleteAllAliasesTo", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Aliases"], description: "Delete all aliases pointing to a resource" }, "api.rscType": "Platform", "api.roles": "Platform.Alias", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteAllAliasesToRequest, O: DeleteAllAliasesToResponse }
|
|
], { "api.k8sService": "authorization-server" });
|