Files
npm-viz-sdk/counter.client.ts
2025-10-06 07:44:51 +00:00

38 lines
1.7 KiB
TypeScript

// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
// @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
*/
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
*/
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);
}
}