// @generated by protobuf-ts 2.9.6
// @generated from protobuf file "connector.proto" (package "api", syntax proto3)
// tslint:disable
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { ConnectorService } from "./connector";
import type { ListAvailableConnectorsResult } from "./connector";
import type { ListAvailableConnectorsRequest } from "./connector";
import type { ListConnectorsResult } from "./connector";
import type { ListConnectorsRequest } from "./connector";
import type { GetConnectorResult } from "./connector";
import type { GetConnectorRequest } from "./connector";
import type { DeleteConnectorResult } from "./connector";
import type { DeleteConnectorRequest } from "./connector";
import type { UpdateConnectorResult } from "./connector";
import type { UpdateConnectorRequest } from "./connector";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { CreateConnectorResult } from "./connector";
import type { CreateConnectorRequest } from "./connector";
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
/**
 * @generated from protobuf service api.ConnectorService
 */
export interface IConnectorServiceClient {
    /**
     * @generated from protobuf rpc: Create(api.CreateConnectorRequest) returns (api.CreateConnectorResult);
     */
    create(input: CreateConnectorRequest, options?: RpcOptions): UnaryCall<CreateConnectorRequest, CreateConnectorResult>;
    /**
     * @generated from protobuf rpc: Update(api.UpdateConnectorRequest) returns (api.UpdateConnectorResult);
     */
    update(input: UpdateConnectorRequest, options?: RpcOptions): UnaryCall<UpdateConnectorRequest, UpdateConnectorResult>;
    /**
     * @generated from protobuf rpc: Delete(api.DeleteConnectorRequest) returns (api.DeleteConnectorResult);
     */
    delete(input: DeleteConnectorRequest, options?: RpcOptions): UnaryCall<DeleteConnectorRequest, DeleteConnectorResult>;
    /**
     * @generated from protobuf rpc: Get(api.GetConnectorRequest) returns (api.GetConnectorResult);
     */
    get(input: GetConnectorRequest, options?: RpcOptions): UnaryCall<GetConnectorRequest, GetConnectorResult>;
    /**
     * @generated from protobuf rpc: List(api.ListConnectorsRequest) returns (api.ListConnectorsResult);
     */
    list(input: ListConnectorsRequest, options?: RpcOptions): UnaryCall<ListConnectorsRequest, ListConnectorsResult>;
    /**
     * @generated from protobuf rpc: ListAvailable(api.ListAvailableConnectorsRequest) returns (api.ListAvailableConnectorsResult);
     */
    listAvailable(input: ListAvailableConnectorsRequest, options?: RpcOptions): UnaryCall<ListAvailableConnectorsRequest, ListAvailableConnectorsResult>;
}
/**
 * @generated from protobuf service api.ConnectorService
 */
export class ConnectorServiceClient implements IConnectorServiceClient, ServiceInfo {
    typeName = ConnectorService.typeName;
    methods = ConnectorService.methods;
    options = ConnectorService.options;
    constructor(private readonly _transport: RpcTransport) {
    }
    /**
     * @generated from protobuf rpc: Create(api.CreateConnectorRequest) returns (api.CreateConnectorResult);
     */
    create(input: CreateConnectorRequest, options?: RpcOptions): UnaryCall<CreateConnectorRequest, CreateConnectorResult> {
        const method = this.methods[0], opt = this._transport.mergeOptions(options);
        return stackIntercept<CreateConnectorRequest, CreateConnectorResult>("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: Update(api.UpdateConnectorRequest) returns (api.UpdateConnectorResult);
     */
    update(input: UpdateConnectorRequest, options?: RpcOptions): UnaryCall<UpdateConnectorRequest, UpdateConnectorResult> {
        const method = this.methods[1], opt = this._transport.mergeOptions(options);
        return stackIntercept<UpdateConnectorRequest, UpdateConnectorResult>("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: Delete(api.DeleteConnectorRequest) returns (api.DeleteConnectorResult);
     */
    delete(input: DeleteConnectorRequest, options?: RpcOptions): UnaryCall<DeleteConnectorRequest, DeleteConnectorResult> {
        const method = this.methods[2], opt = this._transport.mergeOptions(options);
        return stackIntercept<DeleteConnectorRequest, DeleteConnectorResult>("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: Get(api.GetConnectorRequest) returns (api.GetConnectorResult);
     */
    get(input: GetConnectorRequest, options?: RpcOptions): UnaryCall<GetConnectorRequest, GetConnectorResult> {
        const method = this.methods[3], opt = this._transport.mergeOptions(options);
        return stackIntercept<GetConnectorRequest, GetConnectorResult>("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: List(api.ListConnectorsRequest) returns (api.ListConnectorsResult);
     */
    list(input: ListConnectorsRequest, options?: RpcOptions): UnaryCall<ListConnectorsRequest, ListConnectorsResult> {
        const method = this.methods[4], opt = this._transport.mergeOptions(options);
        return stackIntercept<ListConnectorsRequest, ListConnectorsResult>("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: ListAvailable(api.ListAvailableConnectorsRequest) returns (api.ListAvailableConnectorsResult);
     */
    listAvailable(input: ListAvailableConnectorsRequest, options?: RpcOptions): UnaryCall<ListAvailableConnectorsRequest, ListAvailableConnectorsResult> {
        const method = this.methods[5], opt = this._transport.mergeOptions(options);
        return stackIntercept<ListAvailableConnectorsRequest, ListAvailableConnectorsResult>("unary", this._transport, method, opt, input);
    }
}
