// @generated by protobuf-ts 2.11.1 with parameter generate_dependencies // @generated from protobuf file "parca/scrape/v1alpha1/scrape.proto" (package "parca.scrape.v1alpha1", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { ScrapeService } from "./scrape"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { TargetsResponse } from "./scrape"; import type { TargetsRequest } from "./scrape"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * ScrapeService maintains the set of scrape targets * * @generated from protobuf service parca.scrape.v1alpha1.ScrapeService */ export interface IScrapeServiceClient { /** * Targets returns the set of scrape targets that are configured * * @generated from protobuf rpc: Targets */ targets(input: TargetsRequest, options?: RpcOptions): UnaryCall; } /** * ScrapeService maintains the set of scrape targets * * @generated from protobuf service parca.scrape.v1alpha1.ScrapeService */ export class ScrapeServiceClient implements IScrapeServiceClient, ServiceInfo { typeName = ScrapeService.typeName; methods = ScrapeService.methods; options = ScrapeService.options; constructor(private readonly _transport: RpcTransport) { } /** * Targets returns the set of scrape targets that are configured * * @generated from protobuf rpc: Targets */ targets(input: TargetsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }