// @generated by protobuf-ts 2.9.6
// @generated from protobuf file "connector.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 { RequestProjectHeader } from "./shared";
import { Paging } from "./base";
import { Permission } from "./shared";
/**
 * @generated from protobuf message api.Connector
 */
export interface Connector {
    /**
     * @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: api.ConnectorType Type = 3 [json_name = "Type"];
     */
    type: ConnectorType;
    /**
     * @generated from protobuf field: string Description = 4 [json_name = "Description"];
     */
    description: string;
    /**
     * @generated from protobuf field: string Version = 5 [json_name = "Version"];
     */
    version: string;
    /**
     * @generated from protobuf field: string RepoUrl = 6 [json_name = "RepoUrl"];
     */
    repoUrl: string;
    /**
     * @generated from protobuf field: string MainClassName = 7 [json_name = "MainClassName"];
     */
    mainClassName: string;
    /**
     * @generated from protobuf field: string JarName = 8 [json_name = "JarName"];
     */
    jarName: string;
    /**
     * @generated from protobuf field: string SetupJson = 9 [json_name = "SetupJson"];
     */
    setupJson: string;
    /**
     * @generated from protobuf field: string MetadataJSONParameters = 10 [json_name = "MetadataJSONParameters"];
     */
    metadataJSONParameters: string;
    /**
     * @generated from protobuf field: int32 NbSlots = 11 [json_name = "NbSlots"];
     */
    nbSlots: number;
    /**
     * @generated from protobuf field: string DistributionName = 12 [json_name = "DistributionName"];
     */
    distributionName: string;
    /**
     * @generated from protobuf field: string Release = 13 [json_name = "Release"];
     */
    release: string;
    /**
     * @generated from protobuf field: string ActionsJSONParameters = 14 [json_name = "ActionsJSONParameters"];
     */
    actionsJSONParameters: string;
}
/**
 * @generated from protobuf message api.ParameterMetadata
 */
export interface ParameterMetadata {
    /**
     * @generated from protobuf field: string name = 1;
     */
    name: string;
    /**
     * @generated from protobuf field: string label = 2;
     */
    label: string;
    /**
     * @generated from protobuf field: string help_text = 3;
     */
    helpText: string;
    /**
     * @generated from protobuf field: bool mandatory = 4;
     */
    mandatory: boolean;
    /**
     * @generated from protobuf field: string group_id = 5;
     */
    groupId: string;
    /**
     * @generated from protobuf field: int32 order_id = 6;
     */
    orderId: number;
    /**
     * @generated from protobuf field: string type = 7;
     */
    type: string;
    /**
     * @generated from protobuf field: map<string, string> custom_info = 8;
     */
    customInfo: {
        [key: string]: string;
    };
}
/**
 * @generated from protobuf message api.CreateConnectorRequest
 */
export interface CreateConnectorRequest {
    /**
     * @generated from protobuf field: string Name = 1 [json_name = "Name"];
     */
    name: string;
    /**
     * @generated from protobuf field: api.ConnectorType Type = 2 [json_name = "Type"];
     */
    type: ConnectorType;
    /**
     * @generated from protobuf field: string Description = 3 [json_name = "Description"];
     */
    description: string;
    /**
     * @generated from protobuf field: string Version = 4 [json_name = "Version"];
     */
    version: string;
    /**
     * @generated from protobuf field: string RepoUrl = 5 [json_name = "RepoUrl"];
     */
    repoUrl: string;
    /**
     * @generated from protobuf field: string MainClassName = 6 [json_name = "MainClassName"];
     */
    mainClassName: string;
    /**
     * @generated from protobuf field: string JarName = 7 [json_name = "JarName"];
     */
    jarName: string;
    /**
     * @generated from protobuf field: string SetupJson = 8 [json_name = "SetupJson"];
     */
    setupJson: string;
    /**
     * @generated from protobuf field: string MetadataJSONParameters = 9 [json_name = "MetadataJSONParameters"];
     */
    metadataJSONParameters: string;
    /**
     * @generated from protobuf field: int32 NbSlots = 10 [json_name = "NbSlots"];
     */
    nbSlots: number;
    /**
     * @generated from protobuf field: repeated api.Permission Permissions = 11 [json_name = "Permissions"];
     */
    permissions: Permission[];
    /**
     * @generated from protobuf field: string DistributionName = 12 [json_name = "DistributionName"];
     */
    distributionName: string;
    /**
     * @generated from protobuf field: string ActionsJSONParameters = 13 [json_name = "ActionsJSONParameters"];
     */
    actionsJSONParameters: string;
}
/**
 * @generated from protobuf message api.CreateConnectorResult
 */
export interface CreateConnectorResult {
    /**
     * @generated from protobuf field: api.Connector Result = 1 [json_name = "Result"];
     */
    result?: Connector;
}
/**
 * @generated from protobuf message api.UpdateConnectorRequest
 */
export interface UpdateConnectorRequest {
    /**
     * @generated from protobuf field: string ConnectorID = 1 [json_name = "ConnectorID"];
     */
    connectorID: string;
    /**
     * @generated from protobuf field: string Description = 2 [json_name = "Description"];
     */
    description: string;
    /**
     * @generated from protobuf field: string Version = 3 [json_name = "Version"];
     */
    version: string;
    /**
     * @generated from protobuf field: string RepoUrl = 4 [json_name = "RepoUrl"];
     */
    repoUrl: string;
    /**
     * @generated from protobuf field: string MainClassName = 5 [json_name = "MainClassName"];
     */
    mainClassName: string;
    /**
     * @generated from protobuf field: string JarName = 6 [json_name = "JarName"];
     */
    jarName: string;
    /**
     * @generated from protobuf field: string SetupJson = 7 [json_name = "SetupJson"];
     */
    setupJson: string;
    /**
     * @generated from protobuf field: string MetadataJSONParameters = 8 [json_name = "MetadataJSONParameters"];
     */
    metadataJSONParameters: string;
    /**
     * @generated from protobuf field: int32 NbSlots = 9 [json_name = "NbSlots"];
     */
    nbSlots: number;
    /**
     * @generated from protobuf field: repeated api.Permission Permissions = 10 [json_name = "Permissions"];
     */
    permissions: Permission[];
    /**
     * @generated from protobuf field: string ActionsJSONParameters = 11 [json_name = "ActionsJSONParameters"];
     */
    actionsJSONParameters: string;
}
/**
 * @generated from protobuf message api.UpdateConnectorResult
 */
export interface UpdateConnectorResult {
    /**
     * @generated from protobuf field: api.Connector Result = 1 [json_name = "Result"];
     */
    result?: Connector;
}
/**
 * @generated from protobuf message api.GetConnectorRequest
 */
export interface GetConnectorRequest {
    /**
     * @generated from protobuf field: string ConnectorID = 1 [json_name = "ConnectorID"];
     */
    connectorID: string;
}
/**
 * @generated from protobuf message api.GetConnectorResult
 */
export interface GetConnectorResult {
    /**
     * @generated from protobuf field: api.Connector Result = 1 [json_name = "Result"];
     */
    result?: Connector;
}
/**
 * @generated from protobuf message api.ListConnectorsRequest
 */
export interface ListConnectorsRequest {
    /**
     * @generated from protobuf field: api.Paging Paging = 1 [json_name = "Paging"];
     */
    paging?: Paging;
}
/**
 * @generated from protobuf message api.ListConnectorsResult
 */
export interface ListConnectorsResult {
    /**
     * @generated from protobuf field: repeated api.Connector Results = 1 [json_name = "Results"];
     */
    results: Connector[];
}
/**
 * @generated from protobuf message api.ListAvailableConnectorsRequest
 */
export interface ListAvailableConnectorsRequest {
    /**
     * @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
     */
    header?: RequestProjectHeader;
}
/**
 * @generated from protobuf message api.ListAvailableConnectorsResult
 */
export interface ListAvailableConnectorsResult {
    /**
     * @generated from protobuf field: repeated api.Connector Results = 1 [json_name = "Results"];
     */
    results: Connector[];
}
/**
 * @generated from protobuf message api.DeleteConnectorRequest
 */
export interface DeleteConnectorRequest {
    /**
     * @generated from protobuf field: string ConnectorID = 1 [json_name = "ConnectorID"];
     */
    connectorID: string;
}
/**
 * @generated from protobuf message api.DeleteConnectorResult
 */
export interface DeleteConnectorResult {
}
/**
 * @generated from protobuf enum api.ConnectorType
 */
export enum ConnectorType {
    /**
     * @generated from protobuf enum value: CUSTOM = 0;
     */
    CUSTOM = 0,
    /**
     * @generated from protobuf enum value: RFX = 10;
     */
    RFX = 10,
    /**
     * @generated from protobuf enum value: TDI = 20;
     */
    TDI = 20
}
/**
 * @generated from protobuf enum api.ParameterMetadataType
 */
export enum ParameterMetadataType {
    /**
     * @generated from protobuf enum value: STRING = 0;
     */
    STRING = 0,
    /**
     * @generated from protobuf enum value: INTEGER = 10;
     */
    INTEGER = 10,
    /**
     * @generated from protobuf enum value: BOOLEAN = 20;
     */
    BOOLEAN = 20,
    /**
     * @generated from protobuf enum value: FILE = 30;
     */
    FILE = 30,
    /**
     * @generated from protobuf enum value: URL = 40;
     */
    URL = 40,
    /**
     * @generated from protobuf enum value: SET = 50;
     */
    SET = 50
}
/**
 * @generated from protobuf enum api.Keyword
 */
export enum Keyword {
    /**
     * @generated from protobuf enum value: UNKNOWN = 0;
     */
    UNKNOWN = 0,
    /**
     * @generated from protobuf enum value: ORGANISATION_ID = 10;
     */
    ORGANISATION_ID = 10,
    /**
     * @generated from protobuf enum value: PROJECT_ID = 20;
     */
    PROJECT_ID = 20,
    /**
     * @generated from protobuf enum value: PARTNER_APP_ID = 30;
     */
    PARTNER_APP_ID = 30,
    /**
     * @generated from protobuf enum value: AUTHZ_ENDPOINT = 40;
     */
    AUTHZ_ENDPOINT = 40,
    /**
     * @generated from protobuf enum value: BUCKET_ROOT = 50;
     */
    BUCKET_ROOT = 50,
    /**
     * @generated from protobuf enum value: GRPC_API_CORE_ENDPOINT = 60;
     */
    GRPC_API_CORE_ENDPOINT = 60,
    /**
     * @generated from protobuf enum value: GRPC_API_GCS_ENDPOINT = 70;
     */
    GRPC_API_GCS_ENDPOINT = 70,
    /**
     * @generated from protobuf enum value: NATS_ENDPOINT = 80;
     */
    NATS_ENDPOINT = 80,
    /**
     * @generated from protobuf enum value: NATS_ROOT_SUBJECT = 90;
     */
    NATS_ROOT_SUBJECT = 90
}
// @generated message type with reflection information, may provide speed optimized methods
class Connector$Type extends MessageType<Connector> {
    constructor() {
        super("api.Connector", [
            { no: 1, name: "ID", kind: "scalar", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^([a-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([a-z0-9-])+$" } } },
            { no: 2, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
            { no: 3, name: "Type", kind: "enum", jsonName: "Type", T: () => ["api.ConnectorType", ConnectorType], options: { "validate.rules": { enum: { definedOnly: true } } } },
            { no: 4, name: "Description", kind: "scalar", jsonName: "Description", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
            { no: 5, name: "Version", kind: "scalar", jsonName: "Version", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
            { no: 6, name: "RepoUrl", kind: "scalar", jsonName: "RepoUrl", T: 9 /*ScalarType.STRING*/ },
            { no: 7, name: "MainClassName", kind: "scalar", jsonName: "MainClassName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
            { no: 8, name: "JarName", kind: "scalar", jsonName: "JarName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
            { no: 9, name: "SetupJson", kind: "scalar", jsonName: "SetupJson", T: 9 /*ScalarType.STRING*/ },
            { no: 10, name: "MetadataJSONParameters", kind: "scalar", jsonName: "MetadataJSONParameters", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
            { no: 11, name: "NbSlots", kind: "scalar", jsonName: "NbSlots", T: 5 /*ScalarType.INT32*/ },
            { no: 12, name: "DistributionName", kind: "scalar", jsonName: "DistributionName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
            { no: 13, name: "Release", kind: "scalar", jsonName: "Release", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
            { no: 14, name: "ActionsJSONParameters", kind: "scalar", jsonName: "ActionsJSONParameters", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
        ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ID", "Name", "Description", "Version", "MainClassName", "JarName", "MetadataJSONParameters", "DistributionName", "Release", "ActionsJSONParameters"] } } });
    }
    create(value?: PartialMessage<Connector>): Connector {
        const message = globalThis.Object.create((this.messagePrototype!));
        message.iD = "";
        message.name = "";
        message.type = 0;
        message.description = "";
        message.version = "";
        message.repoUrl = "";
        message.mainClassName = "";
        message.jarName = "";
        message.setupJson = "";
        message.metadataJSONParameters = "";
        message.nbSlots = 0;
        message.distributionName = "";
        message.release = "";
        message.actionsJSONParameters = "";
        if (value !== undefined)
            reflectionMergePartial<Connector>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Connector): Connector {
        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 /* api.ConnectorType Type = 3 [json_name = "Type"];*/ 3:
                    message.type = reader.int32();
                    break;
                case /* string Description = 4 [json_name = "Description"];*/ 4:
                    message.description = reader.string();
                    break;
                case /* string Version = 5 [json_name = "Version"];*/ 5:
                    message.version = reader.string();
                    break;
                case /* string RepoUrl = 6 [json_name = "RepoUrl"];*/ 6:
                    message.repoUrl = reader.string();
                    break;
                case /* string MainClassName = 7 [json_name = "MainClassName"];*/ 7:
                    message.mainClassName = reader.string();
                    break;
                case /* string JarName = 8 [json_name = "JarName"];*/ 8:
                    message.jarName = reader.string();
                    break;
                case /* string SetupJson = 9 [json_name = "SetupJson"];*/ 9:
                    message.setupJson = reader.string();
                    break;
                case /* string MetadataJSONParameters = 10 [json_name = "MetadataJSONParameters"];*/ 10:
                    message.metadataJSONParameters = reader.string();
                    break;
                case /* int32 NbSlots = 11 [json_name = "NbSlots"];*/ 11:
                    message.nbSlots = reader.int32();
                    break;
                case /* string DistributionName = 12 [json_name = "DistributionName"];*/ 12:
                    message.distributionName = reader.string();
                    break;
                case /* string Release = 13 [json_name = "Release"];*/ 13:
                    message.release = reader.string();
                    break;
                case /* string ActionsJSONParameters = 14 [json_name = "ActionsJSONParameters"];*/ 14:
                    message.actionsJSONParameters = 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: Connector, 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);
        /* api.ConnectorType Type = 3 [json_name = "Type"]; */
        if (message.type !== 0)
            writer.tag(3, WireType.Varint).int32(message.type);
        /* string Description = 4 [json_name = "Description"]; */
        if (message.description !== "")
            writer.tag(4, WireType.LengthDelimited).string(message.description);
        /* string Version = 5 [json_name = "Version"]; */
        if (message.version !== "")
            writer.tag(5, WireType.LengthDelimited).string(message.version);
        /* string RepoUrl = 6 [json_name = "RepoUrl"]; */
        if (message.repoUrl !== "")
            writer.tag(6, WireType.LengthDelimited).string(message.repoUrl);
        /* string MainClassName = 7 [json_name = "MainClassName"]; */
        if (message.mainClassName !== "")
            writer.tag(7, WireType.LengthDelimited).string(message.mainClassName);
        /* string JarName = 8 [json_name = "JarName"]; */
        if (message.jarName !== "")
            writer.tag(8, WireType.LengthDelimited).string(message.jarName);
        /* string SetupJson = 9 [json_name = "SetupJson"]; */
        if (message.setupJson !== "")
            writer.tag(9, WireType.LengthDelimited).string(message.setupJson);
        /* string MetadataJSONParameters = 10 [json_name = "MetadataJSONParameters"]; */
        if (message.metadataJSONParameters !== "")
            writer.tag(10, WireType.LengthDelimited).string(message.metadataJSONParameters);
        /* int32 NbSlots = 11 [json_name = "NbSlots"]; */
        if (message.nbSlots !== 0)
            writer.tag(11, WireType.Varint).int32(message.nbSlots);
        /* string DistributionName = 12 [json_name = "DistributionName"]; */
        if (message.distributionName !== "")
            writer.tag(12, WireType.LengthDelimited).string(message.distributionName);
        /* string Release = 13 [json_name = "Release"]; */
        if (message.release !== "")
            writer.tag(13, WireType.LengthDelimited).string(message.release);
        /* string ActionsJSONParameters = 14 [json_name = "ActionsJSONParameters"]; */
        if (message.actionsJSONParameters !== "")
            writer.tag(14, WireType.LengthDelimited).string(message.actionsJSONParameters);
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message api.Connector
 */
export const Connector = new Connector$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ParameterMetadata$Type extends MessageType<ParameterMetadata> {
    constructor() {
        super("api.ParameterMetadata", [
            { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
            { no: 2, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
            { no: 3, name: "help_text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
            { no: 4, name: "mandatory", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
            { no: 5, name: "group_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
            { no: 6, name: "order_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
            { no: 7, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
            { no: 8, name: "custom_info", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
        ]);
    }
    create(value?: PartialMessage<ParameterMetadata>): ParameterMetadata {
        const message = globalThis.Object.create((this.messagePrototype!));
        message.name = "";
        message.label = "";
        message.helpText = "";
        message.mandatory = false;
        message.groupId = "";
        message.orderId = 0;
        message.type = "";
        message.customInfo = {};
        if (value !== undefined)
            reflectionMergePartial<ParameterMetadata>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ParameterMetadata): ParameterMetadata {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* string name */ 1:
                    message.name = reader.string();
                    break;
                case /* string label */ 2:
                    message.label = reader.string();
                    break;
                case /* string help_text */ 3:
                    message.helpText = reader.string();
                    break;
                case /* bool mandatory */ 4:
                    message.mandatory = reader.bool();
                    break;
                case /* string group_id */ 5:
                    message.groupId = reader.string();
                    break;
                case /* int32 order_id */ 6:
                    message.orderId = reader.int32();
                    break;
                case /* string type */ 7:
                    message.type = reader.string();
                    break;
                case /* map<string, string> custom_info */ 8:
                    this.binaryReadMap8(message.customInfo, reader, 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;
    }
    private binaryReadMap8(map: ParameterMetadata["customInfo"], reader: IBinaryReader, options: BinaryReadOptions): void {
        let len = reader.uint32(), end = reader.pos + len, key: keyof ParameterMetadata["customInfo"] | undefined, val: ParameterMetadata["customInfo"][any] | undefined;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case 1:
                    key = reader.string();
                    break;
                case 2:
                    val = reader.string();
                    break;
                default: throw new globalThis.Error("unknown map entry field for field api.ParameterMetadata.custom_info");
            }
        }
        map[key ?? ""] = val ?? "";
    }
    internalBinaryWrite(message: ParameterMetadata, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* string name = 1; */
        if (message.name !== "")
            writer.tag(1, WireType.LengthDelimited).string(message.name);
        /* string label = 2; */
        if (message.label !== "")
            writer.tag(2, WireType.LengthDelimited).string(message.label);
        /* string help_text = 3; */
        if (message.helpText !== "")
            writer.tag(3, WireType.LengthDelimited).string(message.helpText);
        /* bool mandatory = 4; */
        if (message.mandatory !== false)
            writer.tag(4, WireType.Varint).bool(message.mandatory);
        /* string group_id = 5; */
        if (message.groupId !== "")
            writer.tag(5, WireType.LengthDelimited).string(message.groupId);
        /* int32 order_id = 6; */
        if (message.orderId !== 0)
            writer.tag(6, WireType.Varint).int32(message.orderId);
        /* string type = 7; */
        if (message.type !== "")
            writer.tag(7, WireType.LengthDelimited).string(message.type);
        /* map<string, string> custom_info = 8; */
        for (let k of globalThis.Object.keys(message.customInfo))
            writer.tag(8, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.customInfo[k]).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.ParameterMetadata
 */
export const ParameterMetadata = new ParameterMetadata$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CreateConnectorRequest$Type extends MessageType<CreateConnectorRequest> {
    constructor() {
        super("api.CreateConnectorRequest", [
            { no: 1, 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-])+$" } } },
            { no: 2, name: "Type", kind: "enum", jsonName: "Type", T: () => ["api.ConnectorType", ConnectorType], options: { "validate.rules": { enum: { definedOnly: true } } } },
            { no: 3, name: "Description", kind: "scalar", jsonName: "Description", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
            { no: 4, name: "Version", kind: "scalar", jsonName: "Version", 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-.])+$" } } },
            { no: 5, name: "RepoUrl", kind: "scalar", jsonName: "RepoUrl", T: 9 /*ScalarType.STRING*/ },
            { no: 6, name: "MainClassName", kind: "scalar", jsonName: "MainClassName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
            { no: 7, name: "JarName", kind: "scalar", jsonName: "JarName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
            { no: 8, name: "SetupJson", kind: "scalar", jsonName: "SetupJson", T: 9 /*ScalarType.STRING*/ },
            { no: 9, name: "MetadataJSONParameters", kind: "scalar", jsonName: "MetadataJSONParameters", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
            { no: 10, name: "NbSlots", kind: "scalar", jsonName: "NbSlots", T: 5 /*ScalarType.INT32*/ },
            { no: 11, name: "Permissions", kind: "message", jsonName: "Permissions", repeat: 1 /*RepeatType.PACKED*/, T: () => Permission },
            { no: 12, name: "DistributionName", kind: "scalar", jsonName: "DistributionName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
            { no: 13, name: "ActionsJSONParameters", kind: "scalar", jsonName: "ActionsJSONParameters", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
        ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Name", "Description", "Version", "MainClassName", "JarName", "MetadataJSONParameters", "DistributionName", "ActionsJSONParameters"] } } });
    }
    create(value?: PartialMessage<CreateConnectorRequest>): CreateConnectorRequest {
        const message = globalThis.Object.create((this.messagePrototype!));
        message.name = "";
        message.type = 0;
        message.description = "";
        message.version = "";
        message.repoUrl = "";
        message.mainClassName = "";
        message.jarName = "";
        message.setupJson = "";
        message.metadataJSONParameters = "";
        message.nbSlots = 0;
        message.permissions = [];
        message.distributionName = "";
        message.actionsJSONParameters = "";
        if (value !== undefined)
            reflectionMergePartial<CreateConnectorRequest>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateConnectorRequest): CreateConnectorRequest {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* string Name = 1 [json_name = "Name"];*/ 1:
                    message.name = reader.string();
                    break;
                case /* api.ConnectorType Type = 2 [json_name = "Type"];*/ 2:
                    message.type = reader.int32();
                    break;
                case /* string Description = 3 [json_name = "Description"];*/ 3:
                    message.description = reader.string();
                    break;
                case /* string Version = 4 [json_name = "Version"];*/ 4:
                    message.version = reader.string();
                    break;
                case /* string RepoUrl = 5 [json_name = "RepoUrl"];*/ 5:
                    message.repoUrl = reader.string();
                    break;
                case /* string MainClassName = 6 [json_name = "MainClassName"];*/ 6:
                    message.mainClassName = reader.string();
                    break;
                case /* string JarName = 7 [json_name = "JarName"];*/ 7:
                    message.jarName = reader.string();
                    break;
                case /* string SetupJson = 8 [json_name = "SetupJson"];*/ 8:
                    message.setupJson = reader.string();
                    break;
                case /* string MetadataJSONParameters = 9 [json_name = "MetadataJSONParameters"];*/ 9:
                    message.metadataJSONParameters = reader.string();
                    break;
                case /* int32 NbSlots = 10 [json_name = "NbSlots"];*/ 10:
                    message.nbSlots = reader.int32();
                    break;
                case /* repeated api.Permission Permissions = 11 [json_name = "Permissions"];*/ 11:
                    message.permissions.push(Permission.internalBinaryRead(reader, reader.uint32(), options));
                    break;
                case /* string DistributionName = 12 [json_name = "DistributionName"];*/ 12:
                    message.distributionName = reader.string();
                    break;
                case /* string ActionsJSONParameters = 13 [json_name = "ActionsJSONParameters"];*/ 13:
                    message.actionsJSONParameters = 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: CreateConnectorRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* string Name = 1 [json_name = "Name"]; */
        if (message.name !== "")
            writer.tag(1, WireType.LengthDelimited).string(message.name);
        /* api.ConnectorType Type = 2 [json_name = "Type"]; */
        if (message.type !== 0)
            writer.tag(2, WireType.Varint).int32(message.type);
        /* string Description = 3 [json_name = "Description"]; */
        if (message.description !== "")
            writer.tag(3, WireType.LengthDelimited).string(message.description);
        /* string Version = 4 [json_name = "Version"]; */
        if (message.version !== "")
            writer.tag(4, WireType.LengthDelimited).string(message.version);
        /* string RepoUrl = 5 [json_name = "RepoUrl"]; */
        if (message.repoUrl !== "")
            writer.tag(5, WireType.LengthDelimited).string(message.repoUrl);
        /* string MainClassName = 6 [json_name = "MainClassName"]; */
        if (message.mainClassName !== "")
            writer.tag(6, WireType.LengthDelimited).string(message.mainClassName);
        /* string JarName = 7 [json_name = "JarName"]; */
        if (message.jarName !== "")
            writer.tag(7, WireType.LengthDelimited).string(message.jarName);
        /* string SetupJson = 8 [json_name = "SetupJson"]; */
        if (message.setupJson !== "")
            writer.tag(8, WireType.LengthDelimited).string(message.setupJson);
        /* string MetadataJSONParameters = 9 [json_name = "MetadataJSONParameters"]; */
        if (message.metadataJSONParameters !== "")
            writer.tag(9, WireType.LengthDelimited).string(message.metadataJSONParameters);
        /* int32 NbSlots = 10 [json_name = "NbSlots"]; */
        if (message.nbSlots !== 0)
            writer.tag(10, WireType.Varint).int32(message.nbSlots);
        /* repeated api.Permission Permissions = 11 [json_name = "Permissions"]; */
        for (let i = 0; i < message.permissions.length; i++)
            Permission.internalBinaryWrite(message.permissions[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
        /* string DistributionName = 12 [json_name = "DistributionName"]; */
        if (message.distributionName !== "")
            writer.tag(12, WireType.LengthDelimited).string(message.distributionName);
        /* string ActionsJSONParameters = 13 [json_name = "ActionsJSONParameters"]; */
        if (message.actionsJSONParameters !== "")
            writer.tag(13, WireType.LengthDelimited).string(message.actionsJSONParameters);
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message api.CreateConnectorRequest
 */
export const CreateConnectorRequest = new CreateConnectorRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CreateConnectorResult$Type extends MessageType<CreateConnectorResult> {
    constructor() {
        super("api.CreateConnectorResult", [
            { no: 1, name: "Result", kind: "message", jsonName: "Result", T: () => Connector }
        ]);
    }
    create(value?: PartialMessage<CreateConnectorResult>): CreateConnectorResult {
        const message = globalThis.Object.create((this.messagePrototype!));
        if (value !== undefined)
            reflectionMergePartial<CreateConnectorResult>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateConnectorResult): CreateConnectorResult {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* api.Connector Result = 1 [json_name = "Result"];*/ 1:
                    message.result = Connector.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: CreateConnectorResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* api.Connector Result = 1 [json_name = "Result"]; */
        if (message.result)
            Connector.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.CreateConnectorResult
 */
export const CreateConnectorResult = new CreateConnectorResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UpdateConnectorRequest$Type extends MessageType<UpdateConnectorRequest> {
    constructor() {
        super("api.UpdateConnectorRequest", [
            { no: 1, name: "ConnectorID", kind: "scalar", jsonName: "ConnectorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
            { no: 2, name: "Description", kind: "scalar", jsonName: "Description", T: 9 /*ScalarType.STRING*/ },
            { no: 3, name: "Version", kind: "scalar", jsonName: "Version", 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-.])+$" } } },
            { no: 4, name: "RepoUrl", kind: "scalar", jsonName: "RepoUrl", T: 9 /*ScalarType.STRING*/ },
            { no: 5, name: "MainClassName", kind: "scalar", jsonName: "MainClassName", T: 9 /*ScalarType.STRING*/ },
            { no: 6, name: "JarName", kind: "scalar", jsonName: "JarName", T: 9 /*ScalarType.STRING*/ },
            { no: 7, name: "SetupJson", kind: "scalar", jsonName: "SetupJson", T: 9 /*ScalarType.STRING*/ },
            { no: 8, name: "MetadataJSONParameters", kind: "scalar", jsonName: "MetadataJSONParameters", T: 9 /*ScalarType.STRING*/ },
            { no: 9, name: "NbSlots", kind: "scalar", jsonName: "NbSlots", T: 5 /*ScalarType.INT32*/ },
            { no: 10, name: "Permissions", kind: "message", jsonName: "Permissions", repeat: 1 /*RepeatType.PACKED*/, T: () => Permission },
            { no: 11, name: "ActionsJSONParameters", kind: "scalar", jsonName: "ActionsJSONParameters", T: 9 /*ScalarType.STRING*/ }
        ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ConnectorID", "Version"] } } });
    }
    create(value?: PartialMessage<UpdateConnectorRequest>): UpdateConnectorRequest {
        const message = globalThis.Object.create((this.messagePrototype!));
        message.connectorID = "";
        message.description = "";
        message.version = "";
        message.repoUrl = "";
        message.mainClassName = "";
        message.jarName = "";
        message.setupJson = "";
        message.metadataJSONParameters = "";
        message.nbSlots = 0;
        message.permissions = [];
        message.actionsJSONParameters = "";
        if (value !== undefined)
            reflectionMergePartial<UpdateConnectorRequest>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateConnectorRequest): UpdateConnectorRequest {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* string ConnectorID = 1 [json_name = "ConnectorID"];*/ 1:
                    message.connectorID = reader.string();
                    break;
                case /* string Description = 2 [json_name = "Description"];*/ 2:
                    message.description = reader.string();
                    break;
                case /* string Version = 3 [json_name = "Version"];*/ 3:
                    message.version = reader.string();
                    break;
                case /* string RepoUrl = 4 [json_name = "RepoUrl"];*/ 4:
                    message.repoUrl = reader.string();
                    break;
                case /* string MainClassName = 5 [json_name = "MainClassName"];*/ 5:
                    message.mainClassName = reader.string();
                    break;
                case /* string JarName = 6 [json_name = "JarName"];*/ 6:
                    message.jarName = reader.string();
                    break;
                case /* string SetupJson = 7 [json_name = "SetupJson"];*/ 7:
                    message.setupJson = reader.string();
                    break;
                case /* string MetadataJSONParameters = 8 [json_name = "MetadataJSONParameters"];*/ 8:
                    message.metadataJSONParameters = reader.string();
                    break;
                case /* int32 NbSlots = 9 [json_name = "NbSlots"];*/ 9:
                    message.nbSlots = reader.int32();
                    break;
                case /* repeated api.Permission Permissions = 10 [json_name = "Permissions"];*/ 10:
                    message.permissions.push(Permission.internalBinaryRead(reader, reader.uint32(), options));
                    break;
                case /* string ActionsJSONParameters = 11 [json_name = "ActionsJSONParameters"];*/ 11:
                    message.actionsJSONParameters = 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: UpdateConnectorRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* string ConnectorID = 1 [json_name = "ConnectorID"]; */
        if (message.connectorID !== "")
            writer.tag(1, WireType.LengthDelimited).string(message.connectorID);
        /* string Description = 2 [json_name = "Description"]; */
        if (message.description !== "")
            writer.tag(2, WireType.LengthDelimited).string(message.description);
        /* string Version = 3 [json_name = "Version"]; */
        if (message.version !== "")
            writer.tag(3, WireType.LengthDelimited).string(message.version);
        /* string RepoUrl = 4 [json_name = "RepoUrl"]; */
        if (message.repoUrl !== "")
            writer.tag(4, WireType.LengthDelimited).string(message.repoUrl);
        /* string MainClassName = 5 [json_name = "MainClassName"]; */
        if (message.mainClassName !== "")
            writer.tag(5, WireType.LengthDelimited).string(message.mainClassName);
        /* string JarName = 6 [json_name = "JarName"]; */
        if (message.jarName !== "")
            writer.tag(6, WireType.LengthDelimited).string(message.jarName);
        /* string SetupJson = 7 [json_name = "SetupJson"]; */
        if (message.setupJson !== "")
            writer.tag(7, WireType.LengthDelimited).string(message.setupJson);
        /* string MetadataJSONParameters = 8 [json_name = "MetadataJSONParameters"]; */
        if (message.metadataJSONParameters !== "")
            writer.tag(8, WireType.LengthDelimited).string(message.metadataJSONParameters);
        /* int32 NbSlots = 9 [json_name = "NbSlots"]; */
        if (message.nbSlots !== 0)
            writer.tag(9, WireType.Varint).int32(message.nbSlots);
        /* repeated api.Permission Permissions = 10 [json_name = "Permissions"]; */
        for (let i = 0; i < message.permissions.length; i++)
            Permission.internalBinaryWrite(message.permissions[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join();
        /* string ActionsJSONParameters = 11 [json_name = "ActionsJSONParameters"]; */
        if (message.actionsJSONParameters !== "")
            writer.tag(11, WireType.LengthDelimited).string(message.actionsJSONParameters);
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message api.UpdateConnectorRequest
 */
export const UpdateConnectorRequest = new UpdateConnectorRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UpdateConnectorResult$Type extends MessageType<UpdateConnectorResult> {
    constructor() {
        super("api.UpdateConnectorResult", [
            { no: 1, name: "Result", kind: "message", jsonName: "Result", T: () => Connector }
        ]);
    }
    create(value?: PartialMessage<UpdateConnectorResult>): UpdateConnectorResult {
        const message = globalThis.Object.create((this.messagePrototype!));
        if (value !== undefined)
            reflectionMergePartial<UpdateConnectorResult>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateConnectorResult): UpdateConnectorResult {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* api.Connector Result = 1 [json_name = "Result"];*/ 1:
                    message.result = Connector.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: UpdateConnectorResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* api.Connector Result = 1 [json_name = "Result"]; */
        if (message.result)
            Connector.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.UpdateConnectorResult
 */
export const UpdateConnectorResult = new UpdateConnectorResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetConnectorRequest$Type extends MessageType<GetConnectorRequest> {
    constructor() {
        super("api.GetConnectorRequest", [
            { no: 1, name: "ConnectorID", kind: "scalar", jsonName: "ConnectorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
        ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ConnectorID"] } } });
    }
    create(value?: PartialMessage<GetConnectorRequest>): GetConnectorRequest {
        const message = globalThis.Object.create((this.messagePrototype!));
        message.connectorID = "";
        if (value !== undefined)
            reflectionMergePartial<GetConnectorRequest>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetConnectorRequest): GetConnectorRequest {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* string ConnectorID = 1 [json_name = "ConnectorID"];*/ 1:
                    message.connectorID = 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: GetConnectorRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* string ConnectorID = 1 [json_name = "ConnectorID"]; */
        if (message.connectorID !== "")
            writer.tag(1, WireType.LengthDelimited).string(message.connectorID);
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message api.GetConnectorRequest
 */
export const GetConnectorRequest = new GetConnectorRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetConnectorResult$Type extends MessageType<GetConnectorResult> {
    constructor() {
        super("api.GetConnectorResult", [
            { no: 1, name: "Result", kind: "message", jsonName: "Result", T: () => Connector }
        ]);
    }
    create(value?: PartialMessage<GetConnectorResult>): GetConnectorResult {
        const message = globalThis.Object.create((this.messagePrototype!));
        if (value !== undefined)
            reflectionMergePartial<GetConnectorResult>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetConnectorResult): GetConnectorResult {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* api.Connector Result = 1 [json_name = "Result"];*/ 1:
                    message.result = Connector.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: GetConnectorResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* api.Connector Result = 1 [json_name = "Result"]; */
        if (message.result)
            Connector.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.GetConnectorResult
 */
export const GetConnectorResult = new GetConnectorResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListConnectorsRequest$Type extends MessageType<ListConnectorsRequest> {
    constructor() {
        super("api.ListConnectorsRequest", [
            { no: 1, name: "Paging", kind: "message", jsonName: "Paging", T: () => Paging }
        ]);
    }
    create(value?: PartialMessage<ListConnectorsRequest>): ListConnectorsRequest {
        const message = globalThis.Object.create((this.messagePrototype!));
        if (value !== undefined)
            reflectionMergePartial<ListConnectorsRequest>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListConnectorsRequest): ListConnectorsRequest {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* api.Paging Paging = 1 [json_name = "Paging"];*/ 1:
                    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: ListConnectorsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* api.Paging Paging = 1 [json_name = "Paging"]; */
        if (message.paging)
            Paging.internalBinaryWrite(message.paging, 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.ListConnectorsRequest
 */
export const ListConnectorsRequest = new ListConnectorsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListConnectorsResult$Type extends MessageType<ListConnectorsResult> {
    constructor() {
        super("api.ListConnectorsResult", [
            { no: 1, name: "Results", kind: "message", jsonName: "Results", repeat: 1 /*RepeatType.PACKED*/, T: () => Connector }
        ]);
    }
    create(value?: PartialMessage<ListConnectorsResult>): ListConnectorsResult {
        const message = globalThis.Object.create((this.messagePrototype!));
        message.results = [];
        if (value !== undefined)
            reflectionMergePartial<ListConnectorsResult>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListConnectorsResult): ListConnectorsResult {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* repeated api.Connector Results = 1 [json_name = "Results"];*/ 1:
                    message.results.push(Connector.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: ListConnectorsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* repeated api.Connector Results = 1 [json_name = "Results"]; */
        for (let i = 0; i < message.results.length; i++)
            Connector.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.ListConnectorsResult
 */
export const ListConnectorsResult = new ListConnectorsResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListAvailableConnectorsRequest$Type extends MessageType<ListAvailableConnectorsRequest> {
    constructor() {
        super("api.ListAvailableConnectorsRequest", [
            { no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }
        ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
    }
    create(value?: PartialMessage<ListAvailableConnectorsRequest>): ListAvailableConnectorsRequest {
        const message = globalThis.Object.create((this.messagePrototype!));
        if (value !== undefined)
            reflectionMergePartial<ListAvailableConnectorsRequest>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListAvailableConnectorsRequest): ListAvailableConnectorsRequest {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* api.RequestProjectHeader Header = 1 [json_name = "Header"];*/ 1:
                    message.header = RequestProjectHeader.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: ListAvailableConnectorsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */
        if (message.header)
            RequestProjectHeader.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.ListAvailableConnectorsRequest
 */
export const ListAvailableConnectorsRequest = new ListAvailableConnectorsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListAvailableConnectorsResult$Type extends MessageType<ListAvailableConnectorsResult> {
    constructor() {
        super("api.ListAvailableConnectorsResult", [
            { no: 1, name: "Results", kind: "message", jsonName: "Results", repeat: 1 /*RepeatType.PACKED*/, T: () => Connector }
        ]);
    }
    create(value?: PartialMessage<ListAvailableConnectorsResult>): ListAvailableConnectorsResult {
        const message = globalThis.Object.create((this.messagePrototype!));
        message.results = [];
        if (value !== undefined)
            reflectionMergePartial<ListAvailableConnectorsResult>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListAvailableConnectorsResult): ListAvailableConnectorsResult {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* repeated api.Connector Results = 1 [json_name = "Results"];*/ 1:
                    message.results.push(Connector.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: ListAvailableConnectorsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* repeated api.Connector Results = 1 [json_name = "Results"]; */
        for (let i = 0; i < message.results.length; i++)
            Connector.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.ListAvailableConnectorsResult
 */
export const ListAvailableConnectorsResult = new ListAvailableConnectorsResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteConnectorRequest$Type extends MessageType<DeleteConnectorRequest> {
    constructor() {
        super("api.DeleteConnectorRequest", [
            { no: 1, name: "ConnectorID", kind: "scalar", jsonName: "ConnectorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
        ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ConnectorID"] } } });
    }
    create(value?: PartialMessage<DeleteConnectorRequest>): DeleteConnectorRequest {
        const message = globalThis.Object.create((this.messagePrototype!));
        message.connectorID = "";
        if (value !== undefined)
            reflectionMergePartial<DeleteConnectorRequest>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteConnectorRequest): DeleteConnectorRequest {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* string ConnectorID = 1 [json_name = "ConnectorID"];*/ 1:
                    message.connectorID = 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: DeleteConnectorRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* string ConnectorID = 1 [json_name = "ConnectorID"]; */
        if (message.connectorID !== "")
            writer.tag(1, WireType.LengthDelimited).string(message.connectorID);
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message api.DeleteConnectorRequest
 */
export const DeleteConnectorRequest = new DeleteConnectorRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteConnectorResult$Type extends MessageType<DeleteConnectorResult> {
    constructor() {
        super("api.DeleteConnectorResult", []);
    }
    create(value?: PartialMessage<DeleteConnectorResult>): DeleteConnectorResult {
        const message = globalThis.Object.create((this.messagePrototype!));
        if (value !== undefined)
            reflectionMergePartial<DeleteConnectorResult>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteConnectorResult): DeleteConnectorResult {
        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: DeleteConnectorResult, 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.DeleteConnectorResult
 */
export const DeleteConnectorResult = new DeleteConnectorResult$Type();
/**
 * @generated ServiceType for protobuf service api.ConnectorService
 */
export const ConnectorService = new ServiceType("api.ConnectorService", [
    { name: "Create", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Connector"], description: "Create a Platform Connector" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreateConnectorRequest, O: CreateConnectorResult },
    { name: "Update", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Connector"], description: "Update a Platform Connector" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: UpdateConnectorRequest, O: UpdateConnectorResult },
    { name: "Delete", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Connector"], description: "Delete a Platform Connector" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteConnectorRequest, O: DeleteConnectorResult },
    { name: "Get", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Connector"], description: "Get a Platform Connector" }, "api.rscType": "Platform", "api.roles": "Platform.Connector", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetConnectorRequest, O: GetConnectorResult },
    { name: "List", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Connector"], description: "List Platform Connectors" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ListConnectorsRequest, O: ListConnectorsResult },
    { name: "ListAvailable", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Connector"], description: "List Available Platform Connectors on a Project" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ListAvailableConnectorsRequest, O: ListAvailableConnectorsResult }
], { "api.k8sService": "organisation-server", "api.roleManager": true, "api.resourceManager": true });
