import { RuntimeWorkflowService } from "./workflow.js";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
/**
 * @generated from protobuf service nimi.runtime.v1.RuntimeWorkflowService
 */
export class RuntimeWorkflowServiceClient {
    _transport;
    typeName = RuntimeWorkflowService.typeName;
    methods = RuntimeWorkflowService.methods;
    options = RuntimeWorkflowService.options;
    constructor(_transport) {
        this._transport = _transport;
    }
    /**
     * @generated from protobuf rpc: SubmitWorkflow
     */
    submitWorkflow(input, options) {
        const method = this.methods[0], opt = this._transport.mergeOptions(options);
        return stackIntercept("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: GetWorkflow
     */
    getWorkflow(input, options) {
        const method = this.methods[1], opt = this._transport.mergeOptions(options);
        return stackIntercept("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: CancelWorkflow
     */
    cancelWorkflow(input, options) {
        const method = this.methods[2], opt = this._transport.mergeOptions(options);
        return stackIntercept("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: SubscribeWorkflowEvents
     */
    subscribeWorkflowEvents(input, options) {
        const method = this.methods[3], opt = this._transport.mergeOptions(options);
        return stackIntercept("serverStreaming", this._transport, method, opt, input);
    }
}
//# sourceMappingURL=workflow.client.js.map