From 6546534ceec333eef2d6a7bbe23f2d17a9e7a62b Mon Sep 17 00:00:00 2001 From: muscleman Date: Thu, 18 Nov 2021 10:40:25 -0600 Subject: [PATCH] Added AccountClient --- config/grpc.proto | 2 + config/pb.proto | 4 +- src/App.tsx | 131 +- src/HavenoDaemon.ts | 161 +- src/protobuf/GrpcServiceClientPb.ts | 365 +++++ src/protobuf/grpc_pb.d.ts | 244 ++++ src/protobuf/grpc_pb.js | 2113 +++++++++++++++++++++++++++ src/protobuf/pb_pb.d.ts | 6 + src/protobuf/pb_pb.js | 54 + 9 files changed, 3073 insertions(+), 7 deletions(-) diff --git a/config/grpc.proto b/config/grpc.proto index 0229cd52..a2af779a 100644 --- a/config/grpc.proto +++ b/config/grpc.proto @@ -40,6 +40,8 @@ message RegisterDisputeAgentRequest { message RegisterDisputeAgentReply { } + + /////////////////////////////////////////////////////////////////////////////////////////// // Help /////////////////////////////////////////////////////////////////////////////////////////// diff --git a/config/pb.proto b/config/pb.proto index 37e210a5..3edab960 100644 --- a/config/pb.proto +++ b/config/pb.proto @@ -964,7 +964,7 @@ message DisputeResult { bool screen_cast = 7; string summary_notes = 8; ChatMessage chat_message = 9; - reserved 10; // was bytes arbitrator_signature = 10; + bytes arbitrator_signature = 10; int64 buyer_payout_amount = 11; int64 seller_payout_amount = 12; bytes arbitrator_pub_key = 13; @@ -1915,4 +1915,4 @@ message MockMailboxPayload { message MockPayload { string message_version = 1; string message = 2; -} +} \ No newline at end of file diff --git a/src/App.tsx b/src/App.tsx index 71bfa681..6de64f34 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,16 +3,19 @@ import logo from './logo.png'; import './App.css'; import {HavenoDaemon} from './HavenoDaemon'; + const HAVENO_DAEMON_URL = "http://localhost:8080"; const HAVENO_DAEMON_PASSWORD = "apitest"; -class App extends React.Component<{}, {daemonVersion: string}> { +class App extends React.Component<{}, {daemonVersion: string, exists: string, accountOpen: string}> { daemon: HavenoDaemon; constructor(props: any) { super(props); - this.state = {daemonVersion: ""}; + this.state = {daemonVersion: "", + exists: "", + accountOpen: ""}; this.daemon = new HavenoDaemon(HAVENO_DAEMON_URL, HAVENO_DAEMON_PASSWORD); } @@ -27,6 +30,56 @@ class App extends React.Component<{}, {daemonVersion: string}> {

Coming soon...

+
+   + Exists: {this.state.exists} +
+
+   + Exists: {this.state.accountOpen} +
+
+   + +
+
+   + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+   + +
{ this.setState({daemonVersion: " not available"}); } } + + async accountExits() { + try { + let result = await this.daemon.accountExists(); + this.setState({exists: result ? "true" : "false"}); + } catch (err) { + console.error(err); + } + } + + async isAccountOpen() { + try { + let result = await this.daemon.isAccountOpen(); + this.setState({accountOpen: result ? "true" : "false"}); + } catch (err) { + console.error(err); + } + } + + async createAccount() { + try { + await this.daemon.createAccount("123456"); + } catch (err) { + console.error(err); + } + } + + async openAccount() { + try { + await this.daemon.openAccount("123456"); + } catch (err) { + console.error(err); + } + } + + async closeAccount() { + try { + await this.daemon.closeAccount(); + } catch (err) { + console.error(err); + } + } + + async backupAccount() { + try { + await this.daemon.backupAccount(); + } catch (err) { + console.error(err); + } + } + + async deleteAccount() { + try { + await this.daemon.deleteAccount(); + } catch (err) { + console.error(err); + } + } + + async restoreAccount() { + try { + //await this.daemon.restoreAccount(); + } catch (err) { + console.error(err); + } + } + + async changePassword() { + try { + await this.daemon.changePassword("abcdefg"); + } catch (err) { + console.error(err); + } + } } export default App; diff --git a/src/HavenoDaemon.ts b/src/HavenoDaemon.ts index 31fe32fb..82e4a4e8 100644 --- a/src/HavenoDaemon.ts +++ b/src/HavenoDaemon.ts @@ -1,6 +1,23 @@ import * as grpcWeb from 'grpc-web'; -import {GetVersionClient, PriceClient, WalletsClient, OffersClient, PaymentAccountsClient, TradesClient} from './protobuf/GrpcServiceClientPb'; -import {GetVersionRequest, GetVersionReply, MarketPriceRequest, MarketPriceReply, GetBalancesRequest, GetBalancesReply, XmrBalanceInfo, GetOffersRequest, GetOffersReply, OfferInfo, GetPaymentAccountsRequest, GetPaymentAccountsReply, CreateCryptoCurrencyPaymentAccountRequest, CreateCryptoCurrencyPaymentAccountReply, CreateOfferRequest, CreateOfferReply, CancelOfferRequest, TakeOfferRequest, TakeOfferReply, TradeInfo, GetTradeRequest, GetTradeReply, GetNewDepositSubaddressRequest, GetNewDepositSubaddressReply, ConfirmPaymentStartedRequest, ConfirmPaymentReceivedRequest} from './protobuf/grpc_pb'; +import {GetVersionClient, PriceClient, WalletsClient, OffersClient, PaymentAccountsClient, TradesClient, AccountClient} from './protobuf/GrpcServiceClientPb'; +import {GetVersionRequest, GetVersionReply, MarketPriceRequest, MarketPriceReply, GetBalancesRequest, GetBalancesReply, XmrBalanceInfo, GetOffersRequest, GetOffersReply, OfferInfo, GetPaymentAccountsRequest, GetPaymentAccountsReply, CreateCryptoCurrencyPaymentAccountRequest, CreateCryptoCurrencyPaymentAccountReply, CreateOfferRequest, CreateOfferReply, CancelOfferRequest, TakeOfferRequest, TakeOfferReply, TradeInfo, GetTradeRequest, GetTradeReply, GetNewDepositSubaddressRequest, GetNewDepositSubaddressReply, ConfirmPaymentStartedRequest, ConfirmPaymentReceivedRequest, + AccountExistsRequest, + AccountExistsReply, + IsAccountOpenRequest, + IsAccountOpenReply, + CreateAccountRequest, + CreateAccountReply, + OpenAccountRequest, + OpenAccountReply, + CloseAccountRequest, + CloseAccountReply, + BackupAccountRequest, + BackupAccountReply, + DeleteAccountRequest, + DeleteAccountReply, + ChangePasswordRequest, + ChangePasswordReply + } from './protobuf/grpc_pb'; import {PaymentAccount, AvailabilityResult} from './protobuf/pb_pb'; /** @@ -17,7 +34,8 @@ class HavenoDaemon { _paymentAccountsClient: PaymentAccountsClient; _offersClient: OffersClient; _tradesClient: TradesClient; - + _accountClient: AccountClient; + /** * Construct a client connected to a Haveno daemon. * @@ -33,6 +51,7 @@ class HavenoDaemon { this._paymentAccountsClient = new PaymentAccountsClient(this._url); this._offersClient = new OffersClient(this._url); this._tradesClient = new TradesClient(this._url); + this._accountClient = new AccountClient(this._url); } /** @@ -296,6 +315,142 @@ class HavenoDaemon { }); }); } + + /////////////////////////////////////////////// + // Account + /////////////////////////////////////////////// + + /** + * Determine if an Account Exists. + * + * @return {boolean} whether an account exists + */ + async accountExists(): Promise { + let that = this; + return new Promise(function(resolve, reject) { + that._accountClient.accountExists(new AccountExistsRequest(), {password: that._password}, function(err: grpcWeb.RpcError, response: AccountExistsReply) { + if (err) reject(err); + else resolve(response.getAccountExists()); + }); + }); + } + + /** + * Determine if an Account is open. + * + * @return {boolean} whether an account is open + */ + async isAccountOpen(): Promise { + let that = this; + return new Promise(function(resolve, reject) { + that._accountClient.isAccountOpen(new IsAccountOpenRequest(), {password: that._password}, function(err: grpcWeb.RpcError, response: IsAccountOpenReply) { + if (err) reject(err); + else resolve(response.getIsAccountOpen()); + }); + }); + } + + /** + * Create an Account. + * + * @param {string} password - the password for the Account + */ + async createAccount(password: string): Promise { + let that = this; + return new Promise(function(resolve, reject) { + that._accountClient.createAccount(new CreateAccountRequest().setPassword(password), {password: that._password}, function(err: grpcWeb.RpcError, response: CreateAccountReply) { + if (err) reject(err); + else resolve(); + }); + }); + } + + /** + * Create an Account. + * + * @param {string} password - the password for the Account + */ + async openAccount(password: string): Promise { + let that = this; + return new Promise(function(resolve, reject) { + that._accountClient.openAccount(new OpenAccountRequest().setPassword(password), {password: that._password}, function(err: grpcWeb.RpcError, response: OpenAccountReply) { + if (err) reject(err); + else resolve(); + }); + }); + } + + /** + * Close an Account. + * + */ + async closeAccount(): Promise { + let that = this; + return new Promise(function(resolve, reject) { + that._accountClient.closeAccount(new CloseAccountRequest(), {password: that._password}, function(err: grpcWeb.RpcError, response: CloseAccountReply) { + if (err) reject(err); + else resolve(); + }); + }); + } + + /** + * Backup an Account. + * + */ + async backupAccount(): Promise { + let that = this; + return new Promise(function(resolve, reject) { + that._accountClient.backupAccount(new BackupAccountRequest(), {password: that._password}, function(err: grpcWeb.RpcError, response: BackupAccountReply) { + if (err) reject(err); + else resolve(); + }); + }); + } + + /** + * Delete an Account. + * + */ + async deleteAccount(): Promise { + let that = this; + return new Promise(function(resolve, reject) { + that._accountClient.deleteAccount(new DeleteAccountRequest(), {password: that._password}, function(err: grpcWeb.RpcError, response: DeleteAccountReply) { + if (err) reject(err); + else resolve(); + }); + }); + } + + /** + * restore an Account. + * + */ + /* + async restoreAccount(): Promise { + let that = this; + return new Promise(function(resolve, reject) { + that._accountClient.restoreAccount(new RestoreAccountRequest(), {password: that._password}, function(err: grpcWeb.RpcError, response: RestoreAccountReply) { + if (err) reject(err); + else resolve(); + }); + }); + } + */ + + /** + * change Account password. + * + */ + async changePassword(password: string): Promise { + let that = this; + return new Promise(function(resolve, reject) { + that._accountClient.changePassword(new ChangePasswordRequest().setPassword(password), {password: that._password}, function(err: grpcWeb.RpcError, response: ChangePasswordReply) { + if (err) reject(err); + else resolve(); + }); + }); + } } export {HavenoDaemon}; \ No newline at end of file diff --git a/src/protobuf/GrpcServiceClientPb.ts b/src/protobuf/GrpcServiceClientPb.ts index ee07d5d8..54bedd07 100644 --- a/src/protobuf/GrpcServiceClientPb.ts +++ b/src/protobuf/GrpcServiceClientPb.ts @@ -80,6 +80,371 @@ export class DisputeAgentsClient { } +export class AccountClient { + client_: grpcWeb.AbstractClientBase; + hostname_: string; + credentials_: null | { [index: string]: string; }; + options_: null | { [index: string]: any; }; + + constructor (hostname: string, + credentials?: null | { [index: string]: string; }, + options?: null | { [index: string]: any; }) { + if (!options) options = {}; + if (!credentials) credentials = {}; + options['format'] = 'text'; + + this.client_ = new grpcWeb.GrpcWebClientBase(options); + this.hostname_ = hostname; + this.credentials_ = credentials; + this.options_ = options; + } + + methodInfoAccountExists = new grpcWeb.MethodDescriptor( + '/io.bisq.protobuffer.Account/AccountExists', + grpcWeb.MethodType.UNARY, + grpc_pb.AccountExistsRequest, + grpc_pb.AccountExistsReply, + (request: grpc_pb.AccountExistsRequest) => { + return request.serializeBinary(); + }, + grpc_pb.AccountExistsReply.deserializeBinary + ); + + accountExists( + request: grpc_pb.AccountExistsRequest, + metadata: grpcWeb.Metadata | null): Promise; + + accountExists( + request: grpc_pb.AccountExistsRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: grpc_pb.AccountExistsReply) => void): grpcWeb.ClientReadableStream; + + accountExists( + request: grpc_pb.AccountExistsRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: grpc_pb.AccountExistsReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Account/AccountExists', + request, + metadata || {}, + this.methodInfoAccountExists, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Account/AccountExists', + request, + metadata || {}, + this.methodInfoAccountExists); + } + + methodInfoIsAccountOpen = new grpcWeb.MethodDescriptor( + '/io.bisq.protobuffer.Account/IsAccountOpen', + grpcWeb.MethodType.UNARY, + grpc_pb.IsAccountOpenRequest, + grpc_pb.IsAccountOpenReply, + (request: grpc_pb.IsAccountOpenRequest) => { + return request.serializeBinary(); + }, + grpc_pb.IsAccountOpenReply.deserializeBinary + ); + + isAccountOpen( + request: grpc_pb.IsAccountOpenRequest, + metadata: grpcWeb.Metadata | null): Promise; + + isAccountOpen( + request: grpc_pb.IsAccountOpenRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: grpc_pb.IsAccountOpenReply) => void): grpcWeb.ClientReadableStream; + + isAccountOpen( + request: grpc_pb.IsAccountOpenRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: grpc_pb.IsAccountOpenReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Account/IsAccountOpen', + request, + metadata || {}, + this.methodInfoIsAccountOpen, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Account/IsAccountOpen', + request, + metadata || {}, + this.methodInfoIsAccountOpen); + } + + methodInfoCreateAccount = new grpcWeb.MethodDescriptor( + '/io.bisq.protobuffer.Account/CreateAccount', + grpcWeb.MethodType.UNARY, + grpc_pb.CreateAccountRequest, + grpc_pb.CreateAccountReply, + (request: grpc_pb.CreateAccountRequest) => { + return request.serializeBinary(); + }, + grpc_pb.CreateAccountReply.deserializeBinary + ); + + createAccount( + request: grpc_pb.CreateAccountRequest, + metadata: grpcWeb.Metadata | null): Promise; + + createAccount( + request: grpc_pb.CreateAccountRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: grpc_pb.CreateAccountReply) => void): grpcWeb.ClientReadableStream; + + createAccount( + request: grpc_pb.CreateAccountRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: grpc_pb.CreateAccountReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Account/CreateAccount', + request, + metadata || {}, + this.methodInfoCreateAccount, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Account/CreateAccount', + request, + metadata || {}, + this.methodInfoCreateAccount); + } + + methodInfoOpenAccount = new grpcWeb.MethodDescriptor( + '/io.bisq.protobuffer.Account/OpenAccount', + grpcWeb.MethodType.UNARY, + grpc_pb.OpenAccountRequest, + grpc_pb.OpenAccountReply, + (request: grpc_pb.OpenAccountRequest) => { + return request.serializeBinary(); + }, + grpc_pb.OpenAccountReply.deserializeBinary + ); + + openAccount( + request: grpc_pb.OpenAccountRequest, + metadata: grpcWeb.Metadata | null): Promise; + + openAccount( + request: grpc_pb.OpenAccountRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: grpc_pb.OpenAccountReply) => void): grpcWeb.ClientReadableStream; + + openAccount( + request: grpc_pb.OpenAccountRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: grpc_pb.OpenAccountReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Account/OpenAccount', + request, + metadata || {}, + this.methodInfoOpenAccount, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Account/OpenAccount', + request, + metadata || {}, + this.methodInfoOpenAccount); + } + + methodInfoCloseAccount = new grpcWeb.MethodDescriptor( + '/io.bisq.protobuffer.Account/CloseAccount', + grpcWeb.MethodType.UNARY, + grpc_pb.CloseAccountRequest, + grpc_pb.CloseAccountReply, + (request: grpc_pb.CloseAccountRequest) => { + return request.serializeBinary(); + }, + grpc_pb.CloseAccountReply.deserializeBinary + ); + + closeAccount( + request: grpc_pb.CloseAccountRequest, + metadata: grpcWeb.Metadata | null): Promise; + + closeAccount( + request: grpc_pb.CloseAccountRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: grpc_pb.CloseAccountReply) => void): grpcWeb.ClientReadableStream; + + closeAccount( + request: grpc_pb.CloseAccountRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: grpc_pb.CloseAccountReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Account/CloseAccount', + request, + metadata || {}, + this.methodInfoCloseAccount, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Account/CloseAccount', + request, + metadata || {}, + this.methodInfoCloseAccount); + } + + methodInfoBackupAccount = new grpcWeb.MethodDescriptor( + '/io.bisq.protobuffer.Account/BackupAccount', + grpcWeb.MethodType.UNARY, + grpc_pb.BackupAccountRequest, + grpc_pb.BackupAccountReply, + (request: grpc_pb.BackupAccountRequest) => { + return request.serializeBinary(); + }, + grpc_pb.BackupAccountReply.deserializeBinary + ); + + backupAccount( + request: grpc_pb.BackupAccountRequest, + metadata: grpcWeb.Metadata | null): Promise; + + backupAccount( + request: grpc_pb.BackupAccountRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: grpc_pb.BackupAccountReply) => void): grpcWeb.ClientReadableStream; + + backupAccount( + request: grpc_pb.BackupAccountRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: grpc_pb.BackupAccountReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Account/BackupAccount', + request, + metadata || {}, + this.methodInfoBackupAccount, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Account/BackupAccount', + request, + metadata || {}, + this.methodInfoBackupAccount); + } + + methodInfoDeleteAccount = new grpcWeb.MethodDescriptor( + '/io.bisq.protobuffer.Account/DeleteAccount', + grpcWeb.MethodType.UNARY, + grpc_pb.DeleteAccountRequest, + grpc_pb.DeleteAccountReply, + (request: grpc_pb.DeleteAccountRequest) => { + return request.serializeBinary(); + }, + grpc_pb.DeleteAccountReply.deserializeBinary + ); + + deleteAccount( + request: grpc_pb.DeleteAccountRequest, + metadata: grpcWeb.Metadata | null): Promise; + + deleteAccount( + request: grpc_pb.DeleteAccountRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: grpc_pb.DeleteAccountReply) => void): grpcWeb.ClientReadableStream; + + deleteAccount( + request: grpc_pb.DeleteAccountRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: grpc_pb.DeleteAccountReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Account/DeleteAccount', + request, + metadata || {}, + this.methodInfoDeleteAccount, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Account/DeleteAccount', + request, + metadata || {}, + this.methodInfoDeleteAccount); + } + + methodInfoChangePassword = new grpcWeb.MethodDescriptor( + '/io.bisq.protobuffer.Account/ChangePassword', + grpcWeb.MethodType.UNARY, + grpc_pb.ChangePasswordRequest, + grpc_pb.ChangePasswordReply, + (request: grpc_pb.ChangePasswordRequest) => { + return request.serializeBinary(); + }, + grpc_pb.ChangePasswordReply.deserializeBinary + ); + + changePassword( + request: grpc_pb.ChangePasswordRequest, + metadata: grpcWeb.Metadata | null): Promise; + + changePassword( + request: grpc_pb.ChangePasswordRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: grpc_pb.ChangePasswordReply) => void): grpcWeb.ClientReadableStream; + + changePassword( + request: grpc_pb.ChangePasswordRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: grpc_pb.ChangePasswordReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Account/ChangePassword', + request, + metadata || {}, + this.methodInfoChangePassword, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Account/ChangePassword', + request, + metadata || {}, + this.methodInfoChangePassword); + } + +} + export class HelpClient { client_: grpcWeb.AbstractClientBase; hostname_: string; diff --git a/src/protobuf/grpc_pb.d.ts b/src/protobuf/grpc_pb.d.ts index f4edf260..dd58e073 100644 --- a/src/protobuf/grpc_pb.d.ts +++ b/src/protobuf/grpc_pb.d.ts @@ -39,6 +39,250 @@ export namespace RegisterDisputeAgentReply { } } +export class AccountExistsRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AccountExistsRequest.AsObject; + static toObject(includeInstance: boolean, msg: AccountExistsRequest): AccountExistsRequest.AsObject; + static serializeBinaryToWriter(message: AccountExistsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AccountExistsRequest; + static deserializeBinaryFromReader(message: AccountExistsRequest, reader: jspb.BinaryReader): AccountExistsRequest; +} + +export namespace AccountExistsRequest { + export type AsObject = { + } +} + +export class AccountExistsReply extends jspb.Message { + getAccountExists(): boolean; + setAccountExists(value: boolean): AccountExistsReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AccountExistsReply.AsObject; + static toObject(includeInstance: boolean, msg: AccountExistsReply): AccountExistsReply.AsObject; + static serializeBinaryToWriter(message: AccountExistsReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AccountExistsReply; + static deserializeBinaryFromReader(message: AccountExistsReply, reader: jspb.BinaryReader): AccountExistsReply; +} + +export namespace AccountExistsReply { + export type AsObject = { + accountExists: boolean, + } +} + +export class IsAccountOpenRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): IsAccountOpenRequest.AsObject; + static toObject(includeInstance: boolean, msg: IsAccountOpenRequest): IsAccountOpenRequest.AsObject; + static serializeBinaryToWriter(message: IsAccountOpenRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): IsAccountOpenRequest; + static deserializeBinaryFromReader(message: IsAccountOpenRequest, reader: jspb.BinaryReader): IsAccountOpenRequest; +} + +export namespace IsAccountOpenRequest { + export type AsObject = { + } +} + +export class IsAccountOpenReply extends jspb.Message { + getIsAccountOpen(): boolean; + setIsAccountOpen(value: boolean): IsAccountOpenReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): IsAccountOpenReply.AsObject; + static toObject(includeInstance: boolean, msg: IsAccountOpenReply): IsAccountOpenReply.AsObject; + static serializeBinaryToWriter(message: IsAccountOpenReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): IsAccountOpenReply; + static deserializeBinaryFromReader(message: IsAccountOpenReply, reader: jspb.BinaryReader): IsAccountOpenReply; +} + +export namespace IsAccountOpenReply { + export type AsObject = { + isAccountOpen: boolean, + } +} + +export class CreateAccountRequest extends jspb.Message { + getPassword(): string; + setPassword(value: string): CreateAccountRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateAccountRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreateAccountRequest): CreateAccountRequest.AsObject; + static serializeBinaryToWriter(message: CreateAccountRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateAccountRequest; + static deserializeBinaryFromReader(message: CreateAccountRequest, reader: jspb.BinaryReader): CreateAccountRequest; +} + +export namespace CreateAccountRequest { + export type AsObject = { + password: string, + } +} + +export class CreateAccountReply extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateAccountReply.AsObject; + static toObject(includeInstance: boolean, msg: CreateAccountReply): CreateAccountReply.AsObject; + static serializeBinaryToWriter(message: CreateAccountReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateAccountReply; + static deserializeBinaryFromReader(message: CreateAccountReply, reader: jspb.BinaryReader): CreateAccountReply; +} + +export namespace CreateAccountReply { + export type AsObject = { + } +} + +export class OpenAccountRequest extends jspb.Message { + getPassword(): string; + setPassword(value: string): OpenAccountRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OpenAccountRequest.AsObject; + static toObject(includeInstance: boolean, msg: OpenAccountRequest): OpenAccountRequest.AsObject; + static serializeBinaryToWriter(message: OpenAccountRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OpenAccountRequest; + static deserializeBinaryFromReader(message: OpenAccountRequest, reader: jspb.BinaryReader): OpenAccountRequest; +} + +export namespace OpenAccountRequest { + export type AsObject = { + password: string, + } +} + +export class OpenAccountReply extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OpenAccountReply.AsObject; + static toObject(includeInstance: boolean, msg: OpenAccountReply): OpenAccountReply.AsObject; + static serializeBinaryToWriter(message: OpenAccountReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OpenAccountReply; + static deserializeBinaryFromReader(message: OpenAccountReply, reader: jspb.BinaryReader): OpenAccountReply; +} + +export namespace OpenAccountReply { + export type AsObject = { + } +} + +export class CloseAccountRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CloseAccountRequest.AsObject; + static toObject(includeInstance: boolean, msg: CloseAccountRequest): CloseAccountRequest.AsObject; + static serializeBinaryToWriter(message: CloseAccountRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CloseAccountRequest; + static deserializeBinaryFromReader(message: CloseAccountRequest, reader: jspb.BinaryReader): CloseAccountRequest; +} + +export namespace CloseAccountRequest { + export type AsObject = { + } +} + +export class CloseAccountReply extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CloseAccountReply.AsObject; + static toObject(includeInstance: boolean, msg: CloseAccountReply): CloseAccountReply.AsObject; + static serializeBinaryToWriter(message: CloseAccountReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CloseAccountReply; + static deserializeBinaryFromReader(message: CloseAccountReply, reader: jspb.BinaryReader): CloseAccountReply; +} + +export namespace CloseAccountReply { + export type AsObject = { + } +} + +export class BackupAccountRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BackupAccountRequest.AsObject; + static toObject(includeInstance: boolean, msg: BackupAccountRequest): BackupAccountRequest.AsObject; + static serializeBinaryToWriter(message: BackupAccountRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BackupAccountRequest; + static deserializeBinaryFromReader(message: BackupAccountRequest, reader: jspb.BinaryReader): BackupAccountRequest; +} + +export namespace BackupAccountRequest { + export type AsObject = { + } +} + +export class BackupAccountReply extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BackupAccountReply.AsObject; + static toObject(includeInstance: boolean, msg: BackupAccountReply): BackupAccountReply.AsObject; + static serializeBinaryToWriter(message: BackupAccountReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BackupAccountReply; + static deserializeBinaryFromReader(message: BackupAccountReply, reader: jspb.BinaryReader): BackupAccountReply; +} + +export namespace BackupAccountReply { + export type AsObject = { + } +} + +export class DeleteAccountRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteAccountRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteAccountRequest): DeleteAccountRequest.AsObject; + static serializeBinaryToWriter(message: DeleteAccountRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteAccountRequest; + static deserializeBinaryFromReader(message: DeleteAccountRequest, reader: jspb.BinaryReader): DeleteAccountRequest; +} + +export namespace DeleteAccountRequest { + export type AsObject = { + } +} + +export class DeleteAccountReply extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteAccountReply.AsObject; + static toObject(includeInstance: boolean, msg: DeleteAccountReply): DeleteAccountReply.AsObject; + static serializeBinaryToWriter(message: DeleteAccountReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteAccountReply; + static deserializeBinaryFromReader(message: DeleteAccountReply, reader: jspb.BinaryReader): DeleteAccountReply; +} + +export namespace DeleteAccountReply { + export type AsObject = { + } +} + +export class ChangePasswordRequest extends jspb.Message { + getPassword(): string; + setPassword(value: string): ChangePasswordRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ChangePasswordRequest.AsObject; + static toObject(includeInstance: boolean, msg: ChangePasswordRequest): ChangePasswordRequest.AsObject; + static serializeBinaryToWriter(message: ChangePasswordRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ChangePasswordRequest; + static deserializeBinaryFromReader(message: ChangePasswordRequest, reader: jspb.BinaryReader): ChangePasswordRequest; +} + +export namespace ChangePasswordRequest { + export type AsObject = { + password: string, + } +} + +export class ChangePasswordReply extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ChangePasswordReply.AsObject; + static toObject(includeInstance: boolean, msg: ChangePasswordReply): ChangePasswordReply.AsObject; + static serializeBinaryToWriter(message: ChangePasswordReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ChangePasswordReply; + static deserializeBinaryFromReader(message: ChangePasswordReply, reader: jspb.BinaryReader): ChangePasswordReply; +} + +export namespace ChangePasswordReply { + export type AsObject = { + } +} + export class GetMethodHelpRequest extends jspb.Message { getMethodName(): string; setMethodName(value: string): GetMethodHelpRequest; diff --git a/src/protobuf/grpc_pb.js b/src/protobuf/grpc_pb.js index df32af2f..b998419e 100644 --- a/src/protobuf/grpc_pb.js +++ b/src/protobuf/grpc_pb.js @@ -17,23 +17,35 @@ var global = Function('return this')(); var pb_pb = require('./pb_pb.js'); goog.object.extend(proto, pb_pb); +goog.exportSymbol('proto.io.bisq.protobuffer.AccountExistsReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.AccountExistsRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.AddressBalanceInfo', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.AvailabilityResultWithDescription', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.BackupAccountReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.BackupAccountRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.BalancesInfo', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.BtcBalanceInfo', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.CancelOfferReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.CancelOfferRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.ChangePasswordReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.ChangePasswordRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.CloseAccountReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.CloseAccountRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.ConfirmPaymentStartedReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.ContractInfo', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.CreateAccountReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.CreateAccountRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.CreateOfferReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.CreateOfferRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.CreatePaymentAccountReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.CreatePaymentAccountRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.DeleteAccountReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.DeleteAccountRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetAddressBalanceReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetAddressBalanceRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetBalancesReply', null, global); @@ -70,6 +82,8 @@ goog.exportSymbol('proto.io.bisq.protobuffer.GetTxFeeRateReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetTxFeeRateRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetVersionReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetVersionRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.IsAccountOpenReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.IsAccountOpenRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.KeepFundsReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.KeepFundsRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.LockWalletReply', null, global); @@ -77,6 +91,8 @@ goog.exportSymbol('proto.io.bisq.protobuffer.LockWalletRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.MarketPriceReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.MarketPriceRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.OfferInfo', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.OpenAccountReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.OpenAccountRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.PaymentAccountPayloadInfo', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.RegisterDisputeAgentReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.RegisterDisputeAgentRequest', null, global); @@ -144,6 +160,342 @@ if (goog.DEBUG && !COMPILED) { */ proto.io.bisq.protobuffer.RegisterDisputeAgentReply.displayName = 'proto.io.bisq.protobuffer.RegisterDisputeAgentReply'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.AccountExistsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.AccountExistsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.AccountExistsRequest.displayName = 'proto.io.bisq.protobuffer.AccountExistsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.AccountExistsReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.AccountExistsReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.AccountExistsReply.displayName = 'proto.io.bisq.protobuffer.AccountExistsReply'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.IsAccountOpenRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.IsAccountOpenRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.IsAccountOpenRequest.displayName = 'proto.io.bisq.protobuffer.IsAccountOpenRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.IsAccountOpenReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.IsAccountOpenReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.IsAccountOpenReply.displayName = 'proto.io.bisq.protobuffer.IsAccountOpenReply'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.CreateAccountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.CreateAccountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.CreateAccountRequest.displayName = 'proto.io.bisq.protobuffer.CreateAccountRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.CreateAccountReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.CreateAccountReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.CreateAccountReply.displayName = 'proto.io.bisq.protobuffer.CreateAccountReply'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.OpenAccountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.OpenAccountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.OpenAccountRequest.displayName = 'proto.io.bisq.protobuffer.OpenAccountRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.OpenAccountReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.OpenAccountReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.OpenAccountReply.displayName = 'proto.io.bisq.protobuffer.OpenAccountReply'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.CloseAccountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.CloseAccountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.CloseAccountRequest.displayName = 'proto.io.bisq.protobuffer.CloseAccountRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.CloseAccountReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.CloseAccountReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.CloseAccountReply.displayName = 'proto.io.bisq.protobuffer.CloseAccountReply'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.BackupAccountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.BackupAccountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.BackupAccountRequest.displayName = 'proto.io.bisq.protobuffer.BackupAccountRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.BackupAccountReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.BackupAccountReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.BackupAccountReply.displayName = 'proto.io.bisq.protobuffer.BackupAccountReply'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.DeleteAccountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.DeleteAccountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.DeleteAccountRequest.displayName = 'proto.io.bisq.protobuffer.DeleteAccountRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.DeleteAccountReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.DeleteAccountReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.DeleteAccountReply.displayName = 'proto.io.bisq.protobuffer.DeleteAccountReply'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.ChangePasswordRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.ChangePasswordRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.ChangePasswordRequest.displayName = 'proto.io.bisq.protobuffer.ChangePasswordRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.ChangePasswordReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.ChangePasswordReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.ChangePasswordReply.displayName = 'proto.io.bisq.protobuffer.ChangePasswordReply'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -2151,6 +2503,1767 @@ proto.io.bisq.protobuffer.RegisterDisputeAgentReply.serializeBinaryToWriter = fu +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.AccountExistsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.AccountExistsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.AccountExistsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.AccountExistsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.io.bisq.protobuffer.AccountExistsRequest} + */ +proto.io.bisq.protobuffer.AccountExistsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.AccountExistsRequest; + return proto.io.bisq.protobuffer.AccountExistsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.AccountExistsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.AccountExistsRequest} + */ +proto.io.bisq.protobuffer.AccountExistsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.AccountExistsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.AccountExistsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.AccountExistsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.AccountExistsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.AccountExistsReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.AccountExistsReply.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.AccountExistsReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.AccountExistsReply.toObject = function(includeInstance, msg) { + var f, obj = { + accountExists: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.io.bisq.protobuffer.AccountExistsReply} + */ +proto.io.bisq.protobuffer.AccountExistsReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.AccountExistsReply; + return proto.io.bisq.protobuffer.AccountExistsReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.AccountExistsReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.AccountExistsReply} + */ +proto.io.bisq.protobuffer.AccountExistsReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setAccountExists(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.AccountExistsReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.AccountExistsReply.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.AccountExistsReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.AccountExistsReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAccountExists(); + if (f) { + writer.writeBool( + 1, + f + ); + } +}; + + +/** + * optional bool account_exists = 1; + * @return {boolean} + */ +proto.io.bisq.protobuffer.AccountExistsReply.prototype.getAccountExists = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.AccountExistsReply} returns this + */ +proto.io.bisq.protobuffer.AccountExistsReply.prototype.setAccountExists = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.IsAccountOpenRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.IsAccountOpenRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.IsAccountOpenRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.IsAccountOpenRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.io.bisq.protobuffer.IsAccountOpenRequest} + */ +proto.io.bisq.protobuffer.IsAccountOpenRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.IsAccountOpenRequest; + return proto.io.bisq.protobuffer.IsAccountOpenRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.IsAccountOpenRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.IsAccountOpenRequest} + */ +proto.io.bisq.protobuffer.IsAccountOpenRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.IsAccountOpenRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.IsAccountOpenRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.IsAccountOpenRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.IsAccountOpenRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.IsAccountOpenReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.IsAccountOpenReply.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.IsAccountOpenReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.IsAccountOpenReply.toObject = function(includeInstance, msg) { + var f, obj = { + isAccountOpen: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.io.bisq.protobuffer.IsAccountOpenReply} + */ +proto.io.bisq.protobuffer.IsAccountOpenReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.IsAccountOpenReply; + return proto.io.bisq.protobuffer.IsAccountOpenReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.IsAccountOpenReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.IsAccountOpenReply} + */ +proto.io.bisq.protobuffer.IsAccountOpenReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsAccountOpen(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.IsAccountOpenReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.IsAccountOpenReply.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.IsAccountOpenReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.IsAccountOpenReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIsAccountOpen(); + if (f) { + writer.writeBool( + 1, + f + ); + } +}; + + +/** + * optional bool is_account_open = 1; + * @return {boolean} + */ +proto.io.bisq.protobuffer.IsAccountOpenReply.prototype.getIsAccountOpen = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.IsAccountOpenReply} returns this + */ +proto.io.bisq.protobuffer.IsAccountOpenReply.prototype.setIsAccountOpen = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.CreateAccountRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.CreateAccountRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.CreateAccountRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CreateAccountRequest.toObject = function(includeInstance, msg) { + var f, obj = { + password: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.io.bisq.protobuffer.CreateAccountRequest} + */ +proto.io.bisq.protobuffer.CreateAccountRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.CreateAccountRequest; + return proto.io.bisq.protobuffer.CreateAccountRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.CreateAccountRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.CreateAccountRequest} + */ +proto.io.bisq.protobuffer.CreateAccountRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setPassword(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.CreateAccountRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.CreateAccountRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.CreateAccountRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CreateAccountRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPassword(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string password = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.CreateAccountRequest.prototype.getPassword = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.CreateAccountRequest} returns this + */ +proto.io.bisq.protobuffer.CreateAccountRequest.prototype.setPassword = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.CreateAccountReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.CreateAccountReply.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.CreateAccountReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CreateAccountReply.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.io.bisq.protobuffer.CreateAccountReply} + */ +proto.io.bisq.protobuffer.CreateAccountReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.CreateAccountReply; + return proto.io.bisq.protobuffer.CreateAccountReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.CreateAccountReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.CreateAccountReply} + */ +proto.io.bisq.protobuffer.CreateAccountReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.CreateAccountReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.CreateAccountReply.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.CreateAccountReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CreateAccountReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.OpenAccountRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.OpenAccountRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.OpenAccountRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.OpenAccountRequest.toObject = function(includeInstance, msg) { + var f, obj = { + password: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.io.bisq.protobuffer.OpenAccountRequest} + */ +proto.io.bisq.protobuffer.OpenAccountRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.OpenAccountRequest; + return proto.io.bisq.protobuffer.OpenAccountRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.OpenAccountRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.OpenAccountRequest} + */ +proto.io.bisq.protobuffer.OpenAccountRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setPassword(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.OpenAccountRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.OpenAccountRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.OpenAccountRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.OpenAccountRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPassword(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string password = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.OpenAccountRequest.prototype.getPassword = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.OpenAccountRequest} returns this + */ +proto.io.bisq.protobuffer.OpenAccountRequest.prototype.setPassword = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.OpenAccountReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.OpenAccountReply.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.OpenAccountReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.OpenAccountReply.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.io.bisq.protobuffer.OpenAccountReply} + */ +proto.io.bisq.protobuffer.OpenAccountReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.OpenAccountReply; + return proto.io.bisq.protobuffer.OpenAccountReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.OpenAccountReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.OpenAccountReply} + */ +proto.io.bisq.protobuffer.OpenAccountReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.OpenAccountReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.OpenAccountReply.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.OpenAccountReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.OpenAccountReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.CloseAccountRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.CloseAccountRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.CloseAccountRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CloseAccountRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.io.bisq.protobuffer.CloseAccountRequest} + */ +proto.io.bisq.protobuffer.CloseAccountRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.CloseAccountRequest; + return proto.io.bisq.protobuffer.CloseAccountRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.CloseAccountRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.CloseAccountRequest} + */ +proto.io.bisq.protobuffer.CloseAccountRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.CloseAccountRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.CloseAccountRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.CloseAccountRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CloseAccountRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.CloseAccountReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.CloseAccountReply.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.CloseAccountReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CloseAccountReply.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.io.bisq.protobuffer.CloseAccountReply} + */ +proto.io.bisq.protobuffer.CloseAccountReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.CloseAccountReply; + return proto.io.bisq.protobuffer.CloseAccountReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.CloseAccountReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.CloseAccountReply} + */ +proto.io.bisq.protobuffer.CloseAccountReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.CloseAccountReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.CloseAccountReply.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.CloseAccountReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CloseAccountReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.BackupAccountRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.BackupAccountRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.BackupAccountRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BackupAccountRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.io.bisq.protobuffer.BackupAccountRequest} + */ +proto.io.bisq.protobuffer.BackupAccountRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.BackupAccountRequest; + return proto.io.bisq.protobuffer.BackupAccountRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.BackupAccountRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.BackupAccountRequest} + */ +proto.io.bisq.protobuffer.BackupAccountRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.BackupAccountRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.BackupAccountRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.BackupAccountRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BackupAccountRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.BackupAccountReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.BackupAccountReply.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.BackupAccountReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BackupAccountReply.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.io.bisq.protobuffer.BackupAccountReply} + */ +proto.io.bisq.protobuffer.BackupAccountReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.BackupAccountReply; + return proto.io.bisq.protobuffer.BackupAccountReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.BackupAccountReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.BackupAccountReply} + */ +proto.io.bisq.protobuffer.BackupAccountReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.BackupAccountReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.BackupAccountReply.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.BackupAccountReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BackupAccountReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.DeleteAccountRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.DeleteAccountRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.DeleteAccountRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.DeleteAccountRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.io.bisq.protobuffer.DeleteAccountRequest} + */ +proto.io.bisq.protobuffer.DeleteAccountRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.DeleteAccountRequest; + return proto.io.bisq.protobuffer.DeleteAccountRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.DeleteAccountRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.DeleteAccountRequest} + */ +proto.io.bisq.protobuffer.DeleteAccountRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.DeleteAccountRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.DeleteAccountRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.DeleteAccountRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.DeleteAccountRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.DeleteAccountReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.DeleteAccountReply.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.DeleteAccountReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.DeleteAccountReply.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.io.bisq.protobuffer.DeleteAccountReply} + */ +proto.io.bisq.protobuffer.DeleteAccountReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.DeleteAccountReply; + return proto.io.bisq.protobuffer.DeleteAccountReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.DeleteAccountReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.DeleteAccountReply} + */ +proto.io.bisq.protobuffer.DeleteAccountReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.DeleteAccountReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.DeleteAccountReply.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.DeleteAccountReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.DeleteAccountReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.ChangePasswordRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.ChangePasswordRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.ChangePasswordRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ChangePasswordRequest.toObject = function(includeInstance, msg) { + var f, obj = { + password: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.io.bisq.protobuffer.ChangePasswordRequest} + */ +proto.io.bisq.protobuffer.ChangePasswordRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.ChangePasswordRequest; + return proto.io.bisq.protobuffer.ChangePasswordRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.ChangePasswordRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.ChangePasswordRequest} + */ +proto.io.bisq.protobuffer.ChangePasswordRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setPassword(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.ChangePasswordRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.ChangePasswordRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.ChangePasswordRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ChangePasswordRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPassword(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string password = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.ChangePasswordRequest.prototype.getPassword = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.ChangePasswordRequest} returns this + */ +proto.io.bisq.protobuffer.ChangePasswordRequest.prototype.setPassword = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.ChangePasswordReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.ChangePasswordReply.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.ChangePasswordReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ChangePasswordReply.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.io.bisq.protobuffer.ChangePasswordReply} + */ +proto.io.bisq.protobuffer.ChangePasswordReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.ChangePasswordReply; + return proto.io.bisq.protobuffer.ChangePasswordReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.ChangePasswordReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.ChangePasswordReply} + */ +proto.io.bisq.protobuffer.ChangePasswordReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.ChangePasswordReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.ChangePasswordReply.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.ChangePasswordReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ChangePasswordReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. diff --git a/src/protobuf/pb_pb.d.ts b/src/protobuf/pb_pb.d.ts index 8667accd..5ef1cc71 100644 --- a/src/protobuf/pb_pb.d.ts +++ b/src/protobuf/pb_pb.d.ts @@ -4097,6 +4097,11 @@ export class DisputeResult extends jspb.Message { hasChatMessage(): boolean; clearChatMessage(): DisputeResult; + getArbitratorSignature(): Uint8Array | string; + getArbitratorSignature_asU8(): Uint8Array; + getArbitratorSignature_asB64(): string; + setArbitratorSignature(value: Uint8Array | string): DisputeResult; + getBuyerPayoutAmount(): number; setBuyerPayoutAmount(value: number): DisputeResult; @@ -4139,6 +4144,7 @@ export namespace DisputeResult { screenCast: boolean, summaryNotes: string, chatMessage?: ChatMessage.AsObject, + arbitratorSignature: Uint8Array | string, buyerPayoutAmount: number, sellerPayoutAmount: number, arbitratorPubKey: Uint8Array | string, diff --git a/src/protobuf/pb_pb.js b/src/protobuf/pb_pb.js index 8c1b97da..651b9bd8 100644 --- a/src/protobuf/pb_pb.js +++ b/src/protobuf/pb_pb.js @@ -35281,6 +35281,7 @@ proto.io.bisq.protobuffer.DisputeResult.toObject = function(includeInstance, msg screenCast: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), summaryNotes: jspb.Message.getFieldWithDefault(msg, 8, ""), chatMessage: (f = msg.getChatMessage()) && proto.io.bisq.protobuffer.ChatMessage.toObject(includeInstance, f), + arbitratorSignature: msg.getArbitratorSignature_asB64(), buyerPayoutAmount: jspb.Message.getFieldWithDefault(msg, 11, 0), sellerPayoutAmount: jspb.Message.getFieldWithDefault(msg, 12, 0), arbitratorPubKey: msg.getArbitratorPubKey_asB64(), @@ -35361,6 +35362,10 @@ proto.io.bisq.protobuffer.DisputeResult.deserializeBinaryFromReader = function(m reader.readMessage(value,proto.io.bisq.protobuffer.ChatMessage.deserializeBinaryFromReader); msg.setChatMessage(value); break; + case 10: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setArbitratorSignature(value); + break; case 11: var value = /** @type {number} */ (reader.readInt64()); msg.setBuyerPayoutAmount(value); @@ -35482,6 +35487,13 @@ proto.io.bisq.protobuffer.DisputeResult.serializeBinaryToWriter = function(messa proto.io.bisq.protobuffer.ChatMessage.serializeBinaryToWriter ); } + f = message.getArbitratorSignature_asU8(); + if (f.length > 0) { + writer.writeBytes( + 10, + f + ); + } f = message.getBuyerPayoutAmount(); if (f !== 0) { writer.writeInt64( @@ -35743,6 +35755,48 @@ proto.io.bisq.protobuffer.DisputeResult.prototype.hasChatMessage = function() { }; +/** + * optional bytes arbitrator_signature = 10; + * @return {!(string|Uint8Array)} + */ +proto.io.bisq.protobuffer.DisputeResult.prototype.getArbitratorSignature = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +}; + + +/** + * optional bytes arbitrator_signature = 10; + * This is a type-conversion wrapper around `getArbitratorSignature()` + * @return {string} + */ +proto.io.bisq.protobuffer.DisputeResult.prototype.getArbitratorSignature_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getArbitratorSignature())); +}; + + +/** + * optional bytes arbitrator_signature = 10; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getArbitratorSignature()` + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.DisputeResult.prototype.getArbitratorSignature_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getArbitratorSignature())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.DisputeResult} returns this + */ +proto.io.bisq.protobuffer.DisputeResult.prototype.setArbitratorSignature = function(value) { + return jspb.Message.setProto3BytesField(this, 10, value); +}; + + /** * optional int64 buyer_payout_amount = 11; * @return {number}