// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "users.proto" (package "api", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { Users } from "./users"; import type { DeleteUserResult } from "./users"; import type { DeleteUserRequest } from "./users"; import type { EditUserResult } from "./users"; import type { EditUserRequest } from "./users"; import type { ListUsersResult } from "./users"; import type { ListUsersRequest } from "./users"; import type { GetUserResult } from "./users"; import type { GetUserRequest } from "./users"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { CreateUserResult } from "./users"; import type { CreateUserRequest } from "./users"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * @generated from protobuf service api.Users */ export interface IUsersClient { /** * @generated from protobuf rpc: CreateUser */ createUser(input: CreateUserRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetUser */ getUser(input: GetUserRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: ListUsers */ listUsers(input: ListUsersRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: EditUser */ editUser(input: EditUserRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteUser */ deleteUser(input: DeleteUserRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service api.Users */ export class UsersClient implements IUsersClient, ServiceInfo { typeName = Users.typeName; methods = Users.methods; options = Users.options; constructor(private readonly _transport: RpcTransport) { } /** * @generated from protobuf rpc: CreateUser */ createUser(input: CreateUserRequest, 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: GetUser */ getUser(input: GetUserRequest, 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: ListUsers */ listUsers(input: ListUsersRequest, 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: EditUser */ editUser(input: EditUserRequest, 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: DeleteUser */ deleteUser(input: DeleteUserRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }