Files
npm-viz-sdk/viz-tab.client.ts
2025-04-28 13:49:07 +00:00

38 lines
1.6 KiB
TypeScript

// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "viz-tab.proto" (package "vizapi", syntax proto3)
// tslint:disable
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { TabService } from "./viz-tab";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { ListTabResult } from "./viz-tab";
import type { ListTabRequest } from "./viz-tab";
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
/**
* @generated from protobuf service vizapi.TabService
*/
export interface ITabServiceClient {
/**
* @generated from protobuf rpc: List(vizapi.ListTabRequest) returns (vizapi.ListTabResult);
*/
list(input: ListTabRequest, options?: RpcOptions): UnaryCall<ListTabRequest, ListTabResult>;
}
/**
* @generated from protobuf service vizapi.TabService
*/
export class TabServiceClient implements ITabServiceClient, ServiceInfo {
typeName = TabService.typeName;
methods = TabService.methods;
options = TabService.options;
constructor(private readonly _transport: RpcTransport) {
}
/**
* @generated from protobuf rpc: List(vizapi.ListTabRequest) returns (vizapi.ListTabResult);
*/
list(input: ListTabRequest, options?: RpcOptions): UnaryCall<ListTabRequest, ListTabResult> {
const method = this.methods[0], opt = this._transport.mergeOptions(options);
return stackIntercept<ListTabRequest, ListTabResult>("unary", this._transport, method, opt, input);
}
}