chunker ui redo
This commit is contained in:
95
ui/common/api/grpc/worker.client.ts
Normal file
95
ui/common/api/grpc/worker.client.ts
Normal file
@@ -0,0 +1,95 @@
|
||||
// @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<JobRequest, JobResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: StreamProgress
|
||||
*/
|
||||
streamProgress(input: ProgressRequest, options?: RpcOptions): ServerStreamingCall<ProgressRequest, ProgressUpdate>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CancelJob
|
||||
*/
|
||||
cancelJob(input: CancelRequest, options?: RpcOptions): UnaryCall<CancelRequest, CancelResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: GetWorkerStatus
|
||||
*/
|
||||
getWorkerStatus(input: Empty, options?: RpcOptions): UnaryCall<Empty, WorkerStatus>;
|
||||
/**
|
||||
* @generated from protobuf rpc: StreamChunkPipeline
|
||||
*/
|
||||
streamChunkPipeline(input: ChunkStreamRequest, options?: RpcOptions): ServerStreamingCall<ChunkStreamRequest, ChunkPipelineEvent>;
|
||||
}
|
||||
/**
|
||||
* @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<JobRequest, JobResponse> {
|
||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<JobRequest, JobResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: StreamProgress
|
||||
*/
|
||||
streamProgress(input: ProgressRequest, options?: RpcOptions): ServerStreamingCall<ProgressRequest, ProgressUpdate> {
|
||||
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ProgressRequest, ProgressUpdate>("serverStreaming", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CancelJob
|
||||
*/
|
||||
cancelJob(input: CancelRequest, options?: RpcOptions): UnaryCall<CancelRequest, CancelResponse> {
|
||||
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CancelRequest, CancelResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetWorkerStatus
|
||||
*/
|
||||
getWorkerStatus(input: Empty, options?: RpcOptions): UnaryCall<Empty, WorkerStatus> {
|
||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<Empty, WorkerStatus>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: StreamChunkPipeline
|
||||
*/
|
||||
streamChunkPipeline(input: ChunkStreamRequest, options?: RpcOptions): ServerStreamingCall<ChunkStreamRequest, ChunkPipelineEvent> {
|
||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ChunkStreamRequest, ChunkPipelineEvent>("serverStreaming", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user