// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "opensearch.proto" (package "api", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { OpenSearchService } from "./opensearch"; import type { DeleteOpenSearchProjectResponse } from "./opensearch"; import type { DeleteOpenSearchProjectRequest } from "./opensearch"; import type { CreateOpenSearchProjectRoleResponse } from "./opensearch"; import type { CreateOpenSearchProjectRoleRequest } from "./opensearch"; import type { CreateOpenSearchTenantResponse } from "./opensearch"; import type { CreateOpenSearchTenantRequest } from "./opensearch"; import type { DeleteOpenSearchUserResponse } from "./opensearch"; import type { DeleteOpenSearchUserRequest } from "./opensearch"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { CreateOpenSearchUserResponse } from "./opensearch"; import type { CreateOpenSearchUserRequest } from "./opensearch"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * @generated from protobuf service api.OpenSearchService */ export interface IOpenSearchServiceClient { /** * @generated from protobuf rpc: CreateUser */ createUser(input: CreateOpenSearchUserRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteUser */ deleteUser(input: DeleteOpenSearchUserRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: CreateTenant */ createTenant(input: CreateOpenSearchTenantRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: CreateProjectRole */ createProjectRole(input: CreateOpenSearchProjectRoleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteProject */ deleteProject(input: DeleteOpenSearchProjectRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service api.OpenSearchService */ export class OpenSearchServiceClient implements IOpenSearchServiceClient, ServiceInfo { typeName = OpenSearchService.typeName; methods = OpenSearchService.methods; options = OpenSearchService.options; constructor(private readonly _transport: RpcTransport) { } /** * @generated from protobuf rpc: CreateUser */ createUser(input: CreateOpenSearchUserRequest, 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: DeleteUser */ deleteUser(input: DeleteOpenSearchUserRequest, 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: CreateTenant */ createTenant(input: CreateOpenSearchTenantRequest, 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: CreateProjectRole */ createProjectRole(input: CreateOpenSearchProjectRoleRequest, 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: DeleteProject */ deleteProject(input: DeleteOpenSearchProjectRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }