// @generated by protobuf-ts 2.11.1 // @generated from protobuf file "worker.proto" (package "mpr.worker", syntax proto3) // tslint:disable // // Protocol Buffer Definitions - GENERATED FILE // // Do not edit directly. Regenerate using modelgen. // import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { WorkerService } from "./worker"; import type { ChunkPipelineEvent } from "./worker"; import type { ChunkStreamRequest } from "./worker"; import type { WorkerStatus } from "./worker"; import type { Empty } from "./worker"; import type { CancelResponse } from "./worker"; import type { CancelRequest } from "./worker"; import type { ProgressUpdate } from "./worker"; import type { ProgressRequest } from "./worker"; import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { JobResponse } from "./worker"; import type { JobRequest } from "./worker"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * @generated from protobuf service mpr.worker.WorkerService */ export interface IWorkerServiceClient { /** * @generated from protobuf rpc: SubmitJob */ submitJob(input: JobRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: StreamProgress */ streamProgress(input: ProgressRequest, options?: RpcOptions): ServerStreamingCall; /** * @generated from protobuf rpc: CancelJob */ cancelJob(input: CancelRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetWorkerStatus */ getWorkerStatus(input: Empty, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: StreamChunkPipeline */ streamChunkPipeline(input: ChunkStreamRequest, options?: RpcOptions): ServerStreamingCall; } /** * @generated from protobuf service mpr.worker.WorkerService */ export class WorkerServiceClient implements IWorkerServiceClient, ServiceInfo { typeName = WorkerService.typeName; methods = WorkerService.methods; options = WorkerService.options; constructor(private readonly _transport: RpcTransport) { } /** * @generated from protobuf rpc: SubmitJob */ submitJob(input: JobRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: StreamProgress */ streamProgress(input: ProgressRequest, options?: RpcOptions): ServerStreamingCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("serverStreaming", this._transport, method, opt, input); } /** * @generated from protobuf rpc: CancelJob */ cancelJob(input: CancelRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetWorkerStatus */ getWorkerStatus(input: Empty, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: StreamChunkPipeline */ streamChunkPipeline(input: ChunkStreamRequest, options?: RpcOptions): ServerStreamingCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("serverStreaming", this._transport, method, opt, input); } }