You've already forked npm-core-sdk
Latest generation
This commit is contained in:
110
translations.client.ts
Normal file
110
translations.client.ts
Normal file
@@ -0,0 +1,110 @@
|
||||
// @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<GetTranslationsRequest, GetTranslationsResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Put
|
||||
*/
|
||||
put(input: PutTranslationsRequest, options?: RpcOptions): UnaryCall<PutTranslationsRequest, PutTranslationsResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Delete
|
||||
*/
|
||||
delete(input: DeleteTranslationsRequest, options?: RpcOptions): UnaryCall<DeleteTranslationsRequest, DeleteTranslationsResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: List
|
||||
*/
|
||||
list(input: ListTranslationsRequest, options?: RpcOptions): UnaryCall<ListTranslationsRequest, ListTranslationsResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteAll
|
||||
*/
|
||||
deleteAll(input: DeleteAllTranslationsRequest, options?: RpcOptions): UnaryCall<DeleteAllTranslationsRequest, DeleteAllTranslationsResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: GetLanguages
|
||||
*/
|
||||
getLanguages(input: GetLanguagesRequest, options?: RpcOptions): UnaryCall<GetLanguagesRequest, GetLanguagesResult>;
|
||||
}
|
||||
// ===================================
|
||||
// ============= 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<GetTranslationsRequest, GetTranslationsResult> {
|
||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetTranslationsRequest, GetTranslationsResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Put
|
||||
*/
|
||||
put(input: PutTranslationsRequest, options?: RpcOptions): UnaryCall<PutTranslationsRequest, PutTranslationsResult> {
|
||||
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<PutTranslationsRequest, PutTranslationsResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Delete
|
||||
*/
|
||||
delete(input: DeleteTranslationsRequest, options?: RpcOptions): UnaryCall<DeleteTranslationsRequest, DeleteTranslationsResult> {
|
||||
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteTranslationsRequest, DeleteTranslationsResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: List
|
||||
*/
|
||||
list(input: ListTranslationsRequest, options?: RpcOptions): UnaryCall<ListTranslationsRequest, ListTranslationsResult> {
|
||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListTranslationsRequest, ListTranslationsResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteAll
|
||||
*/
|
||||
deleteAll(input: DeleteAllTranslationsRequest, options?: RpcOptions): UnaryCall<DeleteAllTranslationsRequest, DeleteAllTranslationsResult> {
|
||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteAllTranslationsRequest, DeleteAllTranslationsResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetLanguages
|
||||
*/
|
||||
getLanguages(input: GetLanguagesRequest, options?: RpcOptions): UnaryCall<GetLanguagesRequest, GetLanguagesResult> {
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetLanguagesRequest, GetLanguagesResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user