// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "translations.proto" (package "api", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { TranslationsService } from "./translations"; import type { GetLanguagesResult } from "./translations"; import type { GetLanguagesRequest } from "./translations"; import type { DeleteAllTranslationsResult } from "./translations"; import type { DeleteAllTranslationsRequest } from "./translations"; import type { ListTranslationsResult } from "./translations"; import type { ListTranslationsRequest } from "./translations"; import type { DeleteTranslationsResult } from "./translations"; import type { DeleteTranslationsRequest } from "./translations"; import type { PutTranslationsResult } from "./translations"; import type { PutTranslationsRequest } from "./translations"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { GetTranslationsResult } from "./translations"; import type { GetTranslationsRequest } from "./translations"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; // =================================== // ============= Service ============= // =================================== /** * @generated from protobuf service api.TranslationsService */ export interface ITranslationsServiceClient { /** * @generated from protobuf rpc: Get */ get(input: GetTranslationsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Put */ put(input: PutTranslationsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Delete */ delete(input: DeleteTranslationsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: List */ list(input: ListTranslationsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteAll */ deleteAll(input: DeleteAllTranslationsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetLanguages */ getLanguages(input: GetLanguagesRequest, options?: RpcOptions): UnaryCall; } // =================================== // ============= Service ============= // =================================== /** * @generated from protobuf service api.TranslationsService */ export class TranslationsServiceClient implements ITranslationsServiceClient, ServiceInfo { typeName = TranslationsService.typeName; methods = TranslationsService.methods; options = TranslationsService.options; constructor(private readonly _transport: RpcTransport) { } /** * @generated from protobuf rpc: Get */ get(input: GetTranslationsRequest, 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: Put */ put(input: PutTranslationsRequest, 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: Delete */ delete(input: DeleteTranslationsRequest, 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: List */ list(input: ListTranslationsRequest, 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: DeleteAll */ deleteAll(input: DeleteAllTranslationsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetLanguages */ getLanguages(input: GetLanguagesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[5], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }