// @generated by protobuf-ts 2.9.6
// @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 [json_name = "ID"];
     */
    iD: string;
    /**
     * @generated from protobuf field: string Name = 2 [json_name = "Name"];
     */
    name: string;
    /**
     * @generated from protobuf field: string ConnectorID = 3 [json_name = "ConnectorID"];
     */
    connectorID: string;
    /**
     * @generated from protobuf field: string PartnerAppID = 4 [json_name = "PartnerAppID"];
     */
    partnerAppID: string;
    /**
     * @generated from protobuf field: string ServiceAccountName = 5 [json_name = "ServiceAccountName"];
     */
    serviceAccountName: string;
    /**
     * @generated from protobuf field: string UriApiStatus = 6 [json_name = "UriApiStatus"];
     */
    uriApiStatus: string;
    /**
     * @generated from protobuf field: string UriApiStart = 7 [json_name = "UriApiStart"];
     */
    uriApiStart: string;
    /**
     * @generated from protobuf field: string UriApiStop = 8 [json_name = "UriApiStop"];
     */
    uriApiStop: string;
    /**
     * @generated from protobuf field: string AuthzServer = 9 [json_name = "AuthzServer"];
     */
    authzServer: string;
    /**
     * @generated from protobuf field: bool InitializedByConnectionManager = 10 [json_name = "InitializedByConnectionManager"];
     */
    initializedByConnectionManager: boolean;
    /**
     * @generated from protobuf field: string UriApiClear = 11 [json_name = "UriApiClear"];
     */
    uriApiClear: string;
}
/**
 * @generated from protobuf message api.CreateConnectionRequest
 */
export interface CreateConnectionRequest {
    /**
     * @generated from protobuf field: api.RequestPartnerAppHeader Header = 1 [json_name = "Header"];
     */
    header?: RequestPartnerAppHeader;
    /**
     * @generated from protobuf field: string ConnectorID = 2 [json_name = "ConnectorID"];
     */
    connectorID: string;
    /**
     * @generated from protobuf field: string Name = 3 [json_name = "Name"];
     */
    name: string;
}
/**
 * @generated from protobuf message api.CreateConnectionResult
 */
export interface CreateConnectionResult {
    /**
     * @generated from protobuf field: api.Connection Result = 1 [json_name = "Result"];
     */
    result?: Connection;
}
/**
 * @generated from protobuf message api.DeleteConnectionRequest
 */
export interface DeleteConnectionRequest {
    /**
     * @generated from protobuf field: api.RequestPartnerAppHeader Header = 1 [json_name = "Header"];
     */
    header?: RequestPartnerAppHeader;
    /**
     * @generated from protobuf field: string ConnectionID = 2 [json_name = "ConnectionID"];
     */
    connectionID: string;
}
/**
 * @generated from protobuf message api.DeleteConnectionResult
 */
export interface DeleteConnectionResult {
    /**
     * @generated from protobuf field: api.WorkflowExecutionResult WorkflowExecution = 1 [json_name = "WorkflowExecution"];
     */
    workflowExecution?: WorkflowExecutionResult;
}
/**
 * @generated from protobuf message api.ListConnectionsRequest
 */
export interface ListConnectionsRequest {
    /**
     * @generated from protobuf field: api.RequestPartnerAppHeader Header = 1 [json_name = "Header"];
     */
    header?: RequestPartnerAppHeader;
    /**
     * @generated from protobuf field: string ConnectorID = 2 [json_name = "ConnectorID"];
     */
    connectorID: string;
    /**
     * @generated from protobuf field: api.Paging Paging = 3 [json_name = "Paging"];
     */
    paging?: Paging;
}
/**
 * @generated from protobuf message api.ListConnectionsResult
 */
export interface ListConnectionsResult {
    /**
     * @generated from protobuf field: repeated api.Connection Results = 1 [json_name = "Results"];
     */
    results: Connection[];
}
/**
 * @generated from protobuf message api.GetDetailsConnectionsRequest
 */
export interface GetDetailsConnectionsRequest {
    /**
     * @generated from protobuf field: api.RequestConnectionHeader Header = 1 [json_name = "Header"];
     */
    header?: RequestConnectionHeader;
}
/**
 * @generated from protobuf message api.GetDetailsConnectionsResult
 */
export interface GetDetailsConnectionsResult {
    /**
     * @generated from protobuf field: api.Connection Connection = 1 [json_name = "Connection"];
     */
    connection?: Connection;
    /**
     * @generated from protobuf field: api.Connector Connector = 2 [json_name = "Connector"];
     */
    connector?: Connector;
    /**
     * @generated from protobuf field: api.PartnerApp PartnerApp = 3 [json_name = "PartnerApp"];
     */
    partnerApp?: PartnerApp;
}
/**
 * @generated from protobuf message api.GetStartDetailsConnectionsRequest
 */
export interface GetStartDetailsConnectionsRequest {
    /**
     * @generated from protobuf field: api.RequestConnectionHeader Header = 1 [json_name = "Header"];
     */
    header?: RequestConnectionHeader;
}
/**
 * @generated from protobuf message api.GetStartDetailsConnectionsResult
 */
export interface GetStartDetailsConnectionsResult {
    /**
     * @generated from protobuf field: string UriStartApi = 1 [json_name = "UriStartApi"];
     */
    uriStartApi: string;
}
/**
 * @generated from protobuf message api.SetRunDetailsConnectionsRequest
 */
export interface SetRunDetailsConnectionsRequest {
    /**
     * @generated from protobuf field: api.RequestConnectionHeader Header = 1 [json_name = "Header"];
     */
    header?: RequestConnectionHeader;
    /**
     * @generated from protobuf field: string UriApiStatus = 2 [json_name = "UriApiStatus"];
     */
    uriApiStatus: string;
    /**
     * @generated from protobuf field: string UriApiStart = 3 [json_name = "UriApiStart"];
     */
    uriApiStart: string;
    /**
     * @generated from protobuf field: string UriApiStop = 4 [json_name = "UriApiStop"];
     */
    uriApiStop: string;
    /**
     * @generated from protobuf field: string UriApiClear = 5 [json_name = "UriApiClear"];
     */
    uriApiClear: string;
}
/**
 * @generated from protobuf message api.SetRunDetailsConnectionsResult
 */
export interface SetRunDetailsConnectionsResult {
    /**
     * @generated from protobuf field: api.Connection Result = 1 [json_name = "Result"];
     */
    result?: Connection;
}
/**
 * @generated from protobuf message api.RenewConnectionSARequest
 */
export interface RenewConnectionSARequest {
    /**
     * @generated from protobuf field: api.RequestConnectionHeader Header = 1 [json_name = "Header"];
     */
    header?: RequestConnectionHeader;
}
/**
 * @generated from protobuf message api.RenewConnectionSAResult
 */
export interface RenewConnectionSAResult {
    /**
     * @generated from protobuf field: api.User SA = 1 [json_name = "SA"];
     */
    sA?: User;
    /**
     * @generated from protobuf field: string PEM = 2 [json_name = "PEM"];
     */
    pEM: string;
}
/**
 * @generated from protobuf message api.DeleteConnectionInDBRequest
 */
export interface DeleteConnectionInDBRequest {
    /**
     * @generated from protobuf field: string ConnectionID = 1 [json_name = "ConnectionID"];
     */
    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 [json_name = "ConnectionID"];
     */
    connectionID: string;
}
/**
 * @generated from protobuf message api.IsConnectionExistResult
 */
export interface IsConnectionExistResult {
    /**
     * @generated from protobuf field: bool Exist = 1 [json_name = "Exist"];
     */
    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", jsonName: "ID", T: 9 /*ScalarType.STRING*/ },
            { no: 2, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
            { no: 3, name: "ConnectorID", kind: "scalar", jsonName: "ConnectorID", T: 9 /*ScalarType.STRING*/ },
            { no: 4, name: "PartnerAppID", kind: "scalar", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/ },
            { no: 5, name: "ServiceAccountName", kind: "scalar", jsonName: "ServiceAccountName", T: 9 /*ScalarType.STRING*/ },
            { no: 6, name: "UriApiStatus", kind: "scalar", jsonName: "UriApiStatus", T: 9 /*ScalarType.STRING*/ },
            { no: 7, name: "UriApiStart", kind: "scalar", jsonName: "UriApiStart", T: 9 /*ScalarType.STRING*/ },
            { no: 8, name: "UriApiStop", kind: "scalar", jsonName: "UriApiStop", T: 9 /*ScalarType.STRING*/ },
            { no: 9, name: "AuthzServer", kind: "scalar", jsonName: "AuthzServer", T: 9 /*ScalarType.STRING*/ },
            { no: 10, name: "InitializedByConnectionManager", kind: "scalar", jsonName: "InitializedByConnectionManager", T: 8 /*ScalarType.BOOL*/ },
            { no: 11, name: "UriApiClear", kind: "scalar", 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 [json_name = "ID"];*/ 1:
                    message.iD = reader.string();
                    break;
                case /* string Name = 2 [json_name = "Name"];*/ 2:
                    message.name = reader.string();
                    break;
                case /* string ConnectorID = 3 [json_name = "ConnectorID"];*/ 3:
                    message.connectorID = reader.string();
                    break;
                case /* string PartnerAppID = 4 [json_name = "PartnerAppID"];*/ 4:
                    message.partnerAppID = reader.string();
                    break;
                case /* string ServiceAccountName = 5 [json_name = "ServiceAccountName"];*/ 5:
                    message.serviceAccountName = reader.string();
                    break;
                case /* string UriApiStatus = 6 [json_name = "UriApiStatus"];*/ 6:
                    message.uriApiStatus = reader.string();
                    break;
                case /* string UriApiStart = 7 [json_name = "UriApiStart"];*/ 7:
                    message.uriApiStart = reader.string();
                    break;
                case /* string UriApiStop = 8 [json_name = "UriApiStop"];*/ 8:
                    message.uriApiStop = reader.string();
                    break;
                case /* string AuthzServer = 9 [json_name = "AuthzServer"];*/ 9:
                    message.authzServer = reader.string();
                    break;
                case /* bool InitializedByConnectionManager = 10 [json_name = "InitializedByConnectionManager"];*/ 10:
                    message.initializedByConnectionManager = reader.bool();
                    break;
                case /* string UriApiClear = 11 [json_name = "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 [json_name = "ID"]; */
        if (message.iD !== "")
            writer.tag(1, WireType.LengthDelimited).string(message.iD);
        /* string Name = 2 [json_name = "Name"]; */
        if (message.name !== "")
            writer.tag(2, WireType.LengthDelimited).string(message.name);
        /* string ConnectorID = 3 [json_name = "ConnectorID"]; */
        if (message.connectorID !== "")
            writer.tag(3, WireType.LengthDelimited).string(message.connectorID);
        /* string PartnerAppID = 4 [json_name = "PartnerAppID"]; */
        if (message.partnerAppID !== "")
            writer.tag(4, WireType.LengthDelimited).string(message.partnerAppID);
        /* string ServiceAccountName = 5 [json_name = "ServiceAccountName"]; */
        if (message.serviceAccountName !== "")
            writer.tag(5, WireType.LengthDelimited).string(message.serviceAccountName);
        /* string UriApiStatus = 6 [json_name = "UriApiStatus"]; */
        if (message.uriApiStatus !== "")
            writer.tag(6, WireType.LengthDelimited).string(message.uriApiStatus);
        /* string UriApiStart = 7 [json_name = "UriApiStart"]; */
        if (message.uriApiStart !== "")
            writer.tag(7, WireType.LengthDelimited).string(message.uriApiStart);
        /* string UriApiStop = 8 [json_name = "UriApiStop"]; */
        if (message.uriApiStop !== "")
            writer.tag(8, WireType.LengthDelimited).string(message.uriApiStop);
        /* string AuthzServer = 9 [json_name = "AuthzServer"]; */
        if (message.authzServer !== "")
            writer.tag(9, WireType.LengthDelimited).string(message.authzServer);
        /* bool InitializedByConnectionManager = 10 [json_name = "InitializedByConnectionManager"]; */
        if (message.initializedByConnectionManager !== false)
            writer.tag(10, WireType.Varint).bool(message.initializedByConnectionManager);
        /* string UriApiClear = 11 [json_name = "UriApiClear"]; */
        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", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } },
            { no: 2, name: "ConnectorID", kind: "scalar", jsonName: "ConnectorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
            { no: 3, name: "Name", kind: "scalar", 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 [json_name = "Header"];*/ 1:
                    message.header = RequestPartnerAppHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
                    break;
                case /* string ConnectorID = 2 [json_name = "ConnectorID"];*/ 2:
                    message.connectorID = reader.string();
                    break;
                case /* string Name = 3 [json_name = "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 [json_name = "Header"]; */
        if (message.header)
            RequestPartnerAppHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
        /* string ConnectorID = 2 [json_name = "ConnectorID"]; */
        if (message.connectorID !== "")
            writer.tag(2, WireType.LengthDelimited).string(message.connectorID);
        /* string Name = 3 [json_name = "Name"]; */
        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", 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 [json_name = "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 [json_name = "Result"]; */
        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", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } },
            { no: 2, name: "ConnectionID", kind: "scalar", 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 [json_name = "Header"];*/ 1:
                    message.header = RequestPartnerAppHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
                    break;
                case /* string ConnectionID = 2 [json_name = "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 [json_name = "Header"]; */
        if (message.header)
            RequestPartnerAppHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
        /* string ConnectionID = 2 [json_name = "ConnectionID"]; */
        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", 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 [json_name = "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 [json_name = "WorkflowExecution"]; */
        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", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } },
            { no: 2, name: "ConnectorID", kind: "scalar", jsonName: "ConnectorID", T: 9 /*ScalarType.STRING*/ },
            { no: 3, name: "Paging", kind: "message", 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 [json_name = "Header"];*/ 1:
                    message.header = RequestPartnerAppHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
                    break;
                case /* string ConnectorID = 2 [json_name = "ConnectorID"];*/ 2:
                    message.connectorID = reader.string();
                    break;
                case /* api.Paging Paging = 3 [json_name = "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 [json_name = "Header"]; */
        if (message.header)
            RequestPartnerAppHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
        /* string ConnectorID = 2 [json_name = "ConnectorID"]; */
        if (message.connectorID !== "")
            writer.tag(2, WireType.LengthDelimited).string(message.connectorID);
        /* api.Paging Paging = 3 [json_name = "Paging"]; */
        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", jsonName: "Results", repeat: 1 /*RepeatType.PACKED*/, 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 [json_name = "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 [json_name = "Results"]; */
        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", 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 [json_name = "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 [json_name = "Header"]; */
        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", jsonName: "Connection", T: () => Connection },
            { no: 2, name: "Connector", kind: "message", jsonName: "Connector", T: () => Connector },
            { no: 3, name: "PartnerApp", kind: "message", 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 [json_name = "Connection"];*/ 1:
                    message.connection = Connection.internalBinaryRead(reader, reader.uint32(), options, message.connection);
                    break;
                case /* api.Connector Connector = 2 [json_name = "Connector"];*/ 2:
                    message.connector = Connector.internalBinaryRead(reader, reader.uint32(), options, message.connector);
                    break;
                case /* api.PartnerApp PartnerApp = 3 [json_name = "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 [json_name = "Connection"]; */
        if (message.connection)
            Connection.internalBinaryWrite(message.connection, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
        /* api.Connector Connector = 2 [json_name = "Connector"]; */
        if (message.connector)
            Connector.internalBinaryWrite(message.connector, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
        /* api.PartnerApp PartnerApp = 3 [json_name = "PartnerApp"]; */
        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", 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 [json_name = "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 [json_name = "Header"]; */
        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", 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 [json_name = "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 [json_name = "UriStartApi"]; */
        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", jsonName: "Header", T: () => RequestConnectionHeader, options: { "validate.rules": { message: { required: true } } } },
            { no: 2, name: "UriApiStatus", kind: "scalar", jsonName: "UriApiStatus", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
            { no: 3, name: "UriApiStart", kind: "scalar", jsonName: "UriApiStart", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
            { no: 4, name: "UriApiStop", kind: "scalar", jsonName: "UriApiStop", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
            { no: 5, name: "UriApiClear", kind: "scalar", 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 [json_name = "Header"];*/ 1:
                    message.header = RequestConnectionHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
                    break;
                case /* string UriApiStatus = 2 [json_name = "UriApiStatus"];*/ 2:
                    message.uriApiStatus = reader.string();
                    break;
                case /* string UriApiStart = 3 [json_name = "UriApiStart"];*/ 3:
                    message.uriApiStart = reader.string();
                    break;
                case /* string UriApiStop = 4 [json_name = "UriApiStop"];*/ 4:
                    message.uriApiStop = reader.string();
                    break;
                case /* string UriApiClear = 5 [json_name = "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 [json_name = "Header"]; */
        if (message.header)
            RequestConnectionHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
        /* string UriApiStatus = 2 [json_name = "UriApiStatus"]; */
        if (message.uriApiStatus !== "")
            writer.tag(2, WireType.LengthDelimited).string(message.uriApiStatus);
        /* string UriApiStart = 3 [json_name = "UriApiStart"]; */
        if (message.uriApiStart !== "")
            writer.tag(3, WireType.LengthDelimited).string(message.uriApiStart);
        /* string UriApiStop = 4 [json_name = "UriApiStop"]; */
        if (message.uriApiStop !== "")
            writer.tag(4, WireType.LengthDelimited).string(message.uriApiStop);
        /* string UriApiClear = 5 [json_name = "UriApiClear"]; */
        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", 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 [json_name = "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 [json_name = "Result"]; */
        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", 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 [json_name = "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 [json_name = "Header"]; */
        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", jsonName: "SA", T: () => User },
            { no: 2, name: "PEM", kind: "scalar", 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 [json_name = "SA"];*/ 1:
                    message.sA = User.internalBinaryRead(reader, reader.uint32(), options, message.sA);
                    break;
                case /* string PEM = 2 [json_name = "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 [json_name = "SA"]; */
        if (message.sA)
            User.internalBinaryWrite(message.sA, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
        /* string PEM = 2 [json_name = "PEM"]; */
        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", 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 [json_name = "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 [json_name = "ConnectionID"]; */
        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", 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 [json_name = "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 [json_name = "ConnectionID"]; */
        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", 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 [json_name = "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 [json_name = "Exist"]; */
        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 });
