// @generated by protobuf-ts 2.11.0 with parameter server_grpc1 // @generated from protobuf file "character.proto" (syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { CharacterManager } from "./character"; import type { GetCharacterRequest } from "./character"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { Character } from "./character"; import type { CreateCharacterRequest } from "./character"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * @generated from protobuf service CharacterManager */ export interface ICharacterManagerClient { /** * @generated from protobuf rpc: createCharacter */ createCharacter(input: CreateCharacterRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: getCharacter */ getCharacter(input: GetCharacterRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service CharacterManager */ export class CharacterManagerClient implements ICharacterManagerClient, ServiceInfo { typeName = CharacterManager.typeName; methods = CharacterManager.methods; options = CharacterManager.options; constructor(private readonly _transport: RpcTransport) { } /** * @generated from protobuf rpc: createCharacter */ createCharacter(input: CreateCharacterRequest, 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: getCharacter */ getCharacter(input: GetCharacterRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }