// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "accounts.proto" (package "api", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { Accounts } from "./accounts"; import type { DeleteImportResult } from "./accounts"; import type { DeleteImportRequest } from "./accounts"; import type { DeleteExportResult } from "./accounts"; import type { DeleteExportRequest } from "./accounts"; import type { AddImportResult } from "./accounts"; import type { AddImportRequest } from "./accounts"; import type { AddExportResult } from "./accounts"; import type { AddExportRequest } from "./accounts"; import type { PushAccountsResult } from "./accounts"; import type { PushAccountsRequest } from "./accounts"; import type { DeleteAccountResult } from "./accounts"; import type { DeleteAccountRequest } from "./accounts"; import type { EditAccountResult } from "./accounts"; import type { EditAccountRequest } from "./accounts"; import type { ListAccountsResult } from "./accounts"; import type { ListAccountsRequest } from "./accounts"; import type { GetAccountResult } from "./accounts"; import type { GetAccountRequest } from "./accounts"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { CreateAccountResult } from "./accounts"; import type { CreateAccountRequest } from "./accounts"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * @generated from protobuf service api.Accounts */ export interface IAccountsClient { /** * @generated from protobuf rpc: CreateAccount */ createAccount(input: CreateAccountRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetAccount */ getAccount(input: GetAccountRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: ListAccounts */ listAccounts(input: ListAccountsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: EditAccount */ editAccount(input: EditAccountRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteAccount */ deleteAccount(input: DeleteAccountRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: PushAccounts */ pushAccounts(input: PushAccountsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: AddExport */ addExport(input: AddExportRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: AddImport */ addImport(input: AddImportRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteExport */ deleteExport(input: DeleteExportRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteImport */ deleteImport(input: DeleteImportRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service api.Accounts */ export class AccountsClient implements IAccountsClient, ServiceInfo { typeName = Accounts.typeName; methods = Accounts.methods; options = Accounts.options; constructor(private readonly _transport: RpcTransport) { } /** * @generated from protobuf rpc: CreateAccount */ createAccount(input: CreateAccountRequest, 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: GetAccount */ getAccount(input: GetAccountRequest, 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: ListAccounts */ listAccounts(input: ListAccountsRequest, 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: EditAccount */ editAccount(input: EditAccountRequest, 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: DeleteAccount */ deleteAccount(input: DeleteAccountRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: PushAccounts */ pushAccounts(input: PushAccountsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[5], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: AddExport */ addExport(input: AddExportRequest, options?: RpcOptions): UnaryCall { const method = this.methods[6], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: AddImport */ addImport(input: AddImportRequest, options?: RpcOptions): UnaryCall { const method = this.methods[7], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: DeleteExport */ deleteExport(input: DeleteExportRequest, options?: RpcOptions): UnaryCall { const method = this.methods[8], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: DeleteImport */ deleteImport(input: DeleteImportRequest, options?: RpcOptions): UnaryCall { const method = this.methods[9], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }