// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "parca/debuginfo/v1alpha1/debuginfo.proto" (package "parca.debuginfo.v1alpha1", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { DebuginfoService } from "./debuginfo"; import type { MarkUploadFinishedResponse } from "./debuginfo"; import type { MarkUploadFinishedRequest } from "./debuginfo"; import type { InitiateUploadResponse } from "./debuginfo"; import type { InitiateUploadRequest } from "./debuginfo"; import type { ShouldInitiateUploadResponse } from "./debuginfo"; import type { ShouldInitiateUploadRequest } from "./debuginfo"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { UploadResponse } from "./debuginfo"; import type { UploadRequest } from "./debuginfo"; import type { ClientStreamingCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * DebuginfoService is a service that allows storage of debug info * * @generated from protobuf service parca.debuginfo.v1alpha1.DebuginfoService */ export interface IDebuginfoServiceClient { /** * Upload ingests debug info for a given build_id * * @generated from protobuf rpc: Upload */ upload(options?: RpcOptions): ClientStreamingCall; /** * ShouldInitiateUpload returns whether an upload for a given build_id should be initiated or not. * * @generated from protobuf rpc: ShouldInitiateUpload */ shouldInitiateUpload(input: ShouldInitiateUploadRequest, options?: RpcOptions): UnaryCall; /** * InitiateUpload returns a strategy and information to upload debug info for a given build_id. * * @generated from protobuf rpc: InitiateUpload */ initiateUpload(input: InitiateUploadRequest, options?: RpcOptions): UnaryCall; /** * MarkUploadFinished marks the upload as finished for a given build_id. * * @generated from protobuf rpc: MarkUploadFinished */ markUploadFinished(input: MarkUploadFinishedRequest, options?: RpcOptions): UnaryCall; } /** * DebuginfoService is a service that allows storage of debug info * * @generated from protobuf service parca.debuginfo.v1alpha1.DebuginfoService */ export class DebuginfoServiceClient implements IDebuginfoServiceClient, ServiceInfo { typeName = DebuginfoService.typeName; methods = DebuginfoService.methods; options = DebuginfoService.options; constructor(private readonly _transport: RpcTransport) { } /** * Upload ingests debug info for a given build_id * * @generated from protobuf rpc: Upload */ upload(options?: RpcOptions): ClientStreamingCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("clientStreaming", this._transport, method, opt); } /** * ShouldInitiateUpload returns whether an upload for a given build_id should be initiated or not. * * @generated from protobuf rpc: ShouldInitiateUpload */ shouldInitiateUpload(input: ShouldInitiateUploadRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * InitiateUpload returns a strategy and information to upload debug info for a given build_id. * * @generated from protobuf rpc: InitiateUpload */ initiateUpload(input: InitiateUploadRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * MarkUploadFinished marks the upload as finished for a given build_id. * * @generated from protobuf rpc: MarkUploadFinished */ markUploadFinished(input: MarkUploadFinishedRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }