// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "elastic.proto" (package "api", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { ElasticService } from "./elastic"; import type { ClearIndexEntityResult } from "./elastic"; import type { ClearIndexEntityRequest } from "./elastic"; import type { DeleteResourceMappingsResult } from "./elastic"; import type { DeleteResourceMappingsRequest } from "./elastic"; import type { CreateResourceMappingsResult } from "./elastic"; import type { CreateResourceMappingsRequest } from "./elastic"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { UpdateModelMappingsResult } from "./elastic"; import type { UpdateModelMappingsRequest } from "./elastic"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * @generated from protobuf service api.ElasticService */ export interface IElasticServiceClient { /** * @generated from protobuf rpc: UpdateModelMappings */ updateModelMappings(input: UpdateModelMappingsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: CreateResourceMappings */ createResourceMappings(input: CreateResourceMappingsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteResourceMappings */ deleteResourceMappings(input: DeleteResourceMappingsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: ClearIndexEntity */ clearIndexEntity(input: ClearIndexEntityRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service api.ElasticService */ export class ElasticServiceClient implements IElasticServiceClient, ServiceInfo { typeName = ElasticService.typeName; methods = ElasticService.methods; options = ElasticService.options; constructor(private readonly _transport: RpcTransport) { } /** * @generated from protobuf rpc: UpdateModelMappings */ updateModelMappings(input: UpdateModelMappingsRequest, 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: CreateResourceMappings */ createResourceMappings(input: CreateResourceMappingsRequest, 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: DeleteResourceMappings */ deleteResourceMappings(input: DeleteResourceMappingsRequest, 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: ClearIndexEntity */ clearIndexEntity(input: ClearIndexEntityRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }