// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name // @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 */ get(input: GetMotdRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Create */ create(input: CreateMotdRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Update */ update(input: UpdateMotdRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Delete */ delete(input: DeleteMotdRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: List */ list(input: ListMotdsRequest, options?: RpcOptions): UnaryCall; } /** * @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 */ get(input: GetMotdRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: Create */ create(input: CreateMotdRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: Update */ update(input: UpdateMotdRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: Delete */ delete(input: DeleteMotdRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: List */ list(input: ListMotdsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }