Files
npm-viz-sdk/viz-view.client.ts
2026-02-23 15:47:09 +00:00

116 lines
5.4 KiB
TypeScript

// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name
// @generated from protobuf file "viz-view.proto" (package "vizapi", syntax proto3)
// tslint:disable
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { ViewService } from "./viz-view";
import type { ExtractResult } from "./viz-view";
import type { ExtractRequest } from "./viz-view";
import type { DeleteViewsForProjectResult } from "./viz-view";
import type { DeleteViewsForProjectRequest } from "./viz-view";
import type { ListViewResult } from "./viz-view";
import type { ListViewRequest } from "./viz-view";
import type { DeleteViewResult } from "./viz-view";
import type { DeleteViewRequest } from "./viz-view";
import type { UpdateViewResult } from "./viz-view";
import type { UpdateViewRequest } from "./viz-view";
import type { CreateViewResult } from "./viz-view";
import type { CreateViewRequest } from "./viz-view";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { GetViewResult } from "./viz-view";
import type { GetViewRequest } from "./viz-view";
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
/**
* @generated from protobuf service vizapi.ViewService
*/
export interface IViewServiceClient {
/**
* @generated from protobuf rpc: Get
*/
get(input: GetViewRequest, options?: RpcOptions): UnaryCall<GetViewRequest, GetViewResult>;
/**
* @generated from protobuf rpc: Create
*/
create(input: CreateViewRequest, options?: RpcOptions): UnaryCall<CreateViewRequest, CreateViewResult>;
/**
* @generated from protobuf rpc: Update
*/
update(input: UpdateViewRequest, options?: RpcOptions): UnaryCall<UpdateViewRequest, UpdateViewResult>;
/**
* @generated from protobuf rpc: Delete
*/
delete(input: DeleteViewRequest, options?: RpcOptions): UnaryCall<DeleteViewRequest, DeleteViewResult>;
/**
* @generated from protobuf rpc: List
*/
list(input: ListViewRequest, options?: RpcOptions): UnaryCall<ListViewRequest, ListViewResult>;
/**
* @generated from protobuf rpc: DeleteViewsForProject
*/
deleteViewsForProject(input: DeleteViewsForProjectRequest, options?: RpcOptions): UnaryCall<DeleteViewsForProjectRequest, DeleteViewsForProjectResult>;
/**
* @generated from protobuf rpc: Extract
*/
extract(input: ExtractRequest, options?: RpcOptions): UnaryCall<ExtractRequest, ExtractResult>;
}
/**
* @generated from protobuf service vizapi.ViewService
*/
export class ViewServiceClient implements IViewServiceClient, ServiceInfo {
typeName = ViewService.typeName;
methods = ViewService.methods;
options = ViewService.options;
constructor(private readonly _transport: RpcTransport) {
}
/**
* @generated from protobuf rpc: Get
*/
get(input: GetViewRequest, options?: RpcOptions): UnaryCall<GetViewRequest, GetViewResult> {
const method = this.methods[0], opt = this._transport.mergeOptions(options);
return stackIntercept<GetViewRequest, GetViewResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: Create
*/
create(input: CreateViewRequest, options?: RpcOptions): UnaryCall<CreateViewRequest, CreateViewResult> {
const method = this.methods[1], opt = this._transport.mergeOptions(options);
return stackIntercept<CreateViewRequest, CreateViewResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: Update
*/
update(input: UpdateViewRequest, options?: RpcOptions): UnaryCall<UpdateViewRequest, UpdateViewResult> {
const method = this.methods[2], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateViewRequest, UpdateViewResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: Delete
*/
delete(input: DeleteViewRequest, options?: RpcOptions): UnaryCall<DeleteViewRequest, DeleteViewResult> {
const method = this.methods[3], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteViewRequest, DeleteViewResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: List
*/
list(input: ListViewRequest, options?: RpcOptions): UnaryCall<ListViewRequest, ListViewResult> {
const method = this.methods[4], opt = this._transport.mergeOptions(options);
return stackIntercept<ListViewRequest, ListViewResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteViewsForProject
*/
deleteViewsForProject(input: DeleteViewsForProjectRequest, options?: RpcOptions): UnaryCall<DeleteViewsForProjectRequest, DeleteViewsForProjectResult> {
const method = this.methods[5], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteViewsForProjectRequest, DeleteViewsForProjectResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: Extract
*/
extract(input: ExtractRequest, options?: RpcOptions): UnaryCall<ExtractRequest, ExtractResult> {
const method = this.methods[6], opt = this._transport.mergeOptions(options);
return stackIntercept<ExtractRequest, ExtractResult>("unary", this._transport, method, opt, input);
}
}