// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "user-groups.proto" (package "api", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { UserGroupsService } from "./user-groups"; import type { ListUserGroupsResult } from "./user-groups"; import type { ListUserGroupsRequest } from "./user-groups"; import type { DeleteUserGroupsResult } from "./user-groups"; import type { DeleteUserGroupsRequest } from "./user-groups"; import type { PutUserGroupsResult } from "./user-groups"; import type { PutUserGroupsRequest } from "./user-groups"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { GetUserGroupsResult } from "./user-groups"; import type { GetUserGroupsRequest } from "./user-groups"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * @generated from protobuf service api.UserGroupsService */ export interface IUserGroupsServiceClient { /** * @generated from protobuf rpc: Get */ get(input: GetUserGroupsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Put */ put(input: PutUserGroupsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Delete */ delete(input: DeleteUserGroupsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: List */ list(input: ListUserGroupsRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service api.UserGroupsService */ export class UserGroupsServiceClient implements IUserGroupsServiceClient, ServiceInfo { typeName = UserGroupsService.typeName; methods = UserGroupsService.methods; options = UserGroupsService.options; constructor(private readonly _transport: RpcTransport) { } /** * @generated from protobuf rpc: Get */ get(input: GetUserGroupsRequest, 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: PutUserGroupsRequest, 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: DeleteUserGroupsRequest, 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: ListUserGroupsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }