Files
npm-viz-sdk/counter.client.ts
2025-04-03 08:23:25 +00:00

38 lines
1.8 KiB
TypeScript

// @generated by protobuf-ts 2.9.6
// @generated from protobuf file "counter.proto" (package "vizapi", syntax proto3)
// tslint:disable
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { ProjectCountersService } from "./counter";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { NextCounterResult } from "./counter";
import type { NextProjectCounterRequest } from "./counter";
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
/**
* @generated from protobuf service vizapi.ProjectCountersService
*/
export interface IProjectCountersServiceClient {
/**
* @generated from protobuf rpc: Next(vizapi.NextProjectCounterRequest) returns (vizapi.NextCounterResult);
*/
next(input: NextProjectCounterRequest, options?: RpcOptions): UnaryCall<NextProjectCounterRequest, NextCounterResult>;
}
/**
* @generated from protobuf service vizapi.ProjectCountersService
*/
export class ProjectCountersServiceClient implements IProjectCountersServiceClient, ServiceInfo {
typeName = ProjectCountersService.typeName;
methods = ProjectCountersService.methods;
options = ProjectCountersService.options;
constructor(private readonly _transport: RpcTransport) {
}
/**
* @generated from protobuf rpc: Next(vizapi.NextProjectCounterRequest) returns (vizapi.NextCounterResult);
*/
next(input: NextProjectCounterRequest, options?: RpcOptions): UnaryCall<NextProjectCounterRequest, NextCounterResult> {
const method = this.methods[0], opt = this._transport.mergeOptions(options);
return stackIntercept<NextProjectCounterRequest, NextCounterResult>("unary", this._transport, method, opt, input);
}
}