Files
npm-core-sdk/connection.ts
2025-12-09 11:20:34 +00:00

1335 lines
68 KiB
TypeScript

// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
// @generated from protobuf file "connection.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 { User } from "./user";
import { PartnerApp } from "./partnerApp";
import { Connector } from "./connector";
import { RequestConnectionHeader } from "./shared";
import { Paging } from "./base";
import { WorkflowExecutionResult } from "./shared";
import { RequestPartnerAppHeader } from "./shared";
/**
* @generated from protobuf message api.Connection
*/
export interface Connection {
/**
* @generated from protobuf field: string ID = 1
*/
ID: string;
/**
* @generated from protobuf field: string Name = 2
*/
Name: string;
/**
* @generated from protobuf field: string ConnectorID = 3
*/
ConnectorID: string;
/**
* @generated from protobuf field: string PartnerAppID = 4
*/
PartnerAppID: string;
/**
* @generated from protobuf field: string ServiceAccountName = 5
*/
ServiceAccountName: string;
/**
* @generated from protobuf field: string UriApiStatus = 6
*/
UriApiStatus: string;
/**
* @generated from protobuf field: string UriApiStart = 7
*/
UriApiStart: string;
/**
* @generated from protobuf field: string UriApiStop = 8
*/
UriApiStop: string;
/**
* @generated from protobuf field: string AuthzServer = 9
*/
AuthzServer: string;
/**
* @generated from protobuf field: bool InitializedByConnectionManager = 10
*/
InitializedByConnectionManager: boolean;
/**
* @generated from protobuf field: string UriApiClear = 11
*/
UriApiClear: string;
}
/**
* @generated from protobuf message api.CreateConnectionRequest
*/
export interface CreateConnectionRequest {
/**
* @generated from protobuf field: api.RequestPartnerAppHeader Header = 1
*/
Header?: RequestPartnerAppHeader;
/**
* @generated from protobuf field: string ConnectorID = 2
*/
ConnectorID: string;
/**
* @generated from protobuf field: string Name = 3
*/
Name: string;
}
/**
* @generated from protobuf message api.CreateConnectionResult
*/
export interface CreateConnectionResult {
/**
* @generated from protobuf field: api.Connection Result = 1
*/
Result?: Connection;
}
/**
* @generated from protobuf message api.DeleteConnectionRequest
*/
export interface DeleteConnectionRequest {
/**
* @generated from protobuf field: api.RequestPartnerAppHeader Header = 1
*/
Header?: RequestPartnerAppHeader;
/**
* @generated from protobuf field: string ConnectionID = 2
*/
ConnectionID: string;
}
/**
* @generated from protobuf message api.DeleteConnectionResult
*/
export interface DeleteConnectionResult {
/**
* @generated from protobuf field: api.WorkflowExecutionResult WorkflowExecution = 1
*/
WorkflowExecution?: WorkflowExecutionResult;
}
/**
* @generated from protobuf message api.ListConnectionsRequest
*/
export interface ListConnectionsRequest {
/**
* @generated from protobuf field: api.RequestPartnerAppHeader Header = 1
*/
Header?: RequestPartnerAppHeader;
/**
* @generated from protobuf field: string ConnectorID = 2
*/
ConnectorID: string;
/**
* @generated from protobuf field: api.Paging Paging = 3
*/
Paging?: Paging;
}
/**
* @generated from protobuf message api.ListConnectionsResult
*/
export interface ListConnectionsResult {
/**
* @generated from protobuf field: repeated api.Connection Results = 1
*/
Results: Connection[];
}
/**
* @generated from protobuf message api.GetDetailsConnectionsRequest
*/
export interface GetDetailsConnectionsRequest {
/**
* @generated from protobuf field: api.RequestConnectionHeader Header = 1
*/
Header?: RequestConnectionHeader;
}
/**
* @generated from protobuf message api.GetDetailsConnectionsResult
*/
export interface GetDetailsConnectionsResult {
/**
* @generated from protobuf field: api.Connection Connection = 1
*/
Connection?: Connection;
/**
* @generated from protobuf field: api.Connector Connector = 2
*/
Connector?: Connector;
/**
* @generated from protobuf field: api.PartnerApp PartnerApp = 3
*/
PartnerApp?: PartnerApp;
}
/**
* @generated from protobuf message api.GetStartDetailsConnectionsRequest
*/
export interface GetStartDetailsConnectionsRequest {
/**
* @generated from protobuf field: api.RequestConnectionHeader Header = 1
*/
Header?: RequestConnectionHeader;
}
/**
* @generated from protobuf message api.GetStartDetailsConnectionsResult
*/
export interface GetStartDetailsConnectionsResult {
/**
* @generated from protobuf field: string UriStartApi = 1
*/
UriStartApi: string;
}
/**
* @generated from protobuf message api.SetRunDetailsConnectionsRequest
*/
export interface SetRunDetailsConnectionsRequest {
/**
* @generated from protobuf field: api.RequestConnectionHeader Header = 1
*/
Header?: RequestConnectionHeader;
/**
* @generated from protobuf field: string UriApiStatus = 2
*/
UriApiStatus: string;
/**
* @generated from protobuf field: string UriApiStart = 3
*/
UriApiStart: string;
/**
* @generated from protobuf field: string UriApiStop = 4
*/
UriApiStop: string;
/**
* @generated from protobuf field: string UriApiClear = 5
*/
UriApiClear: string;
}
/**
* @generated from protobuf message api.SetRunDetailsConnectionsResult
*/
export interface SetRunDetailsConnectionsResult {
/**
* @generated from protobuf field: api.Connection Result = 1
*/
Result?: Connection;
}
/**
* @generated from protobuf message api.RenewConnectionSARequest
*/
export interface RenewConnectionSARequest {
/**
* @generated from protobuf field: api.RequestConnectionHeader Header = 1
*/
Header?: RequestConnectionHeader;
}
/**
* @generated from protobuf message api.RenewConnectionSAResult
*/
export interface RenewConnectionSAResult {
/**
* @generated from protobuf field: api.User SA = 1
*/
SA?: User;
/**
* @generated from protobuf field: string PEM = 2
*/
PEM: string;
}
/**
* @generated from protobuf message api.DeleteConnectionInDBRequest
*/
export interface DeleteConnectionInDBRequest {
/**
* @generated from protobuf field: string ConnectionID = 1
*/
ConnectionID: string;
}
/**
* @generated from protobuf message api.DeleteConnectionInDBResult
*/
export interface DeleteConnectionInDBResult {
}
/**
* @generated from protobuf message api.IsConnectionExistRequest
*/
export interface IsConnectionExistRequest {
/**
* @generated from protobuf field: string ConnectionID = 1
*/
ConnectionID: string;
}
/**
* @generated from protobuf message api.IsConnectionExistResult
*/
export interface IsConnectionExistResult {
/**
* @generated from protobuf field: bool Exist = 1
*/
Exist: boolean;
}
// @generated message type with reflection information, may provide speed optimized methods
class Connection$Type extends MessageType<Connection> {
constructor() {
super("api.Connection", [
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "ConnectorID", kind: "scalar", localName: "ConnectorID", jsonName: "ConnectorID", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "ServiceAccountName", kind: "scalar", localName: "ServiceAccountName", jsonName: "ServiceAccountName", T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "UriApiStatus", kind: "scalar", localName: "UriApiStatus", jsonName: "UriApiStatus", T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "UriApiStart", kind: "scalar", localName: "UriApiStart", jsonName: "UriApiStart", T: 9 /*ScalarType.STRING*/ },
{ no: 8, name: "UriApiStop", kind: "scalar", localName: "UriApiStop", jsonName: "UriApiStop", T: 9 /*ScalarType.STRING*/ },
{ no: 9, name: "AuthzServer", kind: "scalar", localName: "AuthzServer", jsonName: "AuthzServer", T: 9 /*ScalarType.STRING*/ },
{ no: 10, name: "InitializedByConnectionManager", kind: "scalar", localName: "InitializedByConnectionManager", jsonName: "InitializedByConnectionManager", T: 8 /*ScalarType.BOOL*/ },
{ no: 11, name: "UriApiClear", kind: "scalar", localName: "UriApiClear", jsonName: "UriApiClear", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<Connection>): Connection {
const message = globalThis.Object.create((this.messagePrototype!));
message.ID = "";
message.Name = "";
message.ConnectorID = "";
message.PartnerAppID = "";
message.ServiceAccountName = "";
message.UriApiStatus = "";
message.UriApiStart = "";
message.UriApiStop = "";
message.AuthzServer = "";
message.InitializedByConnectionManager = false;
message.UriApiClear = "";
if (value !== undefined)
reflectionMergePartial<Connection>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Connection): Connection {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ID */ 1:
message.ID = reader.string();
break;
case /* string Name */ 2:
message.Name = reader.string();
break;
case /* string ConnectorID */ 3:
message.ConnectorID = reader.string();
break;
case /* string PartnerAppID */ 4:
message.PartnerAppID = reader.string();
break;
case /* string ServiceAccountName */ 5:
message.ServiceAccountName = reader.string();
break;
case /* string UriApiStatus */ 6:
message.UriApiStatus = reader.string();
break;
case /* string UriApiStart */ 7:
message.UriApiStart = reader.string();
break;
case /* string UriApiStop */ 8:
message.UriApiStop = reader.string();
break;
case /* string AuthzServer */ 9:
message.AuthzServer = reader.string();
break;
case /* bool InitializedByConnectionManager */ 10:
message.InitializedByConnectionManager = reader.bool();
break;
case /* string UriApiClear */ 11:
message.UriApiClear = 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: Connection, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ID = 1; */
if (message.ID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ID);
/* string Name = 2; */
if (message.Name !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Name);
/* string ConnectorID = 3; */
if (message.ConnectorID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.ConnectorID);
/* string PartnerAppID = 4; */
if (message.PartnerAppID !== "")
writer.tag(4, WireType.LengthDelimited).string(message.PartnerAppID);
/* string ServiceAccountName = 5; */
if (message.ServiceAccountName !== "")
writer.tag(5, WireType.LengthDelimited).string(message.ServiceAccountName);
/* string UriApiStatus = 6; */
if (message.UriApiStatus !== "")
writer.tag(6, WireType.LengthDelimited).string(message.UriApiStatus);
/* string UriApiStart = 7; */
if (message.UriApiStart !== "")
writer.tag(7, WireType.LengthDelimited).string(message.UriApiStart);
/* string UriApiStop = 8; */
if (message.UriApiStop !== "")
writer.tag(8, WireType.LengthDelimited).string(message.UriApiStop);
/* string AuthzServer = 9; */
if (message.AuthzServer !== "")
writer.tag(9, WireType.LengthDelimited).string(message.AuthzServer);
/* bool InitializedByConnectionManager = 10; */
if (message.InitializedByConnectionManager !== false)
writer.tag(10, WireType.Varint).bool(message.InitializedByConnectionManager);
/* string UriApiClear = 11; */
if (message.UriApiClear !== "")
writer.tag(11, WireType.LengthDelimited).string(message.UriApiClear);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.Connection
*/
export const Connection = new Connection$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CreateConnectionRequest$Type extends MessageType<CreateConnectionRequest> {
constructor() {
super("api.CreateConnectionRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ConnectorID", kind: "scalar", localName: "ConnectorID", jsonName: "ConnectorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ConnectorID", "Name"] } } });
}
create(value?: PartialMessage<CreateConnectionRequest>): CreateConnectionRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ConnectorID = "";
message.Name = "";
if (value !== undefined)
reflectionMergePartial<CreateConnectionRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateConnectionRequest): CreateConnectionRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestPartnerAppHeader Header */ 1:
message.Header = RequestPartnerAppHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string ConnectorID */ 2:
message.ConnectorID = reader.string();
break;
case /* string Name */ 3:
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: CreateConnectionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestPartnerAppHeader Header = 1; */
if (message.Header)
RequestPartnerAppHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string ConnectorID = 2; */
if (message.ConnectorID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ConnectorID);
/* string Name = 3; */
if (message.Name !== "")
writer.tag(3, 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.CreateConnectionRequest
*/
export const CreateConnectionRequest = new CreateConnectionRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CreateConnectionResult$Type extends MessageType<CreateConnectionResult> {
constructor() {
super("api.CreateConnectionResult", [
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Connection }
]);
}
create(value?: PartialMessage<CreateConnectionResult>): CreateConnectionResult {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<CreateConnectionResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateConnectionResult): CreateConnectionResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.Connection Result */ 1:
message.Result = Connection.internalBinaryRead(reader, reader.uint32(), options, message.Result);
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: CreateConnectionResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.Connection Result = 1; */
if (message.Result)
Connection.internalBinaryWrite(message.Result, 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.CreateConnectionResult
*/
export const CreateConnectionResult = new CreateConnectionResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteConnectionRequest$Type extends MessageType<DeleteConnectionRequest> {
constructor() {
super("api.DeleteConnectionRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ConnectorID"] } } });
}
create(value?: PartialMessage<DeleteConnectionRequest>): DeleteConnectionRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ConnectionID = "";
if (value !== undefined)
reflectionMergePartial<DeleteConnectionRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteConnectionRequest): DeleteConnectionRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestPartnerAppHeader Header */ 1:
message.Header = RequestPartnerAppHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string ConnectionID */ 2:
message.ConnectionID = 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: DeleteConnectionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestPartnerAppHeader Header = 1; */
if (message.Header)
RequestPartnerAppHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string ConnectionID = 2; */
if (message.ConnectionID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ConnectionID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.DeleteConnectionRequest
*/
export const DeleteConnectionRequest = new DeleteConnectionRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteConnectionResult$Type extends MessageType<DeleteConnectionResult> {
constructor() {
super("api.DeleteConnectionResult", [
{ no: 1, name: "WorkflowExecution", kind: "message", localName: "WorkflowExecution", jsonName: "WorkflowExecution", T: () => WorkflowExecutionResult }
]);
}
create(value?: PartialMessage<DeleteConnectionResult>): DeleteConnectionResult {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<DeleteConnectionResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteConnectionResult): DeleteConnectionResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.WorkflowExecutionResult WorkflowExecution */ 1:
message.WorkflowExecution = WorkflowExecutionResult.internalBinaryRead(reader, reader.uint32(), options, message.WorkflowExecution);
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: DeleteConnectionResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.WorkflowExecutionResult WorkflowExecution = 1; */
if (message.WorkflowExecution)
WorkflowExecutionResult.internalBinaryWrite(message.WorkflowExecution, 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.DeleteConnectionResult
*/
export const DeleteConnectionResult = new DeleteConnectionResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListConnectionsRequest$Type extends MessageType<ListConnectionsRequest> {
constructor() {
super("api.ListConnectionsRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ConnectorID", kind: "scalar", localName: "ConnectorID", jsonName: "ConnectorID", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "Paging", kind: "message", localName: "Paging", jsonName: "Paging", T: () => Paging }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<ListConnectionsRequest>): ListConnectionsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ConnectorID = "";
if (value !== undefined)
reflectionMergePartial<ListConnectionsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListConnectionsRequest): ListConnectionsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestPartnerAppHeader Header */ 1:
message.Header = RequestPartnerAppHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string ConnectorID */ 2:
message.ConnectorID = reader.string();
break;
case /* api.Paging Paging */ 3:
message.Paging = Paging.internalBinaryRead(reader, reader.uint32(), options, message.Paging);
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: ListConnectionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestPartnerAppHeader Header = 1; */
if (message.Header)
RequestPartnerAppHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string ConnectorID = 2; */
if (message.ConnectorID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ConnectorID);
/* api.Paging Paging = 3; */
if (message.Paging)
Paging.internalBinaryWrite(message.Paging, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ListConnectionsRequest
*/
export const ListConnectionsRequest = new ListConnectionsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListConnectionsResult$Type extends MessageType<ListConnectionsResult> {
constructor() {
super("api.ListConnectionsResult", [
{ no: 1, name: "Results", kind: "message", localName: "Results", jsonName: "Results", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Connection }
]);
}
create(value?: PartialMessage<ListConnectionsResult>): ListConnectionsResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.Results = [];
if (value !== undefined)
reflectionMergePartial<ListConnectionsResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListConnectionsResult): ListConnectionsResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.Connection Results */ 1:
message.Results.push(Connection.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: ListConnectionsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.Connection Results = 1; */
for (let i = 0; i < message.Results.length; i++)
Connection.internalBinaryWrite(message.Results[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ListConnectionsResult
*/
export const ListConnectionsResult = new ListConnectionsResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetDetailsConnectionsRequest$Type extends MessageType<GetDetailsConnectionsRequest> {
constructor() {
super("api.GetDetailsConnectionsRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestConnectionHeader, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<GetDetailsConnectionsRequest>): GetDetailsConnectionsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<GetDetailsConnectionsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDetailsConnectionsRequest): GetDetailsConnectionsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestConnectionHeader Header */ 1:
message.Header = RequestConnectionHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
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: GetDetailsConnectionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestConnectionHeader Header = 1; */
if (message.Header)
RequestConnectionHeader.internalBinaryWrite(message.Header, 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.GetDetailsConnectionsRequest
*/
export const GetDetailsConnectionsRequest = new GetDetailsConnectionsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetDetailsConnectionsResult$Type extends MessageType<GetDetailsConnectionsResult> {
constructor() {
super("api.GetDetailsConnectionsResult", [
{ no: 1, name: "Connection", kind: "message", localName: "Connection", jsonName: "Connection", T: () => Connection },
{ no: 2, name: "Connector", kind: "message", localName: "Connector", jsonName: "Connector", T: () => Connector },
{ no: 3, name: "PartnerApp", kind: "message", localName: "PartnerApp", jsonName: "PartnerApp", T: () => PartnerApp }
]);
}
create(value?: PartialMessage<GetDetailsConnectionsResult>): GetDetailsConnectionsResult {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<GetDetailsConnectionsResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetDetailsConnectionsResult): GetDetailsConnectionsResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.Connection Connection */ 1:
message.Connection = Connection.internalBinaryRead(reader, reader.uint32(), options, message.Connection);
break;
case /* api.Connector Connector */ 2:
message.Connector = Connector.internalBinaryRead(reader, reader.uint32(), options, message.Connector);
break;
case /* api.PartnerApp PartnerApp */ 3:
message.PartnerApp = PartnerApp.internalBinaryRead(reader, reader.uint32(), options, message.PartnerApp);
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: GetDetailsConnectionsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.Connection Connection = 1; */
if (message.Connection)
Connection.internalBinaryWrite(message.Connection, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.Connector Connector = 2; */
if (message.Connector)
Connector.internalBinaryWrite(message.Connector, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.PartnerApp PartnerApp = 3; */
if (message.PartnerApp)
PartnerApp.internalBinaryWrite(message.PartnerApp, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GetDetailsConnectionsResult
*/
export const GetDetailsConnectionsResult = new GetDetailsConnectionsResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetStartDetailsConnectionsRequest$Type extends MessageType<GetStartDetailsConnectionsRequest> {
constructor() {
super("api.GetStartDetailsConnectionsRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestConnectionHeader, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<GetStartDetailsConnectionsRequest>): GetStartDetailsConnectionsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<GetStartDetailsConnectionsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetStartDetailsConnectionsRequest): GetStartDetailsConnectionsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestConnectionHeader Header */ 1:
message.Header = RequestConnectionHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
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: GetStartDetailsConnectionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestConnectionHeader Header = 1; */
if (message.Header)
RequestConnectionHeader.internalBinaryWrite(message.Header, 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.GetStartDetailsConnectionsRequest
*/
export const GetStartDetailsConnectionsRequest = new GetStartDetailsConnectionsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetStartDetailsConnectionsResult$Type extends MessageType<GetStartDetailsConnectionsResult> {
constructor() {
super("api.GetStartDetailsConnectionsResult", [
{ no: 1, name: "UriStartApi", kind: "scalar", localName: "UriStartApi", jsonName: "UriStartApi", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<GetStartDetailsConnectionsResult>): GetStartDetailsConnectionsResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.UriStartApi = "";
if (value !== undefined)
reflectionMergePartial<GetStartDetailsConnectionsResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetStartDetailsConnectionsResult): GetStartDetailsConnectionsResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string UriStartApi */ 1:
message.UriStartApi = 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: GetStartDetailsConnectionsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string UriStartApi = 1; */
if (message.UriStartApi !== "")
writer.tag(1, WireType.LengthDelimited).string(message.UriStartApi);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GetStartDetailsConnectionsResult
*/
export const GetStartDetailsConnectionsResult = new GetStartDetailsConnectionsResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SetRunDetailsConnectionsRequest$Type extends MessageType<SetRunDetailsConnectionsRequest> {
constructor() {
super("api.SetRunDetailsConnectionsRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestConnectionHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "UriApiStatus", kind: "scalar", localName: "UriApiStatus", jsonName: "UriApiStatus", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "UriApiStart", kind: "scalar", localName: "UriApiStart", jsonName: "UriApiStart", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "UriApiStop", kind: "scalar", localName: "UriApiStop", jsonName: "UriApiStop", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 5, name: "UriApiClear", kind: "scalar", localName: "UriApiClear", jsonName: "UriApiClear", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UriApiStatus", "UriApiStart", "UriApiStop", "UriApiClear"] } } });
}
create(value?: PartialMessage<SetRunDetailsConnectionsRequest>): SetRunDetailsConnectionsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.UriApiStatus = "";
message.UriApiStart = "";
message.UriApiStop = "";
message.UriApiClear = "";
if (value !== undefined)
reflectionMergePartial<SetRunDetailsConnectionsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetRunDetailsConnectionsRequest): SetRunDetailsConnectionsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestConnectionHeader Header */ 1:
message.Header = RequestConnectionHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string UriApiStatus */ 2:
message.UriApiStatus = reader.string();
break;
case /* string UriApiStart */ 3:
message.UriApiStart = reader.string();
break;
case /* string UriApiStop */ 4:
message.UriApiStop = reader.string();
break;
case /* string UriApiClear */ 5:
message.UriApiClear = 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: SetRunDetailsConnectionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestConnectionHeader Header = 1; */
if (message.Header)
RequestConnectionHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string UriApiStatus = 2; */
if (message.UriApiStatus !== "")
writer.tag(2, WireType.LengthDelimited).string(message.UriApiStatus);
/* string UriApiStart = 3; */
if (message.UriApiStart !== "")
writer.tag(3, WireType.LengthDelimited).string(message.UriApiStart);
/* string UriApiStop = 4; */
if (message.UriApiStop !== "")
writer.tag(4, WireType.LengthDelimited).string(message.UriApiStop);
/* string UriApiClear = 5; */
if (message.UriApiClear !== "")
writer.tag(5, WireType.LengthDelimited).string(message.UriApiClear);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.SetRunDetailsConnectionsRequest
*/
export const SetRunDetailsConnectionsRequest = new SetRunDetailsConnectionsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SetRunDetailsConnectionsResult$Type extends MessageType<SetRunDetailsConnectionsResult> {
constructor() {
super("api.SetRunDetailsConnectionsResult", [
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Connection }
]);
}
create(value?: PartialMessage<SetRunDetailsConnectionsResult>): SetRunDetailsConnectionsResult {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<SetRunDetailsConnectionsResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetRunDetailsConnectionsResult): SetRunDetailsConnectionsResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.Connection Result */ 1:
message.Result = Connection.internalBinaryRead(reader, reader.uint32(), options, message.Result);
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: SetRunDetailsConnectionsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.Connection Result = 1; */
if (message.Result)
Connection.internalBinaryWrite(message.Result, 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.SetRunDetailsConnectionsResult
*/
export const SetRunDetailsConnectionsResult = new SetRunDetailsConnectionsResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RenewConnectionSARequest$Type extends MessageType<RenewConnectionSARequest> {
constructor() {
super("api.RenewConnectionSARequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestConnectionHeader, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<RenewConnectionSARequest>): RenewConnectionSARequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<RenewConnectionSARequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RenewConnectionSARequest): RenewConnectionSARequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestConnectionHeader Header */ 1:
message.Header = RequestConnectionHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
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: RenewConnectionSARequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestConnectionHeader Header = 1; */
if (message.Header)
RequestConnectionHeader.internalBinaryWrite(message.Header, 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.RenewConnectionSARequest
*/
export const RenewConnectionSARequest = new RenewConnectionSARequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RenewConnectionSAResult$Type extends MessageType<RenewConnectionSAResult> {
constructor() {
super("api.RenewConnectionSAResult", [
{ no: 1, name: "SA", kind: "message", localName: "SA", jsonName: "SA", T: () => User },
{ no: 2, name: "PEM", kind: "scalar", localName: "PEM", jsonName: "PEM", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<RenewConnectionSAResult>): RenewConnectionSAResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.PEM = "";
if (value !== undefined)
reflectionMergePartial<RenewConnectionSAResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RenewConnectionSAResult): RenewConnectionSAResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.User SA */ 1:
message.SA = User.internalBinaryRead(reader, reader.uint32(), options, message.SA);
break;
case /* string PEM */ 2:
message.PEM = 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: RenewConnectionSAResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.User SA = 1; */
if (message.SA)
User.internalBinaryWrite(message.SA, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string PEM = 2; */
if (message.PEM !== "")
writer.tag(2, WireType.LengthDelimited).string(message.PEM);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.RenewConnectionSAResult
*/
export const RenewConnectionSAResult = new RenewConnectionSAResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteConnectionInDBRequest$Type extends MessageType<DeleteConnectionInDBRequest> {
constructor() {
super("api.DeleteConnectionInDBRequest", [
{ no: 1, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ConnectionID"] } } });
}
create(value?: PartialMessage<DeleteConnectionInDBRequest>): DeleteConnectionInDBRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ConnectionID = "";
if (value !== undefined)
reflectionMergePartial<DeleteConnectionInDBRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteConnectionInDBRequest): DeleteConnectionInDBRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ConnectionID */ 1:
message.ConnectionID = 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: DeleteConnectionInDBRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ConnectionID = 1; */
if (message.ConnectionID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ConnectionID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.DeleteConnectionInDBRequest
*/
export const DeleteConnectionInDBRequest = new DeleteConnectionInDBRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteConnectionInDBResult$Type extends MessageType<DeleteConnectionInDBResult> {
constructor() {
super("api.DeleteConnectionInDBResult", []);
}
create(value?: PartialMessage<DeleteConnectionInDBResult>): DeleteConnectionInDBResult {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<DeleteConnectionInDBResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteConnectionInDBResult): DeleteConnectionInDBResult {
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: DeleteConnectionInDBResult, 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.DeleteConnectionInDBResult
*/
export const DeleteConnectionInDBResult = new DeleteConnectionInDBResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class IsConnectionExistRequest$Type extends MessageType<IsConnectionExistRequest> {
constructor() {
super("api.IsConnectionExistRequest", [
{ no: 1, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ConnectionID"] } } });
}
create(value?: PartialMessage<IsConnectionExistRequest>): IsConnectionExistRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ConnectionID = "";
if (value !== undefined)
reflectionMergePartial<IsConnectionExistRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: IsConnectionExistRequest): IsConnectionExistRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ConnectionID */ 1:
message.ConnectionID = 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: IsConnectionExistRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ConnectionID = 1; */
if (message.ConnectionID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ConnectionID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.IsConnectionExistRequest
*/
export const IsConnectionExistRequest = new IsConnectionExistRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class IsConnectionExistResult$Type extends MessageType<IsConnectionExistResult> {
constructor() {
super("api.IsConnectionExistResult", [
{ no: 1, name: "Exist", kind: "scalar", localName: "Exist", jsonName: "Exist", T: 8 /*ScalarType.BOOL*/ }
]);
}
create(value?: PartialMessage<IsConnectionExistResult>): IsConnectionExistResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.Exist = false;
if (value !== undefined)
reflectionMergePartial<IsConnectionExistResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: IsConnectionExistResult): IsConnectionExistResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* bool Exist */ 1:
message.Exist = 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: IsConnectionExistResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* bool Exist = 1; */
if (message.Exist !== false)
writer.tag(1, WireType.Varint).bool(message.Exist);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.IsConnectionExistResult
*/
export const IsConnectionExistResult = new IsConnectionExistResult$Type();
/**
* @generated ServiceType for protobuf service api.ConnectionService
*/
export const ConnectionService = new ServiceType("api.ConnectionService", [
{ name: "Create", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Connection"], description: "Create a PartnerApp connection" }, "api.rscType": "PartnerApp", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: CreateConnectionRequest, O: CreateConnectionResult },
{ name: "Delete", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Connection"], description: "Delete a partnerApp Connection" }, "api.rscType": "PartnerApp", "api.roles": "Platform.Connection", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteConnectionRequest, O: DeleteConnectionResult },
{ name: "List", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Connection"], description: "List PartnerApp Connections" }, "api.rscType": "PartnerApp", "api.roles": "Platform.Connection", "google.api.method_visibility": { restriction: "SDK" } }, I: ListConnectionsRequest, O: ListConnectionsResult },
{ name: "GetDetails", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Connection"], description: "Get PartnerApp Connection and linked connector details" }, "api.rscType": "Connection", "api.roles": "Platform.Connection", "google.api.method_visibility": { restriction: "SDK" } }, I: GetDetailsConnectionsRequest, O: GetDetailsConnectionsResult },
{ name: "GetStartDetails", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Connection"], description: "Get uri for starting the connection" }, "api.rscType": "Connection", "api.roles": "Platform.Connection", "google.api.method_visibility": { restriction: "SDK" } }, I: GetStartDetailsConnectionsRequest, O: GetStartDetailsConnectionsResult },
{ name: "SetRunDetails", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Connection"], description: "Set run connection details" }, "api.rscType": "Connection", "api.roles": "Platform.Connection", "google.api.method_visibility": { restriction: "SDK" } }, I: SetRunDetailsConnectionsRequest, O: SetRunDetailsConnectionsResult },
{ name: "RenewConnectionSA", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Connection"], description: "Renew Connection SA" }, "api.rscType": "Connection", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: RenewConnectionSARequest, O: RenewConnectionSAResult },
{ name: "DeleteConnectionInDB", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Connection"], description: "Delete Connection in Databases" }, "api.rscType": "Platform", "api.roles": "Platform.Connection", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteConnectionInDBRequest, O: DeleteConnectionInDBResult },
{ name: "IsConnectionExist", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Connection"], description: "Check if Connection is in Databases" }, "api.rscType": "Platform", "api.roles": "Platform.Connection", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: IsConnectionExistRequest, O: IsConnectionExistResult }
], { "api.k8sService": "organisation-server", "api.roleManager": true, "api.resourceManager": true });