50 lines
2.2 KiB
TypeScript
50 lines
2.2 KiB
TypeScript
// @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<CreateCharacterRequest, Character>;
|
|
/**
|
|
* @generated from protobuf rpc: getCharacter
|
|
*/
|
|
getCharacter(input: GetCharacterRequest, options?: RpcOptions): UnaryCall<GetCharacterRequest, Character>;
|
|
}
|
|
/**
|
|
* @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<CreateCharacterRequest, Character> {
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<CreateCharacterRequest, Character>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: getCharacter
|
|
*/
|
|
getCharacter(input: GetCharacterRequest, options?: RpcOptions): UnaryCall<GetCharacterRequest, Character> {
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<GetCharacterRequest, Character>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|