You've already forked npm-core-sdk
77 lines
4.1 KiB
TypeScript
77 lines
4.1 KiB
TypeScript
// @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<UpdateModelMappingsRequest, UpdateModelMappingsResult>;
|
|
/**
|
|
* @generated from protobuf rpc: CreateResourceMappings
|
|
*/
|
|
createResourceMappings(input: CreateResourceMappingsRequest, options?: RpcOptions): UnaryCall<CreateResourceMappingsRequest, CreateResourceMappingsResult>;
|
|
/**
|
|
* @generated from protobuf rpc: DeleteResourceMappings
|
|
*/
|
|
deleteResourceMappings(input: DeleteResourceMappingsRequest, options?: RpcOptions): UnaryCall<DeleteResourceMappingsRequest, DeleteResourceMappingsResult>;
|
|
/**
|
|
* @generated from protobuf rpc: ClearIndexEntity
|
|
*/
|
|
clearIndexEntity(input: ClearIndexEntityRequest, options?: RpcOptions): UnaryCall<ClearIndexEntityRequest, ClearIndexEntityResult>;
|
|
}
|
|
/**
|
|
* @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<UpdateModelMappingsRequest, UpdateModelMappingsResult> {
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<UpdateModelMappingsRequest, UpdateModelMappingsResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: CreateResourceMappings
|
|
*/
|
|
createResourceMappings(input: CreateResourceMappingsRequest, options?: RpcOptions): UnaryCall<CreateResourceMappingsRequest, CreateResourceMappingsResult> {
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<CreateResourceMappingsRequest, CreateResourceMappingsResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: DeleteResourceMappings
|
|
*/
|
|
deleteResourceMappings(input: DeleteResourceMappingsRequest, options?: RpcOptions): UnaryCall<DeleteResourceMappingsRequest, DeleteResourceMappingsResult> {
|
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<DeleteResourceMappingsRequest, DeleteResourceMappingsResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ClearIndexEntity
|
|
*/
|
|
clearIndexEntity(input: ClearIndexEntityRequest, options?: RpcOptions): UnaryCall<ClearIndexEntityRequest, ClearIndexEntityResult> {
|
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ClearIndexEntityRequest, ClearIndexEntityResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|