You've already forked npm-viz-sdk
90 lines
4.6 KiB
TypeScript
90 lines
4.6 KiB
TypeScript
// @generated by protobuf-ts 2.9.6
|
|
// @generated from protobuf file "viz-motd.proto" (package "vizapi", syntax proto3)
|
|
// tslint:disable
|
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
import { MotdService } from "./viz-motd";
|
|
import type { ListMotdsResult } from "./viz-motd";
|
|
import type { ListMotdsRequest } from "./viz-motd";
|
|
import type { DeleteMotdResult } from "./viz-motd";
|
|
import type { DeleteMotdRequest } from "./viz-motd";
|
|
import type { UpdateMotdResult } from "./viz-motd";
|
|
import type { UpdateMotdRequest } from "./viz-motd";
|
|
import type { CreateMotdResult } from "./viz-motd";
|
|
import type { CreateMotdRequest } from "./viz-motd";
|
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
import type { GetMotdResult } from "./viz-motd";
|
|
import type { GetMotdRequest } from "./viz-motd";
|
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
/**
|
|
* @generated from protobuf service vizapi.MotdService
|
|
*/
|
|
export interface IMotdServiceClient {
|
|
/**
|
|
* @generated from protobuf rpc: Get(vizapi.GetMotdRequest) returns (vizapi.GetMotdResult);
|
|
*/
|
|
get(input: GetMotdRequest, options?: RpcOptions): UnaryCall<GetMotdRequest, GetMotdResult>;
|
|
/**
|
|
* @generated from protobuf rpc: Create(vizapi.CreateMotdRequest) returns (vizapi.CreateMotdResult);
|
|
*/
|
|
create(input: CreateMotdRequest, options?: RpcOptions): UnaryCall<CreateMotdRequest, CreateMotdResult>;
|
|
/**
|
|
* @generated from protobuf rpc: Update(vizapi.UpdateMotdRequest) returns (vizapi.UpdateMotdResult);
|
|
*/
|
|
update(input: UpdateMotdRequest, options?: RpcOptions): UnaryCall<UpdateMotdRequest, UpdateMotdResult>;
|
|
/**
|
|
* @generated from protobuf rpc: Delete(vizapi.DeleteMotdRequest) returns (vizapi.DeleteMotdResult);
|
|
*/
|
|
delete(input: DeleteMotdRequest, options?: RpcOptions): UnaryCall<DeleteMotdRequest, DeleteMotdResult>;
|
|
/**
|
|
* @generated from protobuf rpc: List(vizapi.ListMotdsRequest) returns (vizapi.ListMotdsResult);
|
|
*/
|
|
list(input: ListMotdsRequest, options?: RpcOptions): UnaryCall<ListMotdsRequest, ListMotdsResult>;
|
|
}
|
|
/**
|
|
* @generated from protobuf service vizapi.MotdService
|
|
*/
|
|
export class MotdServiceClient implements IMotdServiceClient, ServiceInfo {
|
|
typeName = MotdService.typeName;
|
|
methods = MotdService.methods;
|
|
options = MotdService.options;
|
|
constructor(private readonly _transport: RpcTransport) {
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Get(vizapi.GetMotdRequest) returns (vizapi.GetMotdResult);
|
|
*/
|
|
get(input: GetMotdRequest, options?: RpcOptions): UnaryCall<GetMotdRequest, GetMotdResult> {
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<GetMotdRequest, GetMotdResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Create(vizapi.CreateMotdRequest) returns (vizapi.CreateMotdResult);
|
|
*/
|
|
create(input: CreateMotdRequest, options?: RpcOptions): UnaryCall<CreateMotdRequest, CreateMotdResult> {
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<CreateMotdRequest, CreateMotdResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Update(vizapi.UpdateMotdRequest) returns (vizapi.UpdateMotdResult);
|
|
*/
|
|
update(input: UpdateMotdRequest, options?: RpcOptions): UnaryCall<UpdateMotdRequest, UpdateMotdResult> {
|
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<UpdateMotdRequest, UpdateMotdResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Delete(vizapi.DeleteMotdRequest) returns (vizapi.DeleteMotdResult);
|
|
*/
|
|
delete(input: DeleteMotdRequest, options?: RpcOptions): UnaryCall<DeleteMotdRequest, DeleteMotdResult> {
|
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<DeleteMotdRequest, DeleteMotdResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: List(vizapi.ListMotdsRequest) returns (vizapi.ListMotdsResult);
|
|
*/
|
|
list(input: ListMotdsRequest, options?: RpcOptions): UnaryCall<ListMotdsRequest, ListMotdsResult> {
|
|
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ListMotdsRequest, ListMotdsResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|