// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "parca/query/v1alpha1/query.proto" (package "parca.query.v1alpha1", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { QueryService } from "./query"; import type { HasProfileDataResponse } from "./query"; import type { HasProfileDataRequest } from "./query"; import type { ShareProfileResponse } from "./query"; import type { ShareProfileRequest } from "./query"; import type { ValuesResponse } from "./query"; import type { ValuesRequest } from "./query"; import type { LabelsResponse } from "./query"; import type { LabelsRequest } from "./query"; import type { ProfileTypesResponse } from "./query"; import type { ProfileTypesRequest } from "./query"; import type { SeriesResponse } from "./query"; import type { SeriesRequest } from "./query"; import type { QueryResponse } from "./query"; import type { QueryRequest } from "./query"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { QueryRangeResponse } from "./query"; import type { QueryRangeRequest } from "./query"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * QueryService is the service that provides APIs to retrieve and inspect profiles * * @generated from protobuf service parca.query.v1alpha1.QueryService */ export interface IQueryServiceClient { /** * QueryRange performs a profile query over a time range * * @generated from protobuf rpc: QueryRange */ queryRange(input: QueryRangeRequest, options?: RpcOptions): UnaryCall; /** * Query performs a profile query * * @generated from protobuf rpc: Query */ query(input: QueryRequest, options?: RpcOptions): UnaryCall; /** * Series is unimplemented * * @generated from protobuf rpc: Series */ series(input: SeriesRequest, options?: RpcOptions): UnaryCall; /** * ProfileTypes returns the list of available profile types. * * @generated from protobuf rpc: ProfileTypes */ profileTypes(input: ProfileTypesRequest, options?: RpcOptions): UnaryCall; /** * Labels returns the set of label names against a given matching string and time frame * * @generated from protobuf rpc: Labels */ labels(input: LabelsRequest, options?: RpcOptions): UnaryCall; /** * Values returns the set of values that match a given label and time frame * * @generated from protobuf rpc: Values */ values(input: ValuesRequest, options?: RpcOptions): UnaryCall; /** * ShareProfile uploads the given profile to pprof.me and returns a link to the profile. * * @generated from protobuf rpc: ShareProfile */ shareProfile(input: ShareProfileRequest, options?: RpcOptions): UnaryCall; /** * HasProfileData checks if there is any profile data available * * @generated from protobuf rpc: HasProfileData */ hasProfileData(input: HasProfileDataRequest, options?: RpcOptions): UnaryCall; } /** * QueryService is the service that provides APIs to retrieve and inspect profiles * * @generated from protobuf service parca.query.v1alpha1.QueryService */ export class QueryServiceClient implements IQueryServiceClient, ServiceInfo { typeName = QueryService.typeName; methods = QueryService.methods; options = QueryService.options; constructor(private readonly _transport: RpcTransport) { } /** * QueryRange performs a profile query over a time range * * @generated from protobuf rpc: QueryRange */ queryRange(input: QueryRangeRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * Query performs a profile query * * @generated from protobuf rpc: Query */ query(input: QueryRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * Series is unimplemented * * @generated from protobuf rpc: Series */ series(input: SeriesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * ProfileTypes returns the list of available profile types. * * @generated from protobuf rpc: ProfileTypes */ profileTypes(input: ProfileTypesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * Labels returns the set of label names against a given matching string and time frame * * @generated from protobuf rpc: Labels */ labels(input: LabelsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * Values returns the set of values that match a given label and time frame * * @generated from protobuf rpc: Values */ values(input: ValuesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[5], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * ShareProfile uploads the given profile to pprof.me and returns a link to the profile. * * @generated from protobuf rpc: ShareProfile */ shareProfile(input: ShareProfileRequest, options?: RpcOptions): UnaryCall { const method = this.methods[6], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * HasProfileData checks if there is any profile data available * * @generated from protobuf rpc: HasProfileData */ hasProfileData(input: HasProfileDataRequest, options?: RpcOptions): UnaryCall { const method = this.methods[7], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }