diff --git a/README.md b/README.md index 8645cb65..77f68aac 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,21 @@ A proof of concept to fetch and render data from Haveno's daemon in ReactJS. This application is a basic [create-react-app](https://github.com/facebook/create-react-app) with typescript using [grpc-web](https://github.com/grpc/grpc-web) and a proxy ([envoy](https://www.envoyproxy.io/)) for Haveno's gRPC daemon. -# How to Run in a Browser +## How to Run in a Browser -1. [Run a local Haveno test network](https://github.com/woodser/haveno#running-a-local-haveno-test-network) except replace `./bisq-desktop` with `./bisq-daemon` when starting the arbitrator, Alice, and Bob. +1. [Run a local Haveno test network](https://github.com/woodser/haveno#running-a-local-haveno-test-network) except replace `./bisq-desktop` with `./bisq-daemon` when starting Alice at port 9999. 2. `git clone https://github.com/haveno-dex/haveno-ui-poc` -3. `./bin/build_protobuf.sh` 4. Start envoy with the config in ./config/envoy.yaml
Example: `docker run --rm -it -v ~/git/haveno-ui-poc/config/envoy.yaml:/envoy.yaml -p 8080:8080 envoyproxy/envoy-dev:8a2143613d43d17d1eb35a24b4a4a4c432215606 -c /envoy.yaml` 5. `npm install` 6. `npm start` to open http://localhost:3000 in a browser -7. Confirm that the Haveno daemon version is displayed (1.3.9). \ No newline at end of file +7. Confirm that the Haveno daemon version is displayed (1.6.2) + +

+
+

+ +## How to Update the Protobuf Client + +1. Copy grpc.proto and pb.proto from Haveno's [protobuf definitions](https://github.com/haveno-dex/haveno/tree/master/proto/src/main/proto) to ./config. +2. `./bin/build_protobuf.sh` \ No newline at end of file diff --git a/config/grpc.proto b/config/grpc.proto index 49f47e15..e387aa90 100644 --- a/config/grpc.proto +++ b/config/grpc.proto @@ -40,15 +40,56 @@ message RegisterDisputeAgentRequest { message RegisterDisputeAgentReply { } +/////////////////////////////////////////////////////////////////////////////////////////// +// Help +/////////////////////////////////////////////////////////////////////////////////////////// + +service Help { + rpc GetMethodHelp (GetMethodHelpRequest) returns (GetMethodHelpReply) { + } +} + +message GetMethodHelpRequest { + string methodName = 1; +} + +message GetMethodHelpReply { + string methodHelp = 1; +} + /////////////////////////////////////////////////////////////////////////////////////////// // Offers /////////////////////////////////////////////////////////////////////////////////////////// service Offers { + rpc GetOffer (GetOfferRequest) returns (GetOfferReply) { + } + rpc GetMyOffer (GetMyOfferRequest) returns (GetMyOfferReply) { + } rpc GetOffers (GetOffersRequest) returns (GetOffersReply) { } + rpc GetMyOffers (GetMyOffersRequest) returns (GetMyOffersReply) { + } rpc CreateOffer (CreateOfferRequest) returns (CreateOfferReply) { } + rpc CancelOffer (CancelOfferRequest) returns (CancelOfferReply) { + } +} + +message GetOfferRequest { + string id = 1; +} + +message GetOfferReply { + OfferInfo offer = 1; +} + +message GetMyOfferRequest { + string id = 1; +} + +message GetMyOfferReply { + OfferInfo offer = 1; } message GetOffersRequest { @@ -60,6 +101,15 @@ message GetOffersReply { repeated OfferInfo offers = 1; } +message GetMyOffersRequest { + string direction = 1; + string currencyCode = 2; +} + +message GetMyOffersReply { + repeated OfferInfo offers = 1; +} + message CreateOfferRequest { string currencyCode = 1; string direction = 2; @@ -69,13 +119,22 @@ message CreateOfferRequest { uint64 amount = 6; uint64 minAmount = 7; double buyerSecurityDeposit = 8; - string paymentAccountId = 9; + uint64 triggerPrice = 9; + string paymentAccountId = 10; + string makerFeeCurrencyCode = 11; } message CreateOfferReply { OfferInfo offer = 1; } +message CancelOfferRequest { + string id = 1; +} + +message CancelOfferReply { +} + message OfferInfo { string id = 1; string direction = 2; @@ -87,12 +146,24 @@ message OfferInfo { uint64 volume = 8; uint64 minVolume = 9; uint64 buyerSecurityDeposit = 10; - string paymentAccountId = 11; // only used when creating offer - string paymentMethodId = 12; - string paymentMethodShortName = 13; - string baseCurrencyCode = 14; - string counterCurrencyCode = 15; - uint64 date = 16; + uint64 triggerPrice = 11; + bool isCurrencyForMakerFeeBtc = 12; + string paymentAccountId = 13; + string paymentMethodId = 14; + string paymentMethodShortName = 15; + string baseCurrencyCode = 16; + string counterCurrencyCode = 17; + uint64 date = 18; + string state = 19; + uint64 sellerSecurityDeposit = 20; + string offerFeePaymentTxId = 21; + uint64 txFee = 22; + uint64 makerFee = 23; +} + +message AvailabilityResultWithDescription { + AvailabilityResult availabilityResult = 1; + string description = 2; } /////////////////////////////////////////////////////////////////////////////////////////// @@ -104,17 +175,22 @@ service PaymentAccounts { } rpc GetPaymentAccounts (GetPaymentAccountsRequest) returns (GetPaymentAccountsReply) { } + rpc GetPaymentMethods (GetPaymentMethodsRequest) returns (GetPaymentMethodsReply) { + } + rpc GetPaymentAccountForm (GetPaymentAccountFormRequest) returns (GetPaymentAccountFormReply) { + } + rpc CreateCryptoCurrencyPaymentAccount (CreateCryptoCurrencyPaymentAccountRequest) returns (CreateCryptoCurrencyPaymentAccountReply) { + } + rpc GetCryptoCurrencyPaymentMethods (GetCryptoCurrencyPaymentMethodsRequest) returns (GetCryptoCurrencyPaymentMethodsReply) { + } } message CreatePaymentAccountRequest { - string paymentMethodId = 1; - string accountName = 2; - string accountNumber = 3; - // TODO Support all currencies. Maybe add a repeated and if only one is used its a singletonList. - string currencyCode = 4; + string paymentAccountForm = 1; } message CreatePaymentAccountReply { + PaymentAccount paymentAccount = 1; } message GetPaymentAccountsRequest { @@ -124,6 +200,39 @@ message GetPaymentAccountsReply { repeated PaymentAccount paymentAccounts = 1; } +message GetPaymentMethodsRequest { +} + +message GetPaymentMethodsReply { + repeated PaymentMethod paymentMethods = 1; +} + +message GetPaymentAccountFormRequest { + string paymentMethodId = 1; +} + +message GetPaymentAccountFormReply { + string paymentAccountFormJson = 1; +} + +message CreateCryptoCurrencyPaymentAccountRequest { + string accountName = 1; + string currencyCode = 2; + string address = 3; + bool tradeInstant = 4; +} + +message CreateCryptoCurrencyPaymentAccountReply { + PaymentAccount paymentAccount = 1; +} + +message GetCryptoCurrencyPaymentMethodsRequest { +} + +message GetCryptoCurrencyPaymentMethodsReply { + repeated PaymentMethod paymentMethods = 1; +} + /////////////////////////////////////////////////////////////////////////////////////////// // Price /////////////////////////////////////////////////////////////////////////////////////////// @@ -154,7 +263,165 @@ message GetTradeStatisticsRequest { } message GetTradeStatisticsReply { - repeated TradeStatistics2 TradeStatistics = 1; + repeated TradeStatistics3 TradeStatistics = 1; +} + +/////////////////////////////////////////////////////////////////////////////////////////// +// Shutdown +/////////////////////////////////////////////////////////////////////////////////////////// + +service ShutdownServer { + rpc Stop (StopRequest) returns (StopReply) { + } +} + +message StopRequest { +} + +message StopReply { +} + +/////////////////////////////////////////////////////////////////////////////////////////// +// Trades +/////////////////////////////////////////////////////////////////////////////////////////// + +service Trades { + rpc GetTrade (GetTradeRequest) returns (GetTradeReply) { + } + rpc TakeOffer (TakeOfferRequest) returns (TakeOfferReply) { + } + rpc ConfirmPaymentStarted (ConfirmPaymentStartedRequest) returns (ConfirmPaymentStartedReply) { + } + rpc ConfirmPaymentReceived (ConfirmPaymentReceivedRequest) returns (ConfirmPaymentReceivedReply) { + } + rpc KeepFunds (KeepFundsRequest) returns (KeepFundsReply) { + } + rpc WithdrawFunds (WithdrawFundsRequest) returns (WithdrawFundsReply) { + } +} + +message TakeOfferRequest { + string offerId = 1; + string paymentAccountId = 2; + string takerFeeCurrencyCode = 3; +} + +message TakeOfferReply { + TradeInfo trade = 1; + AvailabilityResultWithDescription failureReason = 2; +} + +message ConfirmPaymentStartedRequest { + string tradeId = 1; +} + +message ConfirmPaymentStartedReply { +} + +message ConfirmPaymentReceivedRequest { + string tradeId = 1; +} + +message ConfirmPaymentReceivedReply { +} + +message GetTradeRequest { + string tradeId = 1; +} + +message GetTradeReply { + TradeInfo trade = 1; +} + +message KeepFundsRequest { + string tradeId = 1; +} + +message KeepFundsReply { +} + +message WithdrawFundsRequest { + string tradeId = 1; + string address = 2; + string memo = 3; +} + +message WithdrawFundsReply { +} + +message TradeInfo { + OfferInfo offer = 1; + string tradeId = 2; + string shortId = 3; + uint64 date = 4; + string role = 5; + uint64 txFeeAsLong = 7; + uint64 takerFeeAsLong = 8; + string takerFeeTxId = 9; + reserved 10; // was depositTxId + string payoutTxId = 11; + uint64 tradeAmountAsLong = 12; + uint64 tradePrice = 13; + string tradingPeerNodeAddress = 14; + string state = 15; + string phase = 16; + string tradePeriodState = 17; + bool isDepositPublished = 18; + bool isDepositConfirmed = 19; + bool isFiatSent = 20; + bool isFiatReceived = 21; + bool isPayoutPublished = 22; + bool isWithdrawn = 23; + string contractAsJson = 24; + ContractInfo contract = 25; + + string makerDepositTxId = 100; + string takerDepositTxId = 101; +} + +message ContractInfo { + string buyerNodeAddress = 1; + string sellerNodeAddress = 2; + reserved 3; // was mediatorNodeAddress + reserved 4; // was refundAgendNodeAddress + bool isBuyerMakerAndSellerTaker = 5; + string makerAccountId = 6; + string takerAccountId = 7; + PaymentAccountPayloadInfo makerPaymentAccountPayload = 8; + PaymentAccountPayloadInfo takerPaymentAccountPayload = 9; + string makerPayoutAddressString = 10; + string takerPayoutAddressString = 11; + uint64 lockTime = 12; + + string arbitratorNodeAddress = 100; +} + +message PaymentAccountPayloadInfo { + string id = 1; + string paymentMethodId = 2; + string address = 3; +} + +/////////////////////////////////////////////////////////////////////////////////////////// +// Transactions +/////////////////////////////////////////////////////////////////////////////////////////// + +message TxFeeRateInfo { + bool useCustomTxFeeRate = 1; + uint64 customTxFeeRate = 2; + uint64 feeServiceRate = 3; + uint64 lastFeeServiceRequestTs = 4; + uint64 minFeeServiceRate = 5; +} + +message TxInfo { + string txId = 1; + uint64 inputSum = 2; + uint64 outputSum = 3; + uint64 fee = 4; + int32 size = 5; + bool isPending = 6; + string memo = 7; } /////////////////////////////////////////////////////////////////////////////////////////// @@ -162,10 +429,26 @@ message GetTradeStatisticsReply { /////////////////////////////////////////////////////////////////////////////////////////// service Wallets { - rpc GetBalance (GetBalanceRequest) returns (GetBalanceReply) { + rpc GetBalances (GetBalancesRequest) returns (GetBalancesReply) { } rpc GetAddressBalance (GetAddressBalanceRequest) returns (GetAddressBalanceReply) { } + rpc GetUnusedBsqAddress (GetUnusedBsqAddressRequest) returns (GetUnusedBsqAddressReply) { + } + rpc SendBsq (SendBsqRequest) returns (SendBsqReply) { + } + rpc SendBtc (SendBtcRequest) returns (SendBtcReply) { + } + rpc VerifyBsqSentToAddress (VerifyBsqSentToAddressRequest) returns (VerifyBsqSentToAddressReply) { + } + rpc GetTxFeeRate (GetTxFeeRateRequest) returns (GetTxFeeRateReply) { + } + rpc SetTxFeeRatePreference (SetTxFeeRatePreferenceRequest) returns (SetTxFeeRatePreferenceReply) { + } + rpc UnsetTxFeeRatePreference (UnsetTxFeeRatePreferenceRequest) returns (UnsetTxFeeRatePreferenceReply) { + } + rpc GetTransaction (GetTransactionRequest) returns (GetTransactionReply) { + } rpc GetFundingAddresses (GetFundingAddressesRequest) returns (GetFundingAddressesReply) { } rpc SetWalletPassword (SetWalletPasswordRequest) returns (SetWalletPasswordReply) { @@ -178,11 +461,12 @@ service Wallets { } } -message GetBalanceRequest { +message GetBalancesRequest { + string currencyCode = 1; } -message GetBalanceReply { - uint64 balance = 1; +message GetBalancesReply { + BalancesInfo balances = 1; } message GetAddressBalanceRequest { @@ -193,6 +477,73 @@ message GetAddressBalanceReply { AddressBalanceInfo addressBalanceInfo = 1; } +message GetUnusedBsqAddressRequest { +} + +message GetUnusedBsqAddressReply { + string address = 1; +} + +message SendBsqRequest { + string address = 1; + string amount = 2; + string txFeeRate = 3; +} + +message SendBsqReply { + TxInfo txInfo = 1; +} + +message SendBtcRequest { + string address = 1; + string amount = 2; + string txFeeRate = 3; + string memo = 4; +} + +message SendBtcReply { + TxInfo txInfo = 1; +} + +message VerifyBsqSentToAddressRequest { + string address = 1; + string amount = 2; +} + +message VerifyBsqSentToAddressReply { + bool isAmountReceived = 1; +} + +message GetTxFeeRateRequest { +} + +message GetTxFeeRateReply { + TxFeeRateInfo txFeeRateInfo = 1; +} + +message SetTxFeeRatePreferenceRequest { + uint64 txFeeRatePreference = 1; +} + +message SetTxFeeRatePreferenceReply { + TxFeeRateInfo txFeeRateInfo = 1; +} + +message UnsetTxFeeRatePreferenceRequest { +} + +message UnsetTxFeeRatePreferenceReply { + TxFeeRateInfo txFeeRateInfo = 1; +} + +message GetTransactionRequest { + string txId = 1; +} + +message GetTransactionReply { + TxInfo txInfo = 1; +} + message GetFundingAddressesRequest { } @@ -229,10 +580,35 @@ message UnlockWalletRequest { message UnlockWalletReply { } +message BalancesInfo { + // Field names are shortened for readability's sake, i.e., + // balancesInfo.getBtc().getAvailableBalance() is cleaner than + // balancesInfo.getBtcBalanceInfo().getAvailableBalance(). + BsqBalanceInfo bsq = 1; + BtcBalanceInfo btc = 2; +} + +message BsqBalanceInfo { + uint64 availableConfirmedBalance = 1; + uint64 unverifiedBalance = 2; + uint64 unconfirmedChangeBalance = 3; + uint64 lockedForVotingBalance = 4; + uint64 lockupBondsBalance = 5; + uint64 unlockingBondsBalance = 6; +} + +message BtcBalanceInfo { + uint64 availableBalance = 1; + uint64 reservedBalance = 2; + uint64 totalAvailableBalance = 3; + uint64 lockedBalance = 4; +} + message AddressBalanceInfo { string address = 1; int64 balance = 2; int64 numConfirmations = 3; + bool isAddressUnused = 4; } /////////////////////////////////////////////////////////////////////////////////////////// @@ -250,4 +626,3 @@ message GetVersionRequest { message GetVersionReply { string version = 1; } - diff --git a/config/pb.proto b/config/pb.proto index 0b62e437..8d0aec26 100644 --- a/config/pb.proto +++ b/config/pb.proto @@ -78,6 +78,9 @@ message NetworkEnvelope { RefreshTradeStateRequest refresh_trade_state_request = 50 [deprecated = true]; TraderSignedWitnessMessage trader_signed_witness_message = 51 [deprecated = true]; + + GetInventoryRequest get_inventory_request = 52; + GetInventoryResponse get_inventory_response = 53; InitTradeRequest init_trade_request = 1001; MakerReadyToFundMultisigRequest maker_ready_to_fund_multisig_request = 1002; @@ -146,6 +149,16 @@ message Pong { int32 request_nonce = 1; } +// Inventory + +message GetInventoryRequest { + string version = 1; +} + +message GetInventoryResponse { + map inventory = 1; +} + // offer message OfferAvailabilityRequest { @@ -154,6 +167,7 @@ message OfferAvailabilityRequest { int64 takers_trade_price = 3; repeated int32 supported_capabilities = 4; string uid = 5; + bool is_taker_api_user = 6; } message OfferAvailabilityResponse { @@ -334,13 +348,15 @@ message DelayedPayoutTxSignatureRequest { string trade_id = 2; NodeAddress sender_node_address = 3; bytes delayed_payout_tx = 4; + bytes delayed_payout_tx_seller_signature = 5; } message DelayedPayoutTxSignatureResponse { string uid = 1; string trade_id = 2; NodeAddress sender_node_address = 3; - bytes delayed_payout_tx_signature = 4; + bytes delayed_payout_tx_buyer_signature = 4; + bytes deposit_tx = 5; } message DepositTxAndDelayedPayoutTxMessage { @@ -355,10 +371,11 @@ message DepositTxMessage { string uid = 1; string trade_id = 2; NodeAddress sender_node_address = 3; - PubKeyRing pub_key_ring = 4; - reserved 5; // WAS: bytes deposit_tx = 5; - string trade_fee_tx_id = 6; - string deposit_tx_id = 7; + bytes deposit_tx_without_witnesses = 4; + PubKeyRing pub_key_ring = 100; + reserved 5; // WAS: bytes deposit_tx = 101; + string trade_fee_tx_id = 102; + string deposit_tx_id = 103; } message PeerPublishedDelayedPayoutTxMessage { @@ -608,9 +625,7 @@ message StoragePayload { Mediator mediator = 3; Filter filter = 4; - // not used anymore from v0.6 on. But leave it for receiving TradeStatistics objects from older - // versions and convert it to TradeStatistics2 objects. - TradeStatistics trade_statistics = 5 [deprecated = true]; + // TradeStatistics trade_statistics = 5 [deprecated = true]; Removed in v.1.4.0 MailboxStoragePayload mailbox_storage_payload = 6; OfferPayload offer_payload = 7; @@ -622,10 +637,11 @@ message StoragePayload { message PersistableNetworkPayload { oneof message { AccountAgeWitness account_age_witness = 1; - TradeStatistics2 trade_statistics2 = 2; + TradeStatistics2 trade_statistics2 = 2 [deprecated = true]; ProposalPayload proposal_payload = 3; BlindVotePayload blind_vote_payload = 4; SignedWitness signed_witness = 5; + TradeStatistics3 trade_statistics3 = 6; } } @@ -656,6 +672,28 @@ message DataAndSeqNrPair { int32 sequence_number = 2; } +message MailboxMessageList { + repeated MailboxItem mailbox_item = 1; +} + +message RemovedPayloadsMap { + map date_by_hashes = 1; +} + +message IgnoredMailboxMap { + map data = 1; +} + +message MailboxItem { + ProtectedMailboxStorageEntry protected_mailbox_storage_entry = 1; + DecryptedMessageWithPubKey decrypted_message_with_pub_key = 2; +} + +message DecryptedMessageWithPubKey { + NetworkEnvelope network_envelope = 1; + bytes signature_pub_key_bytes = 2; +} + // misc message PrivateNotificationPayload { @@ -681,6 +719,7 @@ message Alert { string signature_as_base64 = 4; bytes owner_pub_key_bytes = 5; map extra_data = 6; + bool is_pre_release_info = 7; } message Arbitrator { @@ -722,7 +761,7 @@ message RefundAgent { } message Filter { - repeated string banned_node_address = 1; + repeated string node_addresses_banned_from_trading = 1; repeated string banned_offer_ids = 2; repeated PaymentAccountFilter banned_payment_accounts = 3; string signature_as_base64 = 4; @@ -746,48 +785,48 @@ message Filter { string signer_pub_key_as_hex = 22; repeated string bannedPrivilegedDevPubKeys = 23; bool disable_auto_conf = 24; + repeated string banned_auto_conf_explorers = 25; + repeated string node_addresses_banned_from_network = 26; + bool disable_api = 27; + bool disable_mempool_validation = 28; } -// not used anymore from v0.6 on. But leave it for receiving TradeStatistics objects from older -// versions and convert it to TradeStatistics2 objects. -message TradeStatistics { - string base_currency = 1; - string counter_currency = 2; - OfferPayload.Direction direction = 3; - int64 trade_price = 4; - int64 trade_amount = 5; - int64 trade_date = 6; - string payment_method_id = 7; - int64 offer_date = 8; - bool offer_use_market_based_price = 9; - double offer_market_price_margin = 10; - int64 offer_amount = 11; - int64 offer_min_amount = 12; - string offer_id = 13; - string deposit_tx_id = 14; // Old - string deposit_tx_id = 14; - bytes signature_pub_key_bytes = 15; - map extra_data = 16; -} - +// Deprecated message TradeStatistics2 { - string base_currency = 1; - string counter_currency = 2; - OfferPayload.Direction direction = 3; - int64 trade_price = 4; - int64 trade_amount = 5; - int64 trade_date = 6; - string payment_method_id = 7; - int64 offer_date = 8; - bool offer_use_market_based_price = 9; - double offer_market_price_margin = 10; - int64 offer_amount = 11; - int64 offer_min_amount = 12; - string offer_id = 13; - reserved 14; // Old - string deposit_tx_id = 14; - bytes hash = 15; - map extra_data = 16; - string maker_deposit_tx_id = 1000; - string taker_deposit_tx_id = 1001; + string base_currency = 1 [deprecated = true]; + string counter_currency = 2 [deprecated = true]; + OfferPayload.Direction direction = 3 [deprecated = true]; + int64 trade_price = 4 [deprecated = true]; + int64 trade_amount = 5 [deprecated = true]; + int64 trade_date = 6 [deprecated = true]; + string payment_method_id = 7 [deprecated = true]; + int64 offer_date = 8 [deprecated = true]; + bool offer_use_market_based_price = 9 [deprecated = true]; + double offer_market_price_margin = 10 [deprecated = true]; + int64 offer_amount = 11 [deprecated = true]; + int64 offer_min_amount = 12 [deprecated = true]; + string offer_id = 13 [deprecated = true]; + string deposit_tx_id = 14 [deprecated = true]; + bytes hash = 15 [deprecated = true]; + map extra_data = 16 [deprecated = true]; + string maker_deposit_tx_id = 100; + string taker_deposit_tx_id = 101; +} + +message TradeStatistics3 { + string currency = 1; + int64 price = 2; + int64 amount = 3; + string payment_method = 4; + int64 date = 5; + reserved 6; // was string mediator = 6; + reserved 7; // was string refund_agent = 7; + bytes hash = 8; + map extra_data = 9; + + string arbitrator = 100; + string maker_deposit_tx_id = 101; + string taker_deposit_tx_id = 102; } message MailboxStoragePayload { @@ -871,6 +910,13 @@ message SignedWitness { message Dispute { + enum State { + NEEDS_UPGRADE = 0; + NEW = 1; + OPEN = 2; + REOPENED = 3; + CLOSED = 4; + } string trade_id = 1; string id = 2; int32 trader_id = 3; @@ -898,7 +944,10 @@ message Dispute { string mediators_dispute_result = 25; string delayed_payout_tx_id = 26; string donation_address_of_delayed_payout_tx = 27; - bool is_opener = 28; + State state = 28; + int64 trade_period_end = 29; + map extra_data = 30; + bool is_opener = 100; } message Attachment { @@ -991,6 +1040,9 @@ enum AvailabilityResult { USER_IGNORED = 8; MISSING_MANDATORY_CAPABILITY = 9; NO_REFUND_AGENTS = 10; + UNCONF_TX_LIMIT_HIT = 11; + MAKER_DENIED_API_USER = 12; + PRICE_CHECK_FAILED = 13; } /////////////////////////////////////////////////////////////////////////////////////////// @@ -1027,6 +1079,10 @@ message PaymentAccountPayload { AdvancedCashAccountPayload advanced_cash_account_payload = 26; InstantCryptoCurrencyAccountPayload instant_crypto_currency_account_payload = 27; JapanBankAccountPayload japan_bank_account_payload = 28; + TransferwiseAccountPayload Transferwise_account_payload = 29; + AustraliaPayidPayload australia_payid_payload = 30; + AmazonGiftCardAccountPayload amazon_gift_card_account_payload = 31; + CashByMailAccountPayload cash_by_mail_account_payload = 32; } map exclude_from_json_data = 15; } @@ -1094,6 +1150,11 @@ message JapanBankAccountPayload { string bank_account_number = 7; } +message AustraliaPayidPayload { + string bank_account_name = 1; + string payid = 2; +} + message SpecificBanksAccountPayload { repeated string accepted_banks = 1; } @@ -1129,6 +1190,11 @@ message WesternUnionAccountPayload { string email = 4; } +message AmazonGiftCardAccountPayload { + string email_or_mobile_nr = 1; + string country_code = 2; +} + message SepaAccountPayload { string holder_name = 1; string iban = 2; @@ -1219,6 +1285,12 @@ message F2FAccountPayload { string extra_info = 3; } +message CashByMailAccountPayload { + string postal_address = 1; + string contact = 2; + string extra_info = 3; +} + message PromptPayAccountPayload { string prompt_pay_id = 1; } @@ -1227,6 +1299,10 @@ message AdvancedCashAccountPayload { string account_nr = 1; } +message TransferwiseAccountPayload { + string email = 1; +} + /////////////////////////////////////////////////////////////////////////////////////////// // PersistableEnvelope /////////////////////////////////////////////////////////////////////////////////////////// @@ -1252,7 +1328,7 @@ message PersistableEnvelope { // BsqState bsq_state = 12; // not used but as other non-dao data have a higher index number we leave it to make clear that we cannot change following indexes AccountAgeWitnessStore account_age_witness_store = 13; - TradeStatistics2Store trade_statistics2_store = 14; + TradeStatistics2Store trade_statistics2_store = 14 [deprecated = true]; // PersistableNetworkPayloadList persistable_network_payload_list = 15; // long deprecated & migration away from it is already done @@ -1271,8 +1347,12 @@ message PersistableEnvelope { SignedWitnessStore signed_witness_store = 28; MediationDisputeList mediation_dispute_list = 29; RefundDisputeList refund_dispute_list = 30; + TradeStatistics3Store trade_statistics3_store = 31; + MailboxMessageList mailbox_message_list = 32; + IgnoredMailboxMap ignored_mailbox_map = 33; + RemovedPayloadsMap removed_payloads_map = 34; - XmrAddressEntryList xmr_address_entry_list = 31; + XmrAddressEntryList xmr_address_entry_list = 100; } } @@ -1313,8 +1393,13 @@ message SignedWitnessStore { } // We use a list not a hash map to save disc space. The hash can be calculated from the payload anyway +// Deprecated message TradeStatistics2Store { - repeated TradeStatistics2 items = 1; + repeated TradeStatistics2 items = 1 [deprecated = true]; +} + +message TradeStatistics3Store { + repeated TradeStatistics3 items = 1; } message PeerList { @@ -1341,6 +1426,7 @@ message AddressEntry { bytes pub_key = 9; bytes pub_key_hash = 10; int64 coin_locked_in_multi_sig = 11; + bool segwit = 12; } message XmrAddressEntryList { @@ -1410,6 +1496,7 @@ message OpenOffer { NodeAddress arbitrator_node_address = 3; NodeAddress mediator_node_address = 4; NodeAddress refund_agent_node_address = 5; + int64 trigger_price = 6; } message Tradable { @@ -1529,13 +1616,14 @@ message Trade { int64 last_refresh_request_date = 36 [deprecated = true]; string counter_currency_extra_data = 37; string asset_tx_proof_result = 38; // name of AssetTxProofResult enum + string uid = 39; - NodeAddress taker_node_address = 1000; // TODO (woodser): re-order? need to reset trades - PubKeyRing taker_pub_key_ring = 1001; - string taker_deposit_tx_id = 1002; - NodeAddress maker_node_address = 1003; - PubKeyRing maker_pub_key_ring = 1004; - string maker_deposit_tx_id = 1005; + NodeAddress taker_node_address = 100; + PubKeyRing taker_pub_key_ring = 101; + string taker_deposit_tx_id = 102; + NodeAddress maker_node_address = 103; + PubKeyRing maker_pub_key_ring = 104; + string maker_deposit_tx_id = 105; } message BuyerAsMakerTrade { @@ -1675,7 +1763,7 @@ message PreferencesPayload { bool use_tor_for_bitcoin_j = 12; bool show_own_offers_in_offer_book = 13; TradeCurrency preferred_trade_currency = 14; - int64 withdrawal_tx_fee_in_bytes = 15; + int64 withdrawal_tx_fee_in_vbytes = 15; bool use_custom_withdrawal_tx_fee = 16; double max_price_distance_in_percent = 17; string offer_book_chart_screen_currency_code = 18; @@ -1717,6 +1805,11 @@ message PreferencesPayload { int32 css_theme = 54; bool tac_accepted_v120 = 55; repeated AutoConfirmSettings auto_confirm_settings = 56; + double bsq_average_trim_threshold = 57; + bool hide_non_account_payment_methods = 58; + bool show_offers_matching_my_accounts = 59; + bool deny_api_taker = 60; + bool notify_on_pre_release = 61; } message AutoConfirmSettings { @@ -1747,6 +1840,7 @@ message UserPayload { repeated MarketAlertFilter market_alert_filters = 13; repeated RefundAgent accepted_refund_agents = 14; RefundAgent registered_refund_agent = 15; + map cookie = 16; } /////////////////////////////////////////////////////////////////////////////////////////// @@ -1895,6 +1989,8 @@ enum ScriptType { WITNESS_V0_KEYHASH = 6; WITNESS_V0_SCRIPTHASH = 7; NONSTANDARD = 8; + WITNESS_UNKNOWN = 9; + WITNESS_V1_TAPROOT = 10; } message PubKeyScript { diff --git a/haveno-ui-poc.png b/haveno-ui-poc.png new file mode 100644 index 00000000..06d0a648 Binary files /dev/null and b/haveno-ui-poc.png differ diff --git a/src/grpc_grpc_web_pb.js b/src/grpc_grpc_web_pb.js index 71d3dcd7..222cc457 100644 --- a/src/grpc_grpc_web_pb.js +++ b/src/grpc_grpc_web_pb.js @@ -154,6 +154,138 @@ proto.io.bisq.protobuffer.DisputeAgentsPromiseClient.prototype.registerDisputeAg }; +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.HelpClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.HelpPromiseClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.GetMethodHelpRequest, + * !proto.io.bisq.protobuffer.GetMethodHelpReply>} + */ +const methodDescriptor_Help_GetMethodHelp = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Help/GetMethodHelp', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.GetMethodHelpRequest, + proto.io.bisq.protobuffer.GetMethodHelpReply, + /** + * @param {!proto.io.bisq.protobuffer.GetMethodHelpRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetMethodHelpReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.GetMethodHelpRequest, + * !proto.io.bisq.protobuffer.GetMethodHelpReply>} + */ +const methodInfo_Help_GetMethodHelp = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.GetMethodHelpReply, + /** + * @param {!proto.io.bisq.protobuffer.GetMethodHelpRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetMethodHelpReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.GetMethodHelpRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetMethodHelpReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.HelpClient.prototype.getMethodHelp = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Help/GetMethodHelp', + request, + metadata || {}, + methodDescriptor_Help_GetMethodHelp, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.GetMethodHelpRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.HelpPromiseClient.prototype.getMethodHelp = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Help/GetMethodHelp', + request, + metadata || {}, + methodDescriptor_Help_GetMethodHelp); +}; + + /** * @param {string} hostname * @param {?Object} credentials @@ -206,6 +338,166 @@ proto.io.bisq.protobuffer.OffersPromiseClient = }; +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.GetOfferRequest, + * !proto.io.bisq.protobuffer.GetOfferReply>} + */ +const methodDescriptor_Offers_GetOffer = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Offers/GetOffer', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.GetOfferRequest, + proto.io.bisq.protobuffer.GetOfferReply, + /** + * @param {!proto.io.bisq.protobuffer.GetOfferRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetOfferReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.GetOfferRequest, + * !proto.io.bisq.protobuffer.GetOfferReply>} + */ +const methodInfo_Offers_GetOffer = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.GetOfferReply, + /** + * @param {!proto.io.bisq.protobuffer.GetOfferRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetOfferReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.GetOfferRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetOfferReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.OffersClient.prototype.getOffer = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Offers/GetOffer', + request, + metadata || {}, + methodDescriptor_Offers_GetOffer, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.GetOfferRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.OffersPromiseClient.prototype.getOffer = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Offers/GetOffer', + request, + metadata || {}, + methodDescriptor_Offers_GetOffer); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.GetMyOfferRequest, + * !proto.io.bisq.protobuffer.GetMyOfferReply>} + */ +const methodDescriptor_Offers_GetMyOffer = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Offers/GetMyOffer', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.GetMyOfferRequest, + proto.io.bisq.protobuffer.GetMyOfferReply, + /** + * @param {!proto.io.bisq.protobuffer.GetMyOfferRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetMyOfferReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.GetMyOfferRequest, + * !proto.io.bisq.protobuffer.GetMyOfferReply>} + */ +const methodInfo_Offers_GetMyOffer = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.GetMyOfferReply, + /** + * @param {!proto.io.bisq.protobuffer.GetMyOfferRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetMyOfferReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.GetMyOfferRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetMyOfferReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.OffersClient.prototype.getMyOffer = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Offers/GetMyOffer', + request, + metadata || {}, + methodDescriptor_Offers_GetMyOffer, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.GetMyOfferRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.OffersPromiseClient.prototype.getMyOffer = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Offers/GetMyOffer', + request, + metadata || {}, + methodDescriptor_Offers_GetMyOffer); +}; + + /** * @const * @type {!grpc.web.MethodDescriptor< @@ -286,6 +578,86 @@ proto.io.bisq.protobuffer.OffersPromiseClient.prototype.getOffers = }; +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.GetMyOffersRequest, + * !proto.io.bisq.protobuffer.GetMyOffersReply>} + */ +const methodDescriptor_Offers_GetMyOffers = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Offers/GetMyOffers', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.GetMyOffersRequest, + proto.io.bisq.protobuffer.GetMyOffersReply, + /** + * @param {!proto.io.bisq.protobuffer.GetMyOffersRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetMyOffersReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.GetMyOffersRequest, + * !proto.io.bisq.protobuffer.GetMyOffersReply>} + */ +const methodInfo_Offers_GetMyOffers = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.GetMyOffersReply, + /** + * @param {!proto.io.bisq.protobuffer.GetMyOffersRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetMyOffersReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.GetMyOffersRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetMyOffersReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.OffersClient.prototype.getMyOffers = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Offers/GetMyOffers', + request, + metadata || {}, + methodDescriptor_Offers_GetMyOffers, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.GetMyOffersRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.OffersPromiseClient.prototype.getMyOffers = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Offers/GetMyOffers', + request, + metadata || {}, + methodDescriptor_Offers_GetMyOffers); +}; + + /** * @const * @type {!grpc.web.MethodDescriptor< @@ -366,6 +738,86 @@ proto.io.bisq.protobuffer.OffersPromiseClient.prototype.createOffer = }; +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.CancelOfferRequest, + * !proto.io.bisq.protobuffer.CancelOfferReply>} + */ +const methodDescriptor_Offers_CancelOffer = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Offers/CancelOffer', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.CancelOfferRequest, + proto.io.bisq.protobuffer.CancelOfferReply, + /** + * @param {!proto.io.bisq.protobuffer.CancelOfferRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.CancelOfferReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.CancelOfferRequest, + * !proto.io.bisq.protobuffer.CancelOfferReply>} + */ +const methodInfo_Offers_CancelOffer = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.CancelOfferReply, + /** + * @param {!proto.io.bisq.protobuffer.CancelOfferRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.CancelOfferReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.CancelOfferRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.CancelOfferReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.OffersClient.prototype.cancelOffer = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Offers/CancelOffer', + request, + metadata || {}, + methodDescriptor_Offers_CancelOffer, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.CancelOfferRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.OffersPromiseClient.prototype.cancelOffer = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Offers/CancelOffer', + request, + metadata || {}, + methodDescriptor_Offers_CancelOffer); +}; + + /** * @param {string} hostname * @param {?Object} credentials @@ -578,6 +1030,326 @@ proto.io.bisq.protobuffer.PaymentAccountsPromiseClient.prototype.getPaymentAccou }; +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.GetPaymentMethodsRequest, + * !proto.io.bisq.protobuffer.GetPaymentMethodsReply>} + */ +const methodDescriptor_PaymentAccounts_GetPaymentMethods = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.PaymentAccounts/GetPaymentMethods', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.GetPaymentMethodsRequest, + proto.io.bisq.protobuffer.GetPaymentMethodsReply, + /** + * @param {!proto.io.bisq.protobuffer.GetPaymentMethodsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetPaymentMethodsReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.GetPaymentMethodsRequest, + * !proto.io.bisq.protobuffer.GetPaymentMethodsReply>} + */ +const methodInfo_PaymentAccounts_GetPaymentMethods = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.GetPaymentMethodsReply, + /** + * @param {!proto.io.bisq.protobuffer.GetPaymentMethodsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetPaymentMethodsReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.GetPaymentMethodsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetPaymentMethodsReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.PaymentAccountsClient.prototype.getPaymentMethods = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/GetPaymentMethods', + request, + metadata || {}, + methodDescriptor_PaymentAccounts_GetPaymentMethods, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.GetPaymentMethodsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.PaymentAccountsPromiseClient.prototype.getPaymentMethods = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/GetPaymentMethods', + request, + metadata || {}, + methodDescriptor_PaymentAccounts_GetPaymentMethods); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.GetPaymentAccountFormRequest, + * !proto.io.bisq.protobuffer.GetPaymentAccountFormReply>} + */ +const methodDescriptor_PaymentAccounts_GetPaymentAccountForm = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccountForm', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.GetPaymentAccountFormRequest, + proto.io.bisq.protobuffer.GetPaymentAccountFormReply, + /** + * @param {!proto.io.bisq.protobuffer.GetPaymentAccountFormRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetPaymentAccountFormReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.GetPaymentAccountFormRequest, + * !proto.io.bisq.protobuffer.GetPaymentAccountFormReply>} + */ +const methodInfo_PaymentAccounts_GetPaymentAccountForm = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.GetPaymentAccountFormReply, + /** + * @param {!proto.io.bisq.protobuffer.GetPaymentAccountFormRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetPaymentAccountFormReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.GetPaymentAccountFormRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetPaymentAccountFormReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.PaymentAccountsClient.prototype.getPaymentAccountForm = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccountForm', + request, + metadata || {}, + methodDescriptor_PaymentAccounts_GetPaymentAccountForm, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.GetPaymentAccountFormRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.PaymentAccountsPromiseClient.prototype.getPaymentAccountForm = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccountForm', + request, + metadata || {}, + methodDescriptor_PaymentAccounts_GetPaymentAccountForm); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest, + * !proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply>} + */ +const methodDescriptor_PaymentAccounts_CreateCryptoCurrencyPaymentAccount = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.PaymentAccounts/CreateCryptoCurrencyPaymentAccount', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest, + proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply, + /** + * @param {!proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest, + * !proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply>} + */ +const methodInfo_PaymentAccounts_CreateCryptoCurrencyPaymentAccount = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply, + /** + * @param {!proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.PaymentAccountsClient.prototype.createCryptoCurrencyPaymentAccount = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/CreateCryptoCurrencyPaymentAccount', + request, + metadata || {}, + methodDescriptor_PaymentAccounts_CreateCryptoCurrencyPaymentAccount, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.PaymentAccountsPromiseClient.prototype.createCryptoCurrencyPaymentAccount = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/CreateCryptoCurrencyPaymentAccount', + request, + metadata || {}, + methodDescriptor_PaymentAccounts_CreateCryptoCurrencyPaymentAccount); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest, + * !proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply>} + */ +const methodDescriptor_PaymentAccounts_GetCryptoCurrencyPaymentMethods = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.PaymentAccounts/GetCryptoCurrencyPaymentMethods', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest, + proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply, + /** + * @param {!proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest, + * !proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply>} + */ +const methodInfo_PaymentAccounts_GetCryptoCurrencyPaymentMethods = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply, + /** + * @param {!proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.PaymentAccountsClient.prototype.getCryptoCurrencyPaymentMethods = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/GetCryptoCurrencyPaymentMethods', + request, + metadata || {}, + methodDescriptor_PaymentAccounts_GetCryptoCurrencyPaymentMethods, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.PaymentAccountsPromiseClient.prototype.getCryptoCurrencyPaymentMethods = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/GetCryptoCurrencyPaymentMethods', + request, + metadata || {}, + methodDescriptor_PaymentAccounts_GetCryptoCurrencyPaymentMethods); +}; + + /** * @param {string} hostname * @param {?Object} credentials @@ -842,6 +1614,670 @@ proto.io.bisq.protobuffer.GetTradeStatisticsPromiseClient.prototype.getTradeStat }; +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.ShutdownServerClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.ShutdownServerPromiseClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.StopRequest, + * !proto.io.bisq.protobuffer.StopReply>} + */ +const methodDescriptor_ShutdownServer_Stop = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.ShutdownServer/Stop', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.StopRequest, + proto.io.bisq.protobuffer.StopReply, + /** + * @param {!proto.io.bisq.protobuffer.StopRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.StopReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.StopRequest, + * !proto.io.bisq.protobuffer.StopReply>} + */ +const methodInfo_ShutdownServer_Stop = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.StopReply, + /** + * @param {!proto.io.bisq.protobuffer.StopRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.StopReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.StopRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.StopReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.ShutdownServerClient.prototype.stop = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.ShutdownServer/Stop', + request, + metadata || {}, + methodDescriptor_ShutdownServer_Stop, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.StopRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.ShutdownServerPromiseClient.prototype.stop = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.ShutdownServer/Stop', + request, + metadata || {}, + methodDescriptor_ShutdownServer_Stop); +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.TradesClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.TradesPromiseClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.GetTradeRequest, + * !proto.io.bisq.protobuffer.GetTradeReply>} + */ +const methodDescriptor_Trades_GetTrade = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Trades/GetTrade', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.GetTradeRequest, + proto.io.bisq.protobuffer.GetTradeReply, + /** + * @param {!proto.io.bisq.protobuffer.GetTradeRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetTradeReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.GetTradeRequest, + * !proto.io.bisq.protobuffer.GetTradeReply>} + */ +const methodInfo_Trades_GetTrade = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.GetTradeReply, + /** + * @param {!proto.io.bisq.protobuffer.GetTradeRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetTradeReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.GetTradeRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetTradeReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.TradesClient.prototype.getTrade = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Trades/GetTrade', + request, + metadata || {}, + methodDescriptor_Trades_GetTrade, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.GetTradeRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.TradesPromiseClient.prototype.getTrade = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Trades/GetTrade', + request, + metadata || {}, + methodDescriptor_Trades_GetTrade); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.TakeOfferRequest, + * !proto.io.bisq.protobuffer.TakeOfferReply>} + */ +const methodDescriptor_Trades_TakeOffer = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Trades/TakeOffer', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.TakeOfferRequest, + proto.io.bisq.protobuffer.TakeOfferReply, + /** + * @param {!proto.io.bisq.protobuffer.TakeOfferRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.TakeOfferReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.TakeOfferRequest, + * !proto.io.bisq.protobuffer.TakeOfferReply>} + */ +const methodInfo_Trades_TakeOffer = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.TakeOfferReply, + /** + * @param {!proto.io.bisq.protobuffer.TakeOfferRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.TakeOfferReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.TakeOfferRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.TakeOfferReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.TradesClient.prototype.takeOffer = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Trades/TakeOffer', + request, + metadata || {}, + methodDescriptor_Trades_TakeOffer, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.TakeOfferRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.TradesPromiseClient.prototype.takeOffer = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Trades/TakeOffer', + request, + metadata || {}, + methodDescriptor_Trades_TakeOffer); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest, + * !proto.io.bisq.protobuffer.ConfirmPaymentStartedReply>} + */ +const methodDescriptor_Trades_ConfirmPaymentStarted = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Trades/ConfirmPaymentStarted', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest, + proto.io.bisq.protobuffer.ConfirmPaymentStartedReply, + /** + * @param {!proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.ConfirmPaymentStartedReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest, + * !proto.io.bisq.protobuffer.ConfirmPaymentStartedReply>} + */ +const methodInfo_Trades_ConfirmPaymentStarted = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.ConfirmPaymentStartedReply, + /** + * @param {!proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.ConfirmPaymentStartedReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.ConfirmPaymentStartedReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.TradesClient.prototype.confirmPaymentStarted = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Trades/ConfirmPaymentStarted', + request, + metadata || {}, + methodDescriptor_Trades_ConfirmPaymentStarted, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.TradesPromiseClient.prototype.confirmPaymentStarted = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Trades/ConfirmPaymentStarted', + request, + metadata || {}, + methodDescriptor_Trades_ConfirmPaymentStarted); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest, + * !proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply>} + */ +const methodDescriptor_Trades_ConfirmPaymentReceived = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Trades/ConfirmPaymentReceived', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest, + proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply, + /** + * @param {!proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest, + * !proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply>} + */ +const methodInfo_Trades_ConfirmPaymentReceived = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply, + /** + * @param {!proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.TradesClient.prototype.confirmPaymentReceived = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Trades/ConfirmPaymentReceived', + request, + metadata || {}, + methodDescriptor_Trades_ConfirmPaymentReceived, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.TradesPromiseClient.prototype.confirmPaymentReceived = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Trades/ConfirmPaymentReceived', + request, + metadata || {}, + methodDescriptor_Trades_ConfirmPaymentReceived); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.KeepFundsRequest, + * !proto.io.bisq.protobuffer.KeepFundsReply>} + */ +const methodDescriptor_Trades_KeepFunds = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Trades/KeepFunds', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.KeepFundsRequest, + proto.io.bisq.protobuffer.KeepFundsReply, + /** + * @param {!proto.io.bisq.protobuffer.KeepFundsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.KeepFundsReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.KeepFundsRequest, + * !proto.io.bisq.protobuffer.KeepFundsReply>} + */ +const methodInfo_Trades_KeepFunds = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.KeepFundsReply, + /** + * @param {!proto.io.bisq.protobuffer.KeepFundsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.KeepFundsReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.KeepFundsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.KeepFundsReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.TradesClient.prototype.keepFunds = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Trades/KeepFunds', + request, + metadata || {}, + methodDescriptor_Trades_KeepFunds, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.KeepFundsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.TradesPromiseClient.prototype.keepFunds = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Trades/KeepFunds', + request, + metadata || {}, + methodDescriptor_Trades_KeepFunds); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.WithdrawFundsRequest, + * !proto.io.bisq.protobuffer.WithdrawFundsReply>} + */ +const methodDescriptor_Trades_WithdrawFunds = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Trades/WithdrawFunds', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.WithdrawFundsRequest, + proto.io.bisq.protobuffer.WithdrawFundsReply, + /** + * @param {!proto.io.bisq.protobuffer.WithdrawFundsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.WithdrawFundsReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.WithdrawFundsRequest, + * !proto.io.bisq.protobuffer.WithdrawFundsReply>} + */ +const methodInfo_Trades_WithdrawFunds = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.WithdrawFundsReply, + /** + * @param {!proto.io.bisq.protobuffer.WithdrawFundsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.WithdrawFundsReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.WithdrawFundsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.WithdrawFundsReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.TradesClient.prototype.withdrawFunds = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Trades/WithdrawFunds', + request, + metadata || {}, + methodDescriptor_Trades_WithdrawFunds, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.WithdrawFundsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.TradesPromiseClient.prototype.withdrawFunds = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Trades/WithdrawFunds', + request, + metadata || {}, + methodDescriptor_Trades_WithdrawFunds); +}; + + /** * @param {string} hostname * @param {?Object} credentials @@ -897,80 +2333,80 @@ proto.io.bisq.protobuffer.WalletsPromiseClient = /** * @const * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.GetBalanceRequest, - * !proto.io.bisq.protobuffer.GetBalanceReply>} + * !proto.io.bisq.protobuffer.GetBalancesRequest, + * !proto.io.bisq.protobuffer.GetBalancesReply>} */ -const methodDescriptor_Wallets_GetBalance = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/GetBalance', +const methodDescriptor_Wallets_GetBalances = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Wallets/GetBalances', grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.GetBalanceRequest, - proto.io.bisq.protobuffer.GetBalanceReply, + proto.io.bisq.protobuffer.GetBalancesRequest, + proto.io.bisq.protobuffer.GetBalancesReply, /** - * @param {!proto.io.bisq.protobuffer.GetBalanceRequest} request + * @param {!proto.io.bisq.protobuffer.GetBalancesRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.io.bisq.protobuffer.GetBalanceReply.deserializeBinary + proto.io.bisq.protobuffer.GetBalancesReply.deserializeBinary ); /** * @const * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.GetBalanceRequest, - * !proto.io.bisq.protobuffer.GetBalanceReply>} + * !proto.io.bisq.protobuffer.GetBalancesRequest, + * !proto.io.bisq.protobuffer.GetBalancesReply>} */ -const methodInfo_Wallets_GetBalance = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.GetBalanceReply, +const methodInfo_Wallets_GetBalances = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.GetBalancesReply, /** - * @param {!proto.io.bisq.protobuffer.GetBalanceRequest} request + * @param {!proto.io.bisq.protobuffer.GetBalancesRequest} request * @return {!Uint8Array} */ function(request) { return request.serializeBinary(); }, - proto.io.bisq.protobuffer.GetBalanceReply.deserializeBinary + proto.io.bisq.protobuffer.GetBalancesReply.deserializeBinary ); /** - * @param {!proto.io.bisq.protobuffer.GetBalanceRequest} request The + * @param {!proto.io.bisq.protobuffer.GetBalancesRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetBalanceReply)} + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetBalancesReply)} * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} + * @return {!grpc.web.ClientReadableStream|undefined} * The XHR Node Readable Stream */ -proto.io.bisq.protobuffer.WalletsClient.prototype.getBalance = +proto.io.bisq.protobuffer.WalletsClient.prototype.getBalances = function(request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetBalance', + '/io.bisq.protobuffer.Wallets/GetBalances', request, metadata || {}, - methodDescriptor_Wallets_GetBalance, + methodDescriptor_Wallets_GetBalances, callback); }; /** - * @param {!proto.io.bisq.protobuffer.GetBalanceRequest} request The + * @param {!proto.io.bisq.protobuffer.GetBalancesRequest} request The * request proto * @param {?Object} metadata User defined * call metadata - * @return {!Promise} + * @return {!Promise} * Promise that resolves to the response */ -proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.getBalance = +proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.getBalances = function(request, metadata) { return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetBalance', + '/io.bisq.protobuffer.Wallets/GetBalances', request, metadata || {}, - methodDescriptor_Wallets_GetBalance); + methodDescriptor_Wallets_GetBalances); }; @@ -1054,6 +2490,646 @@ proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.getAddressBalance = }; +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest, + * !proto.io.bisq.protobuffer.GetUnusedBsqAddressReply>} + */ +const methodDescriptor_Wallets_GetUnusedBsqAddress = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Wallets/GetUnusedBsqAddress', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest, + proto.io.bisq.protobuffer.GetUnusedBsqAddressReply, + /** + * @param {!proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetUnusedBsqAddressReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest, + * !proto.io.bisq.protobuffer.GetUnusedBsqAddressReply>} + */ +const methodInfo_Wallets_GetUnusedBsqAddress = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.GetUnusedBsqAddressReply, + /** + * @param {!proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetUnusedBsqAddressReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetUnusedBsqAddressReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.WalletsClient.prototype.getUnusedBsqAddress = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetUnusedBsqAddress', + request, + metadata || {}, + methodDescriptor_Wallets_GetUnusedBsqAddress, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.getUnusedBsqAddress = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetUnusedBsqAddress', + request, + metadata || {}, + methodDescriptor_Wallets_GetUnusedBsqAddress); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.SendBsqRequest, + * !proto.io.bisq.protobuffer.SendBsqReply>} + */ +const methodDescriptor_Wallets_SendBsq = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Wallets/SendBsq', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.SendBsqRequest, + proto.io.bisq.protobuffer.SendBsqReply, + /** + * @param {!proto.io.bisq.protobuffer.SendBsqRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.SendBsqReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.SendBsqRequest, + * !proto.io.bisq.protobuffer.SendBsqReply>} + */ +const methodInfo_Wallets_SendBsq = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.SendBsqReply, + /** + * @param {!proto.io.bisq.protobuffer.SendBsqRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.SendBsqReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.SendBsqRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.SendBsqReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.WalletsClient.prototype.sendBsq = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/SendBsq', + request, + metadata || {}, + methodDescriptor_Wallets_SendBsq, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.SendBsqRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.sendBsq = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/SendBsq', + request, + metadata || {}, + methodDescriptor_Wallets_SendBsq); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.SendBtcRequest, + * !proto.io.bisq.protobuffer.SendBtcReply>} + */ +const methodDescriptor_Wallets_SendBtc = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Wallets/SendBtc', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.SendBtcRequest, + proto.io.bisq.protobuffer.SendBtcReply, + /** + * @param {!proto.io.bisq.protobuffer.SendBtcRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.SendBtcReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.SendBtcRequest, + * !proto.io.bisq.protobuffer.SendBtcReply>} + */ +const methodInfo_Wallets_SendBtc = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.SendBtcReply, + /** + * @param {!proto.io.bisq.protobuffer.SendBtcRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.SendBtcReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.SendBtcRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.SendBtcReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.WalletsClient.prototype.sendBtc = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/SendBtc', + request, + metadata || {}, + methodDescriptor_Wallets_SendBtc, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.SendBtcRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.sendBtc = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/SendBtc', + request, + metadata || {}, + methodDescriptor_Wallets_SendBtc); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest, + * !proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply>} + */ +const methodDescriptor_Wallets_VerifyBsqSentToAddress = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Wallets/VerifyBsqSentToAddress', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest, + proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply, + /** + * @param {!proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest, + * !proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply>} + */ +const methodInfo_Wallets_VerifyBsqSentToAddress = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply, + /** + * @param {!proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.WalletsClient.prototype.verifyBsqSentToAddress = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/VerifyBsqSentToAddress', + request, + metadata || {}, + methodDescriptor_Wallets_VerifyBsqSentToAddress, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.verifyBsqSentToAddress = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/VerifyBsqSentToAddress', + request, + metadata || {}, + methodDescriptor_Wallets_VerifyBsqSentToAddress); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.GetTxFeeRateRequest, + * !proto.io.bisq.protobuffer.GetTxFeeRateReply>} + */ +const methodDescriptor_Wallets_GetTxFeeRate = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Wallets/GetTxFeeRate', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.GetTxFeeRateRequest, + proto.io.bisq.protobuffer.GetTxFeeRateReply, + /** + * @param {!proto.io.bisq.protobuffer.GetTxFeeRateRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetTxFeeRateReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.GetTxFeeRateRequest, + * !proto.io.bisq.protobuffer.GetTxFeeRateReply>} + */ +const methodInfo_Wallets_GetTxFeeRate = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.GetTxFeeRateReply, + /** + * @param {!proto.io.bisq.protobuffer.GetTxFeeRateRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetTxFeeRateReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.GetTxFeeRateRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetTxFeeRateReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.WalletsClient.prototype.getTxFeeRate = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetTxFeeRate', + request, + metadata || {}, + methodDescriptor_Wallets_GetTxFeeRate, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.GetTxFeeRateRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.getTxFeeRate = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetTxFeeRate', + request, + metadata || {}, + methodDescriptor_Wallets_GetTxFeeRate); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest, + * !proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply>} + */ +const methodDescriptor_Wallets_SetTxFeeRatePreference = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Wallets/SetTxFeeRatePreference', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest, + proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply, + /** + * @param {!proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest, + * !proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply>} + */ +const methodInfo_Wallets_SetTxFeeRatePreference = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply, + /** + * @param {!proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.WalletsClient.prototype.setTxFeeRatePreference = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/SetTxFeeRatePreference', + request, + metadata || {}, + methodDescriptor_Wallets_SetTxFeeRatePreference, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.setTxFeeRatePreference = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/SetTxFeeRatePreference', + request, + metadata || {}, + methodDescriptor_Wallets_SetTxFeeRatePreference); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest, + * !proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply>} + */ +const methodDescriptor_Wallets_UnsetTxFeeRatePreference = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Wallets/UnsetTxFeeRatePreference', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest, + proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply, + /** + * @param {!proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest, + * !proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply>} + */ +const methodInfo_Wallets_UnsetTxFeeRatePreference = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply, + /** + * @param {!proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.WalletsClient.prototype.unsetTxFeeRatePreference = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/UnsetTxFeeRatePreference', + request, + metadata || {}, + methodDescriptor_Wallets_UnsetTxFeeRatePreference, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.unsetTxFeeRatePreference = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/UnsetTxFeeRatePreference', + request, + metadata || {}, + methodDescriptor_Wallets_UnsetTxFeeRatePreference); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.GetTransactionRequest, + * !proto.io.bisq.protobuffer.GetTransactionReply>} + */ +const methodDescriptor_Wallets_GetTransaction = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Wallets/GetTransaction', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.GetTransactionRequest, + proto.io.bisq.protobuffer.GetTransactionReply, + /** + * @param {!proto.io.bisq.protobuffer.GetTransactionRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetTransactionReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.GetTransactionRequest, + * !proto.io.bisq.protobuffer.GetTransactionReply>} + */ +const methodInfo_Wallets_GetTransaction = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.GetTransactionReply, + /** + * @param {!proto.io.bisq.protobuffer.GetTransactionRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetTransactionReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.GetTransactionRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetTransactionReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.WalletsClient.prototype.getTransaction = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetTransaction', + request, + metadata || {}, + methodDescriptor_Wallets_GetTransaction, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.GetTransactionRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.getTransaction = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetTransaction', + request, + metadata || {}, + methodDescriptor_Wallets_GetTransaction); +}; + + /** * @const * @type {!grpc.web.MethodDescriptor< diff --git a/src/grpc_pb.js b/src/grpc_pb.js index 3ab38fd6..a70481a4 100644 --- a/src/grpc_pb.js +++ b/src/grpc_pb.js @@ -18,37 +18,94 @@ var global = Function('return this')(); var pb_pb = require('./pb_pb.js'); goog.object.extend(proto, pb_pb); goog.exportSymbol('proto.io.bisq.protobuffer.AddressBalanceInfo', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.AvailabilityResultWithDescription', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.BalancesInfo', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.BsqBalanceInfo', 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.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.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.GetAddressBalanceReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetAddressBalanceRequest', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.GetBalanceReply', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.GetBalanceRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetBalancesReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetBalancesRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetFundingAddressesReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetFundingAddressesRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetMethodHelpReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetMethodHelpRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetMyOfferReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetMyOfferRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetMyOffersReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetMyOffersRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetOfferReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetOfferRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetOffersReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetOffersRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetPaymentAccountFormReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetPaymentAccountFormRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetPaymentAccountsReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetPaymentAccountsRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetPaymentMethodsReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetPaymentMethodsRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetTradeReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetTradeRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetTradeStatisticsReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetTradeStatisticsRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetTransactionReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetTransactionRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetTxFeeRateReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetTxFeeRateRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetUnusedBsqAddressReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest', 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.KeepFundsReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.KeepFundsRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.LockWalletReply', null, global); 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.PaymentAccountPayloadInfo', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.RegisterDisputeAgentReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.RegisterDisputeAgentRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.RemoveWalletPasswordReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.RemoveWalletPasswordRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.SendBsqReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.SendBsqRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.SendBtcReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.SendBtcRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.SetWalletPasswordReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.SetWalletPasswordRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.StopReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.StopRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.TakeOfferReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.TakeOfferRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.TradeInfo', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.TxFeeRateInfo', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.TxInfo', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.UnlockWalletReply', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.UnlockWalletRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.WithdrawFundsReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.WithdrawFundsRequest', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -91,6 +148,132 @@ 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.GetMethodHelpRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetMethodHelpRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetMethodHelpRequest.displayName = 'proto.io.bisq.protobuffer.GetMethodHelpRequest'; +} +/** + * 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.GetMethodHelpReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetMethodHelpReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetMethodHelpReply.displayName = 'proto.io.bisq.protobuffer.GetMethodHelpReply'; +} +/** + * 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.GetOfferRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetOfferRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetOfferRequest.displayName = 'proto.io.bisq.protobuffer.GetOfferRequest'; +} +/** + * 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.GetOfferReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetOfferReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetOfferReply.displayName = 'proto.io.bisq.protobuffer.GetOfferReply'; +} +/** + * 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.GetMyOfferRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetMyOfferRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetMyOfferRequest.displayName = 'proto.io.bisq.protobuffer.GetMyOfferRequest'; +} +/** + * 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.GetMyOfferReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetMyOfferReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetMyOfferReply.displayName = 'proto.io.bisq.protobuffer.GetMyOfferReply'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -133,6 +316,48 @@ if (goog.DEBUG && !COMPILED) { */ proto.io.bisq.protobuffer.GetOffersReply.displayName = 'proto.io.bisq.protobuffer.GetOffersReply'; } +/** + * 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.GetMyOffersRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetMyOffersRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetMyOffersRequest.displayName = 'proto.io.bisq.protobuffer.GetMyOffersRequest'; +} +/** + * 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.GetMyOffersReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.GetMyOffersReply.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetMyOffersReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetMyOffersReply.displayName = 'proto.io.bisq.protobuffer.GetMyOffersReply'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -175,6 +400,48 @@ if (goog.DEBUG && !COMPILED) { */ proto.io.bisq.protobuffer.CreateOfferReply.displayName = 'proto.io.bisq.protobuffer.CreateOfferReply'; } +/** + * 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.CancelOfferRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.CancelOfferRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.CancelOfferRequest.displayName = 'proto.io.bisq.protobuffer.CancelOfferRequest'; +} +/** + * 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.CancelOfferReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.CancelOfferReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.CancelOfferReply.displayName = 'proto.io.bisq.protobuffer.CancelOfferReply'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -196,6 +463,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.io.bisq.protobuffer.OfferInfo.displayName = 'proto.io.bisq.protobuffer.OfferInfo'; } +/** + * 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.AvailabilityResultWithDescription = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.AvailabilityResultWithDescription, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.AvailabilityResultWithDescription.displayName = 'proto.io.bisq.protobuffer.AvailabilityResultWithDescription'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -280,6 +568,174 @@ if (goog.DEBUG && !COMPILED) { */ proto.io.bisq.protobuffer.GetPaymentAccountsReply.displayName = 'proto.io.bisq.protobuffer.GetPaymentAccountsReply'; } +/** + * 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.GetPaymentMethodsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetPaymentMethodsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetPaymentMethodsRequest.displayName = 'proto.io.bisq.protobuffer.GetPaymentMethodsRequest'; +} +/** + * 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.GetPaymentMethodsReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.GetPaymentMethodsReply.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetPaymentMethodsReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetPaymentMethodsReply.displayName = 'proto.io.bisq.protobuffer.GetPaymentMethodsReply'; +} +/** + * 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.GetPaymentAccountFormRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetPaymentAccountFormRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetPaymentAccountFormRequest.displayName = 'proto.io.bisq.protobuffer.GetPaymentAccountFormRequest'; +} +/** + * 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.GetPaymentAccountFormReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetPaymentAccountFormReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetPaymentAccountFormReply.displayName = 'proto.io.bisq.protobuffer.GetPaymentAccountFormReply'; +} +/** + * 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.CreateCryptoCurrencyPaymentAccountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest.displayName = 'proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest'; +} +/** + * 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.CreateCryptoCurrencyPaymentAccountReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply.displayName = 'proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply'; +} +/** + * 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.GetCryptoCurrencyPaymentMethodsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest.displayName = 'proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest'; +} +/** + * 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.GetCryptoCurrencyPaymentMethodsReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply.displayName = 'proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -374,16 +830,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.io.bisq.protobuffer.GetBalanceRequest = function(opt_data) { +proto.io.bisq.protobuffer.StopRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.io.bisq.protobuffer.GetBalanceRequest, jspb.Message); +goog.inherits(proto.io.bisq.protobuffer.StopRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.io.bisq.protobuffer.GetBalanceRequest.displayName = 'proto.io.bisq.protobuffer.GetBalanceRequest'; + proto.io.bisq.protobuffer.StopRequest.displayName = 'proto.io.bisq.protobuffer.StopRequest'; } /** * Generated by JsPbCodeGenerator. @@ -395,16 +851,415 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.io.bisq.protobuffer.GetBalanceReply = function(opt_data) { +proto.io.bisq.protobuffer.StopReply = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.io.bisq.protobuffer.GetBalanceReply, jspb.Message); +goog.inherits(proto.io.bisq.protobuffer.StopReply, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.io.bisq.protobuffer.GetBalanceReply.displayName = 'proto.io.bisq.protobuffer.GetBalanceReply'; + proto.io.bisq.protobuffer.StopReply.displayName = 'proto.io.bisq.protobuffer.StopReply'; +} +/** + * 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.TakeOfferRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.TakeOfferRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.TakeOfferRequest.displayName = 'proto.io.bisq.protobuffer.TakeOfferRequest'; +} +/** + * 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.TakeOfferReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.TakeOfferReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.TakeOfferReply.displayName = 'proto.io.bisq.protobuffer.TakeOfferReply'; +} +/** + * 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.ConfirmPaymentStartedRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest.displayName = 'proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest'; +} +/** + * 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.ConfirmPaymentStartedReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.ConfirmPaymentStartedReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.ConfirmPaymentStartedReply.displayName = 'proto.io.bisq.protobuffer.ConfirmPaymentStartedReply'; +} +/** + * 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.ConfirmPaymentReceivedRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest.displayName = 'proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest'; +} +/** + * 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.ConfirmPaymentReceivedReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply.displayName = 'proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply'; +} +/** + * 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.GetTradeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetTradeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetTradeRequest.displayName = 'proto.io.bisq.protobuffer.GetTradeRequest'; +} +/** + * 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.GetTradeReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetTradeReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetTradeReply.displayName = 'proto.io.bisq.protobuffer.GetTradeReply'; +} +/** + * 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.KeepFundsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.KeepFundsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.KeepFundsRequest.displayName = 'proto.io.bisq.protobuffer.KeepFundsRequest'; +} +/** + * 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.KeepFundsReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.KeepFundsReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.KeepFundsReply.displayName = 'proto.io.bisq.protobuffer.KeepFundsReply'; +} +/** + * 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.WithdrawFundsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.WithdrawFundsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.WithdrawFundsRequest.displayName = 'proto.io.bisq.protobuffer.WithdrawFundsRequest'; +} +/** + * 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.WithdrawFundsReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.WithdrawFundsReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.WithdrawFundsReply.displayName = 'proto.io.bisq.protobuffer.WithdrawFundsReply'; +} +/** + * 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.TradeInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.TradeInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.TradeInfo.displayName = 'proto.io.bisq.protobuffer.TradeInfo'; +} +/** + * 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.ContractInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.ContractInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.ContractInfo.displayName = 'proto.io.bisq.protobuffer.ContractInfo'; +} +/** + * 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.PaymentAccountPayloadInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.PaymentAccountPayloadInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.displayName = 'proto.io.bisq.protobuffer.PaymentAccountPayloadInfo'; +} +/** + * 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.TxFeeRateInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.TxFeeRateInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.TxFeeRateInfo.displayName = 'proto.io.bisq.protobuffer.TxFeeRateInfo'; +} +/** + * 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.TxInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.TxInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.TxInfo.displayName = 'proto.io.bisq.protobuffer.TxInfo'; +} +/** + * 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.GetBalancesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetBalancesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetBalancesRequest.displayName = 'proto.io.bisq.protobuffer.GetBalancesRequest'; +} +/** + * 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.GetBalancesReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetBalancesReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetBalancesReply.displayName = 'proto.io.bisq.protobuffer.GetBalancesReply'; } /** * Generated by JsPbCodeGenerator. @@ -448,6 +1303,342 @@ if (goog.DEBUG && !COMPILED) { */ proto.io.bisq.protobuffer.GetAddressBalanceReply.displayName = 'proto.io.bisq.protobuffer.GetAddressBalanceReply'; } +/** + * 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.GetUnusedBsqAddressRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest.displayName = 'proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest'; +} +/** + * 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.GetUnusedBsqAddressReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetUnusedBsqAddressReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetUnusedBsqAddressReply.displayName = 'proto.io.bisq.protobuffer.GetUnusedBsqAddressReply'; +} +/** + * 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.SendBsqRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.SendBsqRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.SendBsqRequest.displayName = 'proto.io.bisq.protobuffer.SendBsqRequest'; +} +/** + * 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.SendBsqReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.SendBsqReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.SendBsqReply.displayName = 'proto.io.bisq.protobuffer.SendBsqReply'; +} +/** + * 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.SendBtcRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.SendBtcRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.SendBtcRequest.displayName = 'proto.io.bisq.protobuffer.SendBtcRequest'; +} +/** + * 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.SendBtcReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.SendBtcReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.SendBtcReply.displayName = 'proto.io.bisq.protobuffer.SendBtcReply'; +} +/** + * 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.VerifyBsqSentToAddressRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest.displayName = 'proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest'; +} +/** + * 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.VerifyBsqSentToAddressReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply.displayName = 'proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply'; +} +/** + * 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.GetTxFeeRateRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetTxFeeRateRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetTxFeeRateRequest.displayName = 'proto.io.bisq.protobuffer.GetTxFeeRateRequest'; +} +/** + * 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.GetTxFeeRateReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetTxFeeRateReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetTxFeeRateReply.displayName = 'proto.io.bisq.protobuffer.GetTxFeeRateReply'; +} +/** + * 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.SetTxFeeRatePreferenceRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest.displayName = 'proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest'; +} +/** + * 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.SetTxFeeRatePreferenceReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply.displayName = 'proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply'; +} +/** + * 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.UnsetTxFeeRatePreferenceRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest.displayName = 'proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest'; +} +/** + * 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.UnsetTxFeeRatePreferenceReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply.displayName = 'proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply'; +} +/** + * 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.GetTransactionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetTransactionRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetTransactionRequest.displayName = 'proto.io.bisq.protobuffer.GetTransactionRequest'; +} +/** + * 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.GetTransactionReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetTransactionReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetTransactionReply.displayName = 'proto.io.bisq.protobuffer.GetTransactionReply'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -658,6 +1849,69 @@ if (goog.DEBUG && !COMPILED) { */ proto.io.bisq.protobuffer.UnlockWalletReply.displayName = 'proto.io.bisq.protobuffer.UnlockWalletReply'; } +/** + * 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.BalancesInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.BalancesInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.BalancesInfo.displayName = 'proto.io.bisq.protobuffer.BalancesInfo'; +} +/** + * 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.BsqBalanceInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.BsqBalanceInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.BsqBalanceInfo.displayName = 'proto.io.bisq.protobuffer.BsqBalanceInfo'; +} +/** + * 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.BtcBalanceInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.BtcBalanceInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.BtcBalanceInfo.displayName = 'proto.io.bisq.protobuffer.BtcBalanceInfo'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -985,6 +2239,828 @@ 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.GetMethodHelpRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetMethodHelpRequest.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.GetMethodHelpRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetMethodHelpRequest.toObject = function(includeInstance, msg) { + var f, obj = { + methodname: 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.GetMethodHelpRequest} + */ +proto.io.bisq.protobuffer.GetMethodHelpRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetMethodHelpRequest; + return proto.io.bisq.protobuffer.GetMethodHelpRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetMethodHelpRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetMethodHelpRequest} + */ +proto.io.bisq.protobuffer.GetMethodHelpRequest.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.setMethodname(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetMethodHelpRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetMethodHelpRequest.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.GetMethodHelpRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetMethodHelpRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMethodname(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string methodName = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.GetMethodHelpRequest.prototype.getMethodname = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.GetMethodHelpRequest} returns this + */ +proto.io.bisq.protobuffer.GetMethodHelpRequest.prototype.setMethodname = 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.GetMethodHelpReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetMethodHelpReply.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.GetMethodHelpReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetMethodHelpReply.toObject = function(includeInstance, msg) { + var f, obj = { + methodhelp: 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.GetMethodHelpReply} + */ +proto.io.bisq.protobuffer.GetMethodHelpReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetMethodHelpReply; + return proto.io.bisq.protobuffer.GetMethodHelpReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetMethodHelpReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetMethodHelpReply} + */ +proto.io.bisq.protobuffer.GetMethodHelpReply.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.setMethodhelp(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetMethodHelpReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetMethodHelpReply.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.GetMethodHelpReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetMethodHelpReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMethodhelp(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string methodHelp = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.GetMethodHelpReply.prototype.getMethodhelp = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.GetMethodHelpReply} returns this + */ +proto.io.bisq.protobuffer.GetMethodHelpReply.prototype.setMethodhelp = 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.GetOfferRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetOfferRequest.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.GetOfferRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetOfferRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: 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.GetOfferRequest} + */ +proto.io.bisq.protobuffer.GetOfferRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetOfferRequest; + return proto.io.bisq.protobuffer.GetOfferRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetOfferRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetOfferRequest} + */ +proto.io.bisq.protobuffer.GetOfferRequest.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.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetOfferRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetOfferRequest.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.GetOfferRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetOfferRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.GetOfferRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.GetOfferRequest} returns this + */ +proto.io.bisq.protobuffer.GetOfferRequest.prototype.setId = 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.GetOfferReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetOfferReply.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.GetOfferReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetOfferReply.toObject = function(includeInstance, msg) { + var f, obj = { + offer: (f = msg.getOffer()) && proto.io.bisq.protobuffer.OfferInfo.toObject(includeInstance, f) + }; + + 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.GetOfferReply} + */ +proto.io.bisq.protobuffer.GetOfferReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetOfferReply; + return proto.io.bisq.protobuffer.GetOfferReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetOfferReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetOfferReply} + */ +proto.io.bisq.protobuffer.GetOfferReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.io.bisq.protobuffer.OfferInfo; + reader.readMessage(value,proto.io.bisq.protobuffer.OfferInfo.deserializeBinaryFromReader); + msg.setOffer(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetOfferReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetOfferReply.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.GetOfferReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetOfferReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOffer(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.OfferInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional OfferInfo offer = 1; + * @return {?proto.io.bisq.protobuffer.OfferInfo} + */ +proto.io.bisq.protobuffer.GetOfferReply.prototype.getOffer = function() { + return /** @type{?proto.io.bisq.protobuffer.OfferInfo} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.OfferInfo, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.OfferInfo|undefined} value + * @return {!proto.io.bisq.protobuffer.GetOfferReply} returns this +*/ +proto.io.bisq.protobuffer.GetOfferReply.prototype.setOffer = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.GetOfferReply} returns this + */ +proto.io.bisq.protobuffer.GetOfferReply.prototype.clearOffer = function() { + return this.setOffer(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.GetOfferReply.prototype.hasOffer = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +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.GetMyOfferRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetMyOfferRequest.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.GetMyOfferRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetMyOfferRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: 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.GetMyOfferRequest} + */ +proto.io.bisq.protobuffer.GetMyOfferRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetMyOfferRequest; + return proto.io.bisq.protobuffer.GetMyOfferRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetMyOfferRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetMyOfferRequest} + */ +proto.io.bisq.protobuffer.GetMyOfferRequest.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.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetMyOfferRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetMyOfferRequest.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.GetMyOfferRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetMyOfferRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.GetMyOfferRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.GetMyOfferRequest} returns this + */ +proto.io.bisq.protobuffer.GetMyOfferRequest.prototype.setId = 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.GetMyOfferReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetMyOfferReply.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.GetMyOfferReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetMyOfferReply.toObject = function(includeInstance, msg) { + var f, obj = { + offer: (f = msg.getOffer()) && proto.io.bisq.protobuffer.OfferInfo.toObject(includeInstance, f) + }; + + 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.GetMyOfferReply} + */ +proto.io.bisq.protobuffer.GetMyOfferReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetMyOfferReply; + return proto.io.bisq.protobuffer.GetMyOfferReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetMyOfferReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetMyOfferReply} + */ +proto.io.bisq.protobuffer.GetMyOfferReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.io.bisq.protobuffer.OfferInfo; + reader.readMessage(value,proto.io.bisq.protobuffer.OfferInfo.deserializeBinaryFromReader); + msg.setOffer(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetMyOfferReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetMyOfferReply.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.GetMyOfferReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetMyOfferReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOffer(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.OfferInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional OfferInfo offer = 1; + * @return {?proto.io.bisq.protobuffer.OfferInfo} + */ +proto.io.bisq.protobuffer.GetMyOfferReply.prototype.getOffer = function() { + return /** @type{?proto.io.bisq.protobuffer.OfferInfo} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.OfferInfo, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.OfferInfo|undefined} value + * @return {!proto.io.bisq.protobuffer.GetMyOfferReply} returns this +*/ +proto.io.bisq.protobuffer.GetMyOfferReply.prototype.setOffer = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.GetMyOfferReply} returns this + */ +proto.io.bisq.protobuffer.GetMyOfferReply.prototype.clearOffer = function() { + return this.setOffer(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.GetMyOfferReply.prototype.hasOffer = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -1305,6 +3381,326 @@ proto.io.bisq.protobuffer.GetOffersReply.prototype.clearOffersList = function() +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.GetMyOffersRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetMyOffersRequest.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.GetMyOffersRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetMyOffersRequest.toObject = function(includeInstance, msg) { + var f, obj = { + direction: jspb.Message.getFieldWithDefault(msg, 1, ""), + currencycode: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + 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.GetMyOffersRequest} + */ +proto.io.bisq.protobuffer.GetMyOffersRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetMyOffersRequest; + return proto.io.bisq.protobuffer.GetMyOffersRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetMyOffersRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetMyOffersRequest} + */ +proto.io.bisq.protobuffer.GetMyOffersRequest.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.setDirection(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setCurrencycode(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetMyOffersRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetMyOffersRequest.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.GetMyOffersRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetMyOffersRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDirection(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getCurrencycode(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string direction = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.GetMyOffersRequest.prototype.getDirection = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.GetMyOffersRequest} returns this + */ +proto.io.bisq.protobuffer.GetMyOffersRequest.prototype.setDirection = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string currencyCode = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.GetMyOffersRequest.prototype.getCurrencycode = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.GetMyOffersRequest} returns this + */ +proto.io.bisq.protobuffer.GetMyOffersRequest.prototype.setCurrencycode = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.GetMyOffersReply.repeatedFields_ = [1]; + + + +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.GetMyOffersReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetMyOffersReply.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.GetMyOffersReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetMyOffersReply.toObject = function(includeInstance, msg) { + var f, obj = { + offersList: jspb.Message.toObjectList(msg.getOffersList(), + proto.io.bisq.protobuffer.OfferInfo.toObject, includeInstance) + }; + + 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.GetMyOffersReply} + */ +proto.io.bisq.protobuffer.GetMyOffersReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetMyOffersReply; + return proto.io.bisq.protobuffer.GetMyOffersReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetMyOffersReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetMyOffersReply} + */ +proto.io.bisq.protobuffer.GetMyOffersReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.io.bisq.protobuffer.OfferInfo; + reader.readMessage(value,proto.io.bisq.protobuffer.OfferInfo.deserializeBinaryFromReader); + msg.addOffers(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetMyOffersReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetMyOffersReply.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.GetMyOffersReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetMyOffersReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOffersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.OfferInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated OfferInfo offers = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.GetMyOffersReply.prototype.getOffersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.OfferInfo, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.GetMyOffersReply} returns this +*/ +proto.io.bisq.protobuffer.GetMyOffersReply.prototype.setOffersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.OfferInfo=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.OfferInfo} + */ +proto.io.bisq.protobuffer.GetMyOffersReply.prototype.addOffers = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.OfferInfo, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.GetMyOffersReply} returns this + */ +proto.io.bisq.protobuffer.GetMyOffersReply.prototype.clearOffersList = function() { + return this.setOffersList([]); +}; + + + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -1342,7 +3738,9 @@ proto.io.bisq.protobuffer.CreateOfferRequest.toObject = function(includeInstance amount: jspb.Message.getFieldWithDefault(msg, 6, 0), minamount: jspb.Message.getFieldWithDefault(msg, 7, 0), buyersecuritydeposit: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0), - paymentaccountid: jspb.Message.getFieldWithDefault(msg, 9, "") + triggerprice: jspb.Message.getFieldWithDefault(msg, 9, 0), + paymentaccountid: jspb.Message.getFieldWithDefault(msg, 10, ""), + makerfeecurrencycode: jspb.Message.getFieldWithDefault(msg, 11, "") }; if (includeInstance) { @@ -1412,9 +3810,17 @@ proto.io.bisq.protobuffer.CreateOfferRequest.deserializeBinaryFromReader = funct msg.setBuyersecuritydeposit(value); break; case 9: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTriggerprice(value); + break; + case 10: var value = /** @type {string} */ (reader.readString()); msg.setPaymentaccountid(value); break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setMakerfeecurrencycode(value); + break; default: reader.skipField(); break; @@ -1500,10 +3906,24 @@ proto.io.bisq.protobuffer.CreateOfferRequest.serializeBinaryToWriter = function( f ); } + f = message.getTriggerprice(); + if (f !== 0) { + writer.writeUint64( + 9, + f + ); + } f = message.getPaymentaccountid(); if (f.length > 0) { writer.writeString( - 9, + 10, + f + ); + } + f = message.getMakerfeecurrencycode(); + if (f.length > 0) { + writer.writeString( + 11, f ); } @@ -1655,11 +4075,29 @@ proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setBuyersecuritydeposit = /** - * optional string paymentAccountId = 9; + * optional uint64 triggerPrice = 9; + * @return {number} + */ +proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getTriggerprice = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.CreateOfferRequest} returns this + */ +proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setTriggerprice = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); +}; + + +/** + * optional string paymentAccountId = 10; * @return {string} */ proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getPaymentaccountid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); }; @@ -1668,7 +4106,25 @@ proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getPaymentaccountid = fun * @return {!proto.io.bisq.protobuffer.CreateOfferRequest} returns this */ proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setPaymentaccountid = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); + return jspb.Message.setProto3StringField(this, 10, value); +}; + + +/** + * optional string makerFeeCurrencyCode = 11; + * @return {string} + */ +proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getMakerfeecurrencycode = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.CreateOfferRequest} returns this + */ +proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setMakerfeecurrencycode = function(value) { + return jspb.Message.setProto3StringField(this, 11, value); }; @@ -1826,6 +4282,237 @@ proto.io.bisq.protobuffer.CreateOfferReply.prototype.hasOffer = function() { +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.CancelOfferRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.CancelOfferRequest.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.CancelOfferRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CancelOfferRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: 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.CancelOfferRequest} + */ +proto.io.bisq.protobuffer.CancelOfferRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.CancelOfferRequest; + return proto.io.bisq.protobuffer.CancelOfferRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.CancelOfferRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.CancelOfferRequest} + */ +proto.io.bisq.protobuffer.CancelOfferRequest.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.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.CancelOfferRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.CancelOfferRequest.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.CancelOfferRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CancelOfferRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.CancelOfferRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.CancelOfferRequest} returns this + */ +proto.io.bisq.protobuffer.CancelOfferRequest.prototype.setId = 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.CancelOfferReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.CancelOfferReply.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.CancelOfferReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CancelOfferReply.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.CancelOfferReply} + */ +proto.io.bisq.protobuffer.CancelOfferReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.CancelOfferReply; + return proto.io.bisq.protobuffer.CancelOfferReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.CancelOfferReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.CancelOfferReply} + */ +proto.io.bisq.protobuffer.CancelOfferReply.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.CancelOfferReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.CancelOfferReply.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.CancelOfferReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CancelOfferReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -1865,12 +4552,19 @@ proto.io.bisq.protobuffer.OfferInfo.toObject = function(includeInstance, msg) { volume: jspb.Message.getFieldWithDefault(msg, 8, 0), minvolume: jspb.Message.getFieldWithDefault(msg, 9, 0), buyersecuritydeposit: jspb.Message.getFieldWithDefault(msg, 10, 0), - paymentaccountid: jspb.Message.getFieldWithDefault(msg, 11, ""), - paymentmethodid: jspb.Message.getFieldWithDefault(msg, 12, ""), - paymentmethodshortname: jspb.Message.getFieldWithDefault(msg, 13, ""), - basecurrencycode: jspb.Message.getFieldWithDefault(msg, 14, ""), - countercurrencycode: jspb.Message.getFieldWithDefault(msg, 15, ""), - date: jspb.Message.getFieldWithDefault(msg, 16, 0) + triggerprice: jspb.Message.getFieldWithDefault(msg, 11, 0), + iscurrencyformakerfeebtc: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), + paymentaccountid: jspb.Message.getFieldWithDefault(msg, 13, ""), + paymentmethodid: jspb.Message.getFieldWithDefault(msg, 14, ""), + paymentmethodshortname: jspb.Message.getFieldWithDefault(msg, 15, ""), + basecurrencycode: jspb.Message.getFieldWithDefault(msg, 16, ""), + countercurrencycode: jspb.Message.getFieldWithDefault(msg, 17, ""), + date: jspb.Message.getFieldWithDefault(msg, 18, 0), + state: jspb.Message.getFieldWithDefault(msg, 19, ""), + sellersecuritydeposit: jspb.Message.getFieldWithDefault(msg, 20, 0), + offerfeepaymenttxid: jspb.Message.getFieldWithDefault(msg, 21, ""), + txfee: jspb.Message.getFieldWithDefault(msg, 22, 0), + makerfee: jspb.Message.getFieldWithDefault(msg, 23, 0) }; if (includeInstance) { @@ -1948,29 +4642,57 @@ proto.io.bisq.protobuffer.OfferInfo.deserializeBinaryFromReader = function(msg, msg.setBuyersecuritydeposit(value); break; case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setPaymentaccountid(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setTriggerprice(value); break; case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setPaymentmethodid(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIscurrencyformakerfeebtc(value); break; case 13: var value = /** @type {string} */ (reader.readString()); - msg.setPaymentmethodshortname(value); + msg.setPaymentaccountid(value); break; case 14: var value = /** @type {string} */ (reader.readString()); - msg.setBasecurrencycode(value); + msg.setPaymentmethodid(value); break; case 15: var value = /** @type {string} */ (reader.readString()); - msg.setCountercurrencycode(value); + msg.setPaymentmethodshortname(value); break; case 16: + var value = /** @type {string} */ (reader.readString()); + msg.setBasecurrencycode(value); + break; + case 17: + var value = /** @type {string} */ (reader.readString()); + msg.setCountercurrencycode(value); + break; + case 18: var value = /** @type {number} */ (reader.readUint64()); msg.setDate(value); break; + case 19: + var value = /** @type {string} */ (reader.readString()); + msg.setState(value); + break; + case 20: + var value = /** @type {number} */ (reader.readUint64()); + msg.setSellersecuritydeposit(value); + break; + case 21: + var value = /** @type {string} */ (reader.readString()); + msg.setOfferfeepaymenttxid(value); + break; + case 22: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTxfee(value); + break; + case 23: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMakerfee(value); + break; default: reader.skipField(); break; @@ -2070,45 +4792,94 @@ proto.io.bisq.protobuffer.OfferInfo.serializeBinaryToWriter = function(message, f ); } - f = message.getPaymentaccountid(); - if (f.length > 0) { - writer.writeString( + f = message.getTriggerprice(); + if (f !== 0) { + writer.writeUint64( 11, f ); } - f = message.getPaymentmethodid(); - if (f.length > 0) { - writer.writeString( + f = message.getIscurrencyformakerfeebtc(); + if (f) { + writer.writeBool( 12, f ); } - f = message.getPaymentmethodshortname(); + f = message.getPaymentaccountid(); if (f.length > 0) { writer.writeString( 13, f ); } - f = message.getBasecurrencycode(); + f = message.getPaymentmethodid(); if (f.length > 0) { writer.writeString( 14, f ); } - f = message.getCountercurrencycode(); + f = message.getPaymentmethodshortname(); if (f.length > 0) { writer.writeString( 15, f ); } + f = message.getBasecurrencycode(); + if (f.length > 0) { + writer.writeString( + 16, + f + ); + } + f = message.getCountercurrencycode(); + if (f.length > 0) { + writer.writeString( + 17, + f + ); + } f = message.getDate(); if (f !== 0) { writer.writeUint64( - 16, + 18, + f + ); + } + f = message.getState(); + if (f.length > 0) { + writer.writeString( + 19, + f + ); + } + f = message.getSellersecuritydeposit(); + if (f !== 0) { + writer.writeUint64( + 20, + f + ); + } + f = message.getOfferfeepaymenttxid(); + if (f.length > 0) { + writer.writeString( + 21, + f + ); + } + f = message.getTxfee(); + if (f !== 0) { + writer.writeUint64( + 22, + f + ); + } + f = message.getMakerfee(); + if (f !== 0) { + writer.writeUint64( + 23, f ); } @@ -2296,46 +5067,46 @@ proto.io.bisq.protobuffer.OfferInfo.prototype.setBuyersecuritydeposit = function /** - * optional string paymentAccountId = 11; + * optional uint64 triggerPrice = 11; + * @return {number} + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.getTriggerprice = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.setTriggerprice = function(value) { + return jspb.Message.setProto3IntField(this, 11, value); +}; + + +/** + * optional bool isCurrencyForMakerFeeBtc = 12; + * @return {boolean} + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.getIscurrencyformakerfeebtc = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.setIscurrencyformakerfeebtc = function(value) { + return jspb.Message.setProto3BooleanField(this, 12, value); +}; + + +/** + * optional string paymentAccountId = 13; * @return {string} */ proto.io.bisq.protobuffer.OfferInfo.prototype.getPaymentaccountid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.setPaymentaccountid = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional string paymentMethodId = 12; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getPaymentmethodid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.setPaymentmethodid = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * optional string paymentMethodShortName = 13; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getPaymentmethodshortname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); }; @@ -2344,16 +5115,16 @@ proto.io.bisq.protobuffer.OfferInfo.prototype.getPaymentmethodshortname = functi * @param {string} value * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this */ -proto.io.bisq.protobuffer.OfferInfo.prototype.setPaymentmethodshortname = function(value) { +proto.io.bisq.protobuffer.OfferInfo.prototype.setPaymentaccountid = function(value) { return jspb.Message.setProto3StringField(this, 13, value); }; /** - * optional string baseCurrencyCode = 14; + * optional string paymentMethodId = 14; * @return {string} */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getBasecurrencycode = function() { +proto.io.bisq.protobuffer.OfferInfo.prototype.getPaymentmethodid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); }; @@ -2362,16 +5133,16 @@ proto.io.bisq.protobuffer.OfferInfo.prototype.getBasecurrencycode = function() { * @param {string} value * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this */ -proto.io.bisq.protobuffer.OfferInfo.prototype.setBasecurrencycode = function(value) { +proto.io.bisq.protobuffer.OfferInfo.prototype.setPaymentmethodid = function(value) { return jspb.Message.setProto3StringField(this, 14, value); }; /** - * optional string counterCurrencyCode = 15; + * optional string paymentMethodShortName = 15; * @return {string} */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getCountercurrencycode = function() { +proto.io.bisq.protobuffer.OfferInfo.prototype.getPaymentmethodshortname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); }; @@ -2380,17 +5151,53 @@ proto.io.bisq.protobuffer.OfferInfo.prototype.getCountercurrencycode = function( * @param {string} value * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this */ -proto.io.bisq.protobuffer.OfferInfo.prototype.setCountercurrencycode = function(value) { +proto.io.bisq.protobuffer.OfferInfo.prototype.setPaymentmethodshortname = function(value) { return jspb.Message.setProto3StringField(this, 15, value); }; /** - * optional uint64 date = 16; + * optional string baseCurrencyCode = 16; + * @return {string} + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.getBasecurrencycode = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.setBasecurrencycode = function(value) { + return jspb.Message.setProto3StringField(this, 16, value); +}; + + +/** + * optional string counterCurrencyCode = 17; + * @return {string} + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.getCountercurrencycode = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.setCountercurrencycode = function(value) { + return jspb.Message.setProto3StringField(this, 17, value); +}; + + +/** + * optional uint64 date = 18; * @return {number} */ proto.io.bisq.protobuffer.OfferInfo.prototype.getDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); }; @@ -2399,7 +5206,257 @@ proto.io.bisq.protobuffer.OfferInfo.prototype.getDate = function() { * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this */ proto.io.bisq.protobuffer.OfferInfo.prototype.setDate = function(value) { - return jspb.Message.setProto3IntField(this, 16, value); + return jspb.Message.setProto3IntField(this, 18, value); +}; + + +/** + * optional string state = 19; + * @return {string} + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.getState = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.setState = function(value) { + return jspb.Message.setProto3StringField(this, 19, value); +}; + + +/** + * optional uint64 sellerSecurityDeposit = 20; + * @return {number} + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.getSellersecuritydeposit = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.setSellersecuritydeposit = function(value) { + return jspb.Message.setProto3IntField(this, 20, value); +}; + + +/** + * optional string offerFeePaymentTxId = 21; + * @return {string} + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.getOfferfeepaymenttxid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.setOfferfeepaymenttxid = function(value) { + return jspb.Message.setProto3StringField(this, 21, value); +}; + + +/** + * optional uint64 txFee = 22; + * @return {number} + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.getTxfee = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.setTxfee = function(value) { + return jspb.Message.setProto3IntField(this, 22, value); +}; + + +/** + * optional uint64 makerFee = 23; + * @return {number} + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.getMakerfee = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.setMakerfee = function(value) { + return jspb.Message.setProto3IntField(this, 23, 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.AvailabilityResultWithDescription.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.AvailabilityResultWithDescription.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.AvailabilityResultWithDescription} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.AvailabilityResultWithDescription.toObject = function(includeInstance, msg) { + var f, obj = { + availabilityresult: jspb.Message.getFieldWithDefault(msg, 1, 0), + description: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + 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.AvailabilityResultWithDescription} + */ +proto.io.bisq.protobuffer.AvailabilityResultWithDescription.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.AvailabilityResultWithDescription; + return proto.io.bisq.protobuffer.AvailabilityResultWithDescription.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.AvailabilityResultWithDescription} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.AvailabilityResultWithDescription} + */ +proto.io.bisq.protobuffer.AvailabilityResultWithDescription.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.io.bisq.protobuffer.AvailabilityResult} */ (reader.readEnum()); + msg.setAvailabilityresult(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.AvailabilityResultWithDescription.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.AvailabilityResultWithDescription.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.AvailabilityResultWithDescription} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.AvailabilityResultWithDescription.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAvailabilityresult(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional AvailabilityResult availabilityResult = 1; + * @return {!proto.io.bisq.protobuffer.AvailabilityResult} + */ +proto.io.bisq.protobuffer.AvailabilityResultWithDescription.prototype.getAvailabilityresult = function() { + return /** @type {!proto.io.bisq.protobuffer.AvailabilityResult} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.AvailabilityResult} value + * @return {!proto.io.bisq.protobuffer.AvailabilityResultWithDescription} returns this + */ +proto.io.bisq.protobuffer.AvailabilityResultWithDescription.prototype.setAvailabilityresult = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional string description = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.AvailabilityResultWithDescription.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.AvailabilityResultWithDescription} returns this + */ +proto.io.bisq.protobuffer.AvailabilityResultWithDescription.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -2435,10 +5492,7 @@ proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.toObject = funct */ proto.io.bisq.protobuffer.CreatePaymentAccountRequest.toObject = function(includeInstance, msg) { var f, obj = { - paymentmethodid: jspb.Message.getFieldWithDefault(msg, 1, ""), - accountname: jspb.Message.getFieldWithDefault(msg, 2, ""), - accountnumber: jspb.Message.getFieldWithDefault(msg, 3, ""), - currencycode: jspb.Message.getFieldWithDefault(msg, 4, "") + paymentaccountform: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { @@ -2477,19 +5531,7 @@ proto.io.bisq.protobuffer.CreatePaymentAccountRequest.deserializeBinaryFromReade switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setPaymentmethodid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAccountname(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setAccountnumber(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setCurrencycode(value); + msg.setPaymentaccountform(value); break; default: reader.skipField(); @@ -2520,42 +5562,21 @@ proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.serializeBinary */ proto.io.bisq.protobuffer.CreatePaymentAccountRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPaymentmethodid(); + f = message.getPaymentaccountform(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getAccountname(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getAccountnumber(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getCurrencycode(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } }; /** - * optional string paymentMethodId = 1; + * optional string paymentAccountForm = 1; * @return {string} */ -proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.getPaymentmethodid = function() { +proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.getPaymentaccountform = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; @@ -2564,65 +5585,11 @@ proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.getPaymentmethod * @param {string} value * @return {!proto.io.bisq.protobuffer.CreatePaymentAccountRequest} returns this */ -proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.setPaymentmethodid = function(value) { +proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.setPaymentaccountform = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * optional string accountName = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.getAccountname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CreatePaymentAccountRequest} returns this - */ -proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.setAccountname = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string accountNumber = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.getAccountnumber = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CreatePaymentAccountRequest} returns this - */ -proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.setAccountnumber = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string currencyCode = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.getCurrencycode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CreatePaymentAccountRequest} returns this - */ -proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.setCurrencycode = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - @@ -2655,7 +5622,7 @@ proto.io.bisq.protobuffer.CreatePaymentAccountReply.prototype.toObject = functio */ proto.io.bisq.protobuffer.CreatePaymentAccountReply.toObject = function(includeInstance, msg) { var f, obj = { - + paymentaccount: (f = msg.getPaymentaccount()) && pb_pb.PaymentAccount.toObject(includeInstance, f) }; if (includeInstance) { @@ -2692,6 +5659,11 @@ proto.io.bisq.protobuffer.CreatePaymentAccountReply.deserializeBinaryFromReader } var field = reader.getFieldNumber(); switch (field) { + case 1: + var value = new pb_pb.PaymentAccount; + reader.readMessage(value,pb_pb.PaymentAccount.deserializeBinaryFromReader); + msg.setPaymentaccount(value); + break; default: reader.skipField(); break; @@ -2721,6 +5693,51 @@ proto.io.bisq.protobuffer.CreatePaymentAccountReply.prototype.serializeBinary = */ proto.io.bisq.protobuffer.CreatePaymentAccountReply.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getPaymentaccount(); + if (f != null) { + writer.writeMessage( + 1, + f, + pb_pb.PaymentAccount.serializeBinaryToWriter + ); + } +}; + + +/** + * optional PaymentAccount paymentAccount = 1; + * @return {?proto.io.bisq.protobuffer.PaymentAccount} + */ +proto.io.bisq.protobuffer.CreatePaymentAccountReply.prototype.getPaymentaccount = function() { + return /** @type{?proto.io.bisq.protobuffer.PaymentAccount} */ ( + jspb.Message.getWrapperField(this, pb_pb.PaymentAccount, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.PaymentAccount|undefined} value + * @return {!proto.io.bisq.protobuffer.CreatePaymentAccountReply} returns this +*/ +proto.io.bisq.protobuffer.CreatePaymentAccountReply.prototype.setPaymentaccount = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.CreatePaymentAccountReply} returns this + */ +proto.io.bisq.protobuffer.CreatePaymentAccountReply.prototype.clearPaymentaccount = function() { + return this.setPaymentaccount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.CreatePaymentAccountReply.prototype.hasPaymentaccount = function() { + return jspb.Message.getField(this, 1) != null; }; @@ -2988,6 +6005,1159 @@ proto.io.bisq.protobuffer.GetPaymentAccountsReply.prototype.clearPaymentaccounts +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.GetPaymentMethodsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetPaymentMethodsRequest.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.GetPaymentMethodsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetPaymentMethodsRequest.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.GetPaymentMethodsRequest} + */ +proto.io.bisq.protobuffer.GetPaymentMethodsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetPaymentMethodsRequest; + return proto.io.bisq.protobuffer.GetPaymentMethodsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetPaymentMethodsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetPaymentMethodsRequest} + */ +proto.io.bisq.protobuffer.GetPaymentMethodsRequest.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.GetPaymentMethodsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetPaymentMethodsRequest.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.GetPaymentMethodsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetPaymentMethodsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.GetPaymentMethodsReply.repeatedFields_ = [1]; + + + +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.GetPaymentMethodsReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetPaymentMethodsReply.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.GetPaymentMethodsReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetPaymentMethodsReply.toObject = function(includeInstance, msg) { + var f, obj = { + paymentmethodsList: jspb.Message.toObjectList(msg.getPaymentmethodsList(), + pb_pb.PaymentMethod.toObject, includeInstance) + }; + + 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.GetPaymentMethodsReply} + */ +proto.io.bisq.protobuffer.GetPaymentMethodsReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetPaymentMethodsReply; + return proto.io.bisq.protobuffer.GetPaymentMethodsReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetPaymentMethodsReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetPaymentMethodsReply} + */ +proto.io.bisq.protobuffer.GetPaymentMethodsReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new pb_pb.PaymentMethod; + reader.readMessage(value,pb_pb.PaymentMethod.deserializeBinaryFromReader); + msg.addPaymentmethods(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetPaymentMethodsReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetPaymentMethodsReply.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.GetPaymentMethodsReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetPaymentMethodsReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPaymentmethodsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + pb_pb.PaymentMethod.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated PaymentMethod paymentMethods = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.GetPaymentMethodsReply.prototype.getPaymentmethodsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, pb_pb.PaymentMethod, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.GetPaymentMethodsReply} returns this +*/ +proto.io.bisq.protobuffer.GetPaymentMethodsReply.prototype.setPaymentmethodsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.PaymentMethod=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.PaymentMethod} + */ +proto.io.bisq.protobuffer.GetPaymentMethodsReply.prototype.addPaymentmethods = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.PaymentMethod, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.GetPaymentMethodsReply} returns this + */ +proto.io.bisq.protobuffer.GetPaymentMethodsReply.prototype.clearPaymentmethodsList = function() { + return this.setPaymentmethodsList([]); +}; + + + + + +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.GetPaymentAccountFormRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetPaymentAccountFormRequest.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.GetPaymentAccountFormRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetPaymentAccountFormRequest.toObject = function(includeInstance, msg) { + var f, obj = { + paymentmethodid: 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.GetPaymentAccountFormRequest} + */ +proto.io.bisq.protobuffer.GetPaymentAccountFormRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetPaymentAccountFormRequest; + return proto.io.bisq.protobuffer.GetPaymentAccountFormRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetPaymentAccountFormRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetPaymentAccountFormRequest} + */ +proto.io.bisq.protobuffer.GetPaymentAccountFormRequest.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.setPaymentmethodid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetPaymentAccountFormRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetPaymentAccountFormRequest.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.GetPaymentAccountFormRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetPaymentAccountFormRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPaymentmethodid(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string paymentMethodId = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.GetPaymentAccountFormRequest.prototype.getPaymentmethodid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.GetPaymentAccountFormRequest} returns this + */ +proto.io.bisq.protobuffer.GetPaymentAccountFormRequest.prototype.setPaymentmethodid = 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.GetPaymentAccountFormReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetPaymentAccountFormReply.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.GetPaymentAccountFormReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetPaymentAccountFormReply.toObject = function(includeInstance, msg) { + var f, obj = { + paymentaccountformjson: 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.GetPaymentAccountFormReply} + */ +proto.io.bisq.protobuffer.GetPaymentAccountFormReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetPaymentAccountFormReply; + return proto.io.bisq.protobuffer.GetPaymentAccountFormReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetPaymentAccountFormReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetPaymentAccountFormReply} + */ +proto.io.bisq.protobuffer.GetPaymentAccountFormReply.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.setPaymentaccountformjson(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetPaymentAccountFormReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetPaymentAccountFormReply.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.GetPaymentAccountFormReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetPaymentAccountFormReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPaymentaccountformjson(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string paymentAccountFormJson = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.GetPaymentAccountFormReply.prototype.getPaymentaccountformjson = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.GetPaymentAccountFormReply} returns this + */ +proto.io.bisq.protobuffer.GetPaymentAccountFormReply.prototype.setPaymentaccountformjson = 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.CreateCryptoCurrencyPaymentAccountRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest.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.CreateCryptoCurrencyPaymentAccountRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest.toObject = function(includeInstance, msg) { + var f, obj = { + accountname: jspb.Message.getFieldWithDefault(msg, 1, ""), + currencycode: jspb.Message.getFieldWithDefault(msg, 2, ""), + address: jspb.Message.getFieldWithDefault(msg, 3, ""), + tradeinstant: jspb.Message.getBooleanFieldWithDefault(msg, 4, 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.CreateCryptoCurrencyPaymentAccountRequest} + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest; + return proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest} + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest.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.setAccountname(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setCurrencycode(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAddress(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setTradeinstant(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest.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.CreateCryptoCurrencyPaymentAccountRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAccountname(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getCurrencycode(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getTradeinstant(); + if (f) { + writer.writeBool( + 4, + f + ); + } +}; + + +/** + * optional string accountName = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest.prototype.getAccountname = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest} returns this + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest.prototype.setAccountname = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string currencyCode = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest.prototype.getCurrencycode = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest} returns this + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest.prototype.setCurrencycode = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string address = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest} returns this + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional bool tradeInstant = 4; + * @return {boolean} + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest.prototype.getTradeinstant = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest} returns this + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest.prototype.setTradeinstant = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, 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.CreateCryptoCurrencyPaymentAccountReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply.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.CreateCryptoCurrencyPaymentAccountReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply.toObject = function(includeInstance, msg) { + var f, obj = { + paymentaccount: (f = msg.getPaymentaccount()) && pb_pb.PaymentAccount.toObject(includeInstance, f) + }; + + 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.CreateCryptoCurrencyPaymentAccountReply} + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply; + return proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply} + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new pb_pb.PaymentAccount; + reader.readMessage(value,pb_pb.PaymentAccount.deserializeBinaryFromReader); + msg.setPaymentaccount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply.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.CreateCryptoCurrencyPaymentAccountReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPaymentaccount(); + if (f != null) { + writer.writeMessage( + 1, + f, + pb_pb.PaymentAccount.serializeBinaryToWriter + ); + } +}; + + +/** + * optional PaymentAccount paymentAccount = 1; + * @return {?proto.io.bisq.protobuffer.PaymentAccount} + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply.prototype.getPaymentaccount = function() { + return /** @type{?proto.io.bisq.protobuffer.PaymentAccount} */ ( + jspb.Message.getWrapperField(this, pb_pb.PaymentAccount, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.PaymentAccount|undefined} value + * @return {!proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply} returns this +*/ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply.prototype.setPaymentaccount = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply} returns this + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply.prototype.clearPaymentaccount = function() { + return this.setPaymentaccount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply.prototype.hasPaymentaccount = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +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.GetCryptoCurrencyPaymentMethodsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest.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.GetCryptoCurrencyPaymentMethodsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest.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.GetCryptoCurrencyPaymentMethodsRequest} + */ +proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest; + return proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest} + */ +proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest.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.GetCryptoCurrencyPaymentMethodsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest.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.GetCryptoCurrencyPaymentMethodsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply.repeatedFields_ = [1]; + + + +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.GetCryptoCurrencyPaymentMethodsReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply.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.GetCryptoCurrencyPaymentMethodsReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply.toObject = function(includeInstance, msg) { + var f, obj = { + paymentmethodsList: jspb.Message.toObjectList(msg.getPaymentmethodsList(), + pb_pb.PaymentMethod.toObject, includeInstance) + }; + + 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.GetCryptoCurrencyPaymentMethodsReply} + */ +proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply; + return proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply} + */ +proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new pb_pb.PaymentMethod; + reader.readMessage(value,pb_pb.PaymentMethod.deserializeBinaryFromReader); + msg.addPaymentmethods(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply.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.GetCryptoCurrencyPaymentMethodsReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPaymentmethodsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + pb_pb.PaymentMethod.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated PaymentMethod paymentMethods = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply.prototype.getPaymentmethodsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, pb_pb.PaymentMethod, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply} returns this +*/ +proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply.prototype.setPaymentmethodsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.PaymentMethod=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.PaymentMethod} + */ +proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply.prototype.addPaymentmethods = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.PaymentMethod, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply} returns this + */ +proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply.prototype.clearPaymentmethodsList = function() { + return this.setPaymentmethodsList([]); +}; + + + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -3386,7 +7556,7 @@ proto.io.bisq.protobuffer.GetTradeStatisticsReply.prototype.toObject = function( proto.io.bisq.protobuffer.GetTradeStatisticsReply.toObject = function(includeInstance, msg) { var f, obj = { tradestatisticsList: jspb.Message.toObjectList(msg.getTradestatisticsList(), - pb_pb.TradeStatistics2.toObject, includeInstance) + pb_pb.TradeStatistics3.toObject, includeInstance) }; if (includeInstance) { @@ -3424,8 +7594,8 @@ proto.io.bisq.protobuffer.GetTradeStatisticsReply.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new pb_pb.TradeStatistics2; - reader.readMessage(value,pb_pb.TradeStatistics2.deserializeBinaryFromReader); + var value = new pb_pb.TradeStatistics3; + reader.readMessage(value,pb_pb.TradeStatistics3.deserializeBinaryFromReader); msg.addTradestatistics(value); break; default: @@ -3462,24 +7632,24 @@ proto.io.bisq.protobuffer.GetTradeStatisticsReply.serializeBinaryToWriter = func writer.writeRepeatedMessage( 1, f, - pb_pb.TradeStatistics2.serializeBinaryToWriter + pb_pb.TradeStatistics3.serializeBinaryToWriter ); } }; /** - * repeated TradeStatistics2 TradeStatistics = 1; - * @return {!Array} + * repeated TradeStatistics3 TradeStatistics = 1; + * @return {!Array} */ proto.io.bisq.protobuffer.GetTradeStatisticsReply.prototype.getTradestatisticsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, pb_pb.TradeStatistics2, 1)); + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, pb_pb.TradeStatistics3, 1)); }; /** - * @param {!Array} value + * @param {!Array} value * @return {!proto.io.bisq.protobuffer.GetTradeStatisticsReply} returns this */ proto.io.bisq.protobuffer.GetTradeStatisticsReply.prototype.setTradestatisticsList = function(value) { @@ -3488,12 +7658,12 @@ proto.io.bisq.protobuffer.GetTradeStatisticsReply.prototype.setTradestatisticsLi /** - * @param {!proto.io.bisq.protobuffer.TradeStatistics2=} opt_value + * @param {!proto.io.bisq.protobuffer.TradeStatistics3=} opt_value * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.TradeStatistics2} + * @return {!proto.io.bisq.protobuffer.TradeStatistics3} */ proto.io.bisq.protobuffer.GetTradeStatisticsReply.prototype.addTradestatistics = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.TradeStatistics2, opt_index); + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.TradeStatistics3, opt_index); }; @@ -3522,8 +7692,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.io.bisq.protobuffer.GetBalanceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetBalanceRequest.toObject(opt_includeInstance, this); +proto.io.bisq.protobuffer.StopRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.StopRequest.toObject(opt_includeInstance, this); }; @@ -3532,11 +7702,11 @@ proto.io.bisq.protobuffer.GetBalanceRequest.prototype.toObject = function(opt_in * @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.GetBalanceRequest} msg The msg instance to transform. + * @param {!proto.io.bisq.protobuffer.StopRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.io.bisq.protobuffer.GetBalanceRequest.toObject = function(includeInstance, msg) { +proto.io.bisq.protobuffer.StopRequest.toObject = function(includeInstance, msg) { var f, obj = { }; @@ -3552,23 +7722,23 @@ proto.io.bisq.protobuffer.GetBalanceRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.io.bisq.protobuffer.GetBalanceRequest} + * @return {!proto.io.bisq.protobuffer.StopRequest} */ -proto.io.bisq.protobuffer.GetBalanceRequest.deserializeBinary = function(bytes) { +proto.io.bisq.protobuffer.StopRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetBalanceRequest; - return proto.io.bisq.protobuffer.GetBalanceRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.io.bisq.protobuffer.StopRequest; + return proto.io.bisq.protobuffer.StopRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetBalanceRequest} msg The message object to deserialize into. + * @param {!proto.io.bisq.protobuffer.StopRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetBalanceRequest} + * @return {!proto.io.bisq.protobuffer.StopRequest} */ -proto.io.bisq.protobuffer.GetBalanceRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.io.bisq.protobuffer.StopRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3588,9 +7758,9 @@ proto.io.bisq.protobuffer.GetBalanceRequest.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.io.bisq.protobuffer.GetBalanceRequest.prototype.serializeBinary = function() { +proto.io.bisq.protobuffer.StopRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetBalanceRequest.serializeBinaryToWriter(this, writer); + proto.io.bisq.protobuffer.StopRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3598,11 +7768,11 @@ proto.io.bisq.protobuffer.GetBalanceRequest.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.io.bisq.protobuffer.GetBalanceRequest} message + * @param {!proto.io.bisq.protobuffer.StopRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.io.bisq.protobuffer.GetBalanceRequest.serializeBinaryToWriter = function(message, writer) { +proto.io.bisq.protobuffer.StopRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; @@ -3623,8 +7793,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.io.bisq.protobuffer.GetBalanceReply.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetBalanceReply.toObject(opt_includeInstance, this); +proto.io.bisq.protobuffer.StopReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.StopReply.toObject(opt_includeInstance, this); }; @@ -3633,13 +7803,13 @@ proto.io.bisq.protobuffer.GetBalanceReply.prototype.toObject = function(opt_incl * @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.GetBalanceReply} msg The msg instance to transform. + * @param {!proto.io.bisq.protobuffer.StopReply} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.io.bisq.protobuffer.GetBalanceReply.toObject = function(includeInstance, msg) { +proto.io.bisq.protobuffer.StopReply.toObject = function(includeInstance, msg) { var f, obj = { - balance: jspb.Message.getFieldWithDefault(msg, 1, 0) + }; if (includeInstance) { @@ -3653,23 +7823,126 @@ proto.io.bisq.protobuffer.GetBalanceReply.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.io.bisq.protobuffer.GetBalanceReply} + * @return {!proto.io.bisq.protobuffer.StopReply} */ -proto.io.bisq.protobuffer.GetBalanceReply.deserializeBinary = function(bytes) { +proto.io.bisq.protobuffer.StopReply.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetBalanceReply; - return proto.io.bisq.protobuffer.GetBalanceReply.deserializeBinaryFromReader(msg, reader); + var msg = new proto.io.bisq.protobuffer.StopReply; + return proto.io.bisq.protobuffer.StopReply.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetBalanceReply} msg The message object to deserialize into. + * @param {!proto.io.bisq.protobuffer.StopReply} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetBalanceReply} + * @return {!proto.io.bisq.protobuffer.StopReply} */ -proto.io.bisq.protobuffer.GetBalanceReply.deserializeBinaryFromReader = function(msg, reader) { +proto.io.bisq.protobuffer.StopReply.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.StopReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.StopReply.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.StopReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.StopReply.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.TakeOfferRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.TakeOfferRequest.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.TakeOfferRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TakeOfferRequest.toObject = function(includeInstance, msg) { + var f, obj = { + offerid: jspb.Message.getFieldWithDefault(msg, 1, ""), + paymentaccountid: jspb.Message.getFieldWithDefault(msg, 2, ""), + takerfeecurrencycode: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + 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.TakeOfferRequest} + */ +proto.io.bisq.protobuffer.TakeOfferRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.TakeOfferRequest; + return proto.io.bisq.protobuffer.TakeOfferRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.TakeOfferRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.TakeOfferRequest} + */ +proto.io.bisq.protobuffer.TakeOfferRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3677,8 +7950,16 @@ proto.io.bisq.protobuffer.GetBalanceReply.deserializeBinaryFromReader = function var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBalance(value); + var value = /** @type {string} */ (reader.readString()); + msg.setOfferid(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setPaymentaccountid(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setTakerfeecurrencycode(value); break; default: reader.skipField(); @@ -3693,9 +7974,9 @@ proto.io.bisq.protobuffer.GetBalanceReply.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.io.bisq.protobuffer.GetBalanceReply.prototype.serializeBinary = function() { +proto.io.bisq.protobuffer.TakeOfferRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetBalanceReply.serializeBinaryToWriter(this, writer); + proto.io.bisq.protobuffer.TakeOfferRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3703,15 +7984,397 @@ proto.io.bisq.protobuffer.GetBalanceReply.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.io.bisq.protobuffer.GetBalanceReply} message + * @param {!proto.io.bisq.protobuffer.TakeOfferRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.io.bisq.protobuffer.GetBalanceReply.serializeBinaryToWriter = function(message, writer) { +proto.io.bisq.protobuffer.TakeOfferRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getBalance(); - if (f !== 0) { - writer.writeUint64( + f = message.getOfferid(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getPaymentaccountid(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getTakerfeecurrencycode(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string offerId = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.TakeOfferRequest.prototype.getOfferid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TakeOfferRequest} returns this + */ +proto.io.bisq.protobuffer.TakeOfferRequest.prototype.setOfferid = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string paymentAccountId = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.TakeOfferRequest.prototype.getPaymentaccountid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TakeOfferRequest} returns this + */ +proto.io.bisq.protobuffer.TakeOfferRequest.prototype.setPaymentaccountid = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string takerFeeCurrencyCode = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.TakeOfferRequest.prototype.getTakerfeecurrencycode = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TakeOfferRequest} returns this + */ +proto.io.bisq.protobuffer.TakeOfferRequest.prototype.setTakerfeecurrencycode = function(value) { + return jspb.Message.setProto3StringField(this, 3, 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.TakeOfferReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.TakeOfferReply.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.TakeOfferReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TakeOfferReply.toObject = function(includeInstance, msg) { + var f, obj = { + trade: (f = msg.getTrade()) && proto.io.bisq.protobuffer.TradeInfo.toObject(includeInstance, f), + failurereason: (f = msg.getFailurereason()) && proto.io.bisq.protobuffer.AvailabilityResultWithDescription.toObject(includeInstance, f) + }; + + 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.TakeOfferReply} + */ +proto.io.bisq.protobuffer.TakeOfferReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.TakeOfferReply; + return proto.io.bisq.protobuffer.TakeOfferReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.TakeOfferReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.TakeOfferReply} + */ +proto.io.bisq.protobuffer.TakeOfferReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.io.bisq.protobuffer.TradeInfo; + reader.readMessage(value,proto.io.bisq.protobuffer.TradeInfo.deserializeBinaryFromReader); + msg.setTrade(value); + break; + case 2: + var value = new proto.io.bisq.protobuffer.AvailabilityResultWithDescription; + reader.readMessage(value,proto.io.bisq.protobuffer.AvailabilityResultWithDescription.deserializeBinaryFromReader); + msg.setFailurereason(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.TakeOfferReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.TakeOfferReply.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.TakeOfferReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TakeOfferReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTrade(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.TradeInfo.serializeBinaryToWriter + ); + } + f = message.getFailurereason(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.io.bisq.protobuffer.AvailabilityResultWithDescription.serializeBinaryToWriter + ); + } +}; + + +/** + * optional TradeInfo trade = 1; + * @return {?proto.io.bisq.protobuffer.TradeInfo} + */ +proto.io.bisq.protobuffer.TakeOfferReply.prototype.getTrade = function() { + return /** @type{?proto.io.bisq.protobuffer.TradeInfo} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TradeInfo, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.TradeInfo|undefined} value + * @return {!proto.io.bisq.protobuffer.TakeOfferReply} returns this +*/ +proto.io.bisq.protobuffer.TakeOfferReply.prototype.setTrade = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.TakeOfferReply} returns this + */ +proto.io.bisq.protobuffer.TakeOfferReply.prototype.clearTrade = function() { + return this.setTrade(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.TakeOfferReply.prototype.hasTrade = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional AvailabilityResultWithDescription failureReason = 2; + * @return {?proto.io.bisq.protobuffer.AvailabilityResultWithDescription} + */ +proto.io.bisq.protobuffer.TakeOfferReply.prototype.getFailurereason = function() { + return /** @type{?proto.io.bisq.protobuffer.AvailabilityResultWithDescription} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.AvailabilityResultWithDescription, 2)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.AvailabilityResultWithDescription|undefined} value + * @return {!proto.io.bisq.protobuffer.TakeOfferReply} returns this +*/ +proto.io.bisq.protobuffer.TakeOfferReply.prototype.setFailurereason = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.TakeOfferReply} returns this + */ +proto.io.bisq.protobuffer.TakeOfferReply.prototype.clearFailurereason = function() { + return this.setFailurereason(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.TakeOfferReply.prototype.hasFailurereason = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +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.ConfirmPaymentStartedRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest.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.ConfirmPaymentStartedRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest.toObject = function(includeInstance, msg) { + var f, obj = { + tradeid: 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.ConfirmPaymentStartedRequest} + */ +proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest; + return proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest} + */ +proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest.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.setTradeid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest.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.ConfirmPaymentStartedRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTradeid(); + if (f.length > 0) { + writer.writeString( 1, f ); @@ -3720,20 +8383,3550 @@ proto.io.bisq.protobuffer.GetBalanceReply.serializeBinaryToWriter = function(mes /** - * optional uint64 balance = 1; + * optional string tradeId = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest.prototype.getTradeid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest} returns this + */ +proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest.prototype.setTradeid = 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.ConfirmPaymentStartedReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.ConfirmPaymentStartedReply.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.ConfirmPaymentStartedReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ConfirmPaymentStartedReply.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.ConfirmPaymentStartedReply} + */ +proto.io.bisq.protobuffer.ConfirmPaymentStartedReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.ConfirmPaymentStartedReply; + return proto.io.bisq.protobuffer.ConfirmPaymentStartedReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.ConfirmPaymentStartedReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.ConfirmPaymentStartedReply} + */ +proto.io.bisq.protobuffer.ConfirmPaymentStartedReply.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.ConfirmPaymentStartedReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.ConfirmPaymentStartedReply.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.ConfirmPaymentStartedReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ConfirmPaymentStartedReply.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.ConfirmPaymentReceivedRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest.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.ConfirmPaymentReceivedRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest.toObject = function(includeInstance, msg) { + var f, obj = { + tradeid: 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.ConfirmPaymentReceivedRequest} + */ +proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest; + return proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest} + */ +proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest.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.setTradeid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest.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.ConfirmPaymentReceivedRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTradeid(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string tradeId = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest.prototype.getTradeid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest} returns this + */ +proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest.prototype.setTradeid = 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.ConfirmPaymentReceivedReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply.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.ConfirmPaymentReceivedReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply.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.ConfirmPaymentReceivedReply} + */ +proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply; + return proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply} + */ +proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply.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.ConfirmPaymentReceivedReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply.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.ConfirmPaymentReceivedReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply.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.GetTradeRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetTradeRequest.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.GetTradeRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetTradeRequest.toObject = function(includeInstance, msg) { + var f, obj = { + tradeid: 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.GetTradeRequest} + */ +proto.io.bisq.protobuffer.GetTradeRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetTradeRequest; + return proto.io.bisq.protobuffer.GetTradeRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetTradeRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetTradeRequest} + */ +proto.io.bisq.protobuffer.GetTradeRequest.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.setTradeid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetTradeRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetTradeRequest.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.GetTradeRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetTradeRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTradeid(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string tradeId = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.GetTradeRequest.prototype.getTradeid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.GetTradeRequest} returns this + */ +proto.io.bisq.protobuffer.GetTradeRequest.prototype.setTradeid = 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.GetTradeReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetTradeReply.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.GetTradeReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetTradeReply.toObject = function(includeInstance, msg) { + var f, obj = { + trade: (f = msg.getTrade()) && proto.io.bisq.protobuffer.TradeInfo.toObject(includeInstance, f) + }; + + 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.GetTradeReply} + */ +proto.io.bisq.protobuffer.GetTradeReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetTradeReply; + return proto.io.bisq.protobuffer.GetTradeReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetTradeReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetTradeReply} + */ +proto.io.bisq.protobuffer.GetTradeReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.io.bisq.protobuffer.TradeInfo; + reader.readMessage(value,proto.io.bisq.protobuffer.TradeInfo.deserializeBinaryFromReader); + msg.setTrade(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetTradeReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetTradeReply.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.GetTradeReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetTradeReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTrade(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.TradeInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional TradeInfo trade = 1; + * @return {?proto.io.bisq.protobuffer.TradeInfo} + */ +proto.io.bisq.protobuffer.GetTradeReply.prototype.getTrade = function() { + return /** @type{?proto.io.bisq.protobuffer.TradeInfo} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TradeInfo, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.TradeInfo|undefined} value + * @return {!proto.io.bisq.protobuffer.GetTradeReply} returns this +*/ +proto.io.bisq.protobuffer.GetTradeReply.prototype.setTrade = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.GetTradeReply} returns this + */ +proto.io.bisq.protobuffer.GetTradeReply.prototype.clearTrade = function() { + return this.setTrade(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.GetTradeReply.prototype.hasTrade = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +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.KeepFundsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.KeepFundsRequest.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.KeepFundsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.KeepFundsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + tradeid: 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.KeepFundsRequest} + */ +proto.io.bisq.protobuffer.KeepFundsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.KeepFundsRequest; + return proto.io.bisq.protobuffer.KeepFundsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.KeepFundsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.KeepFundsRequest} + */ +proto.io.bisq.protobuffer.KeepFundsRequest.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.setTradeid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.KeepFundsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.KeepFundsRequest.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.KeepFundsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.KeepFundsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTradeid(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string tradeId = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.KeepFundsRequest.prototype.getTradeid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.KeepFundsRequest} returns this + */ +proto.io.bisq.protobuffer.KeepFundsRequest.prototype.setTradeid = 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.KeepFundsReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.KeepFundsReply.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.KeepFundsReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.KeepFundsReply.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.KeepFundsReply} + */ +proto.io.bisq.protobuffer.KeepFundsReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.KeepFundsReply; + return proto.io.bisq.protobuffer.KeepFundsReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.KeepFundsReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.KeepFundsReply} + */ +proto.io.bisq.protobuffer.KeepFundsReply.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.KeepFundsReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.KeepFundsReply.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.KeepFundsReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.KeepFundsReply.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.WithdrawFundsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.WithdrawFundsRequest.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.WithdrawFundsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.WithdrawFundsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + tradeid: jspb.Message.getFieldWithDefault(msg, 1, ""), + address: jspb.Message.getFieldWithDefault(msg, 2, ""), + memo: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + 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.WithdrawFundsRequest} + */ +proto.io.bisq.protobuffer.WithdrawFundsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.WithdrawFundsRequest; + return proto.io.bisq.protobuffer.WithdrawFundsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.WithdrawFundsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.WithdrawFundsRequest} + */ +proto.io.bisq.protobuffer.WithdrawFundsRequest.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.setTradeid(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setAddress(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.WithdrawFundsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.WithdrawFundsRequest.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.WithdrawFundsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.WithdrawFundsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTradeid(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getMemo(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string tradeId = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.WithdrawFundsRequest.prototype.getTradeid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.WithdrawFundsRequest} returns this + */ +proto.io.bisq.protobuffer.WithdrawFundsRequest.prototype.setTradeid = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string address = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.WithdrawFundsRequest.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.WithdrawFundsRequest} returns this + */ +proto.io.bisq.protobuffer.WithdrawFundsRequest.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string memo = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.WithdrawFundsRequest.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.WithdrawFundsRequest} returns this + */ +proto.io.bisq.protobuffer.WithdrawFundsRequest.prototype.setMemo = function(value) { + return jspb.Message.setProto3StringField(this, 3, 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.WithdrawFundsReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.WithdrawFundsReply.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.WithdrawFundsReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.WithdrawFundsReply.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.WithdrawFundsReply} + */ +proto.io.bisq.protobuffer.WithdrawFundsReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.WithdrawFundsReply; + return proto.io.bisq.protobuffer.WithdrawFundsReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.WithdrawFundsReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.WithdrawFundsReply} + */ +proto.io.bisq.protobuffer.WithdrawFundsReply.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.WithdrawFundsReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.WithdrawFundsReply.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.WithdrawFundsReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.WithdrawFundsReply.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.TradeInfo.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.TradeInfo.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.TradeInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TradeInfo.toObject = function(includeInstance, msg) { + var f, obj = { + offer: (f = msg.getOffer()) && proto.io.bisq.protobuffer.OfferInfo.toObject(includeInstance, f), + tradeid: jspb.Message.getFieldWithDefault(msg, 2, ""), + shortid: jspb.Message.getFieldWithDefault(msg, 3, ""), + date: jspb.Message.getFieldWithDefault(msg, 4, 0), + role: jspb.Message.getFieldWithDefault(msg, 5, ""), + txfeeaslong: jspb.Message.getFieldWithDefault(msg, 7, 0), + takerfeeaslong: jspb.Message.getFieldWithDefault(msg, 8, 0), + takerfeetxid: jspb.Message.getFieldWithDefault(msg, 9, ""), + payouttxid: jspb.Message.getFieldWithDefault(msg, 11, ""), + tradeamountaslong: jspb.Message.getFieldWithDefault(msg, 12, 0), + tradeprice: jspb.Message.getFieldWithDefault(msg, 13, 0), + tradingpeernodeaddress: jspb.Message.getFieldWithDefault(msg, 14, ""), + state: jspb.Message.getFieldWithDefault(msg, 15, ""), + phase: jspb.Message.getFieldWithDefault(msg, 16, ""), + tradeperiodstate: jspb.Message.getFieldWithDefault(msg, 17, ""), + isdepositpublished: jspb.Message.getBooleanFieldWithDefault(msg, 18, false), + isdepositconfirmed: jspb.Message.getBooleanFieldWithDefault(msg, 19, false), + isfiatsent: jspb.Message.getBooleanFieldWithDefault(msg, 20, false), + isfiatreceived: jspb.Message.getBooleanFieldWithDefault(msg, 21, false), + ispayoutpublished: jspb.Message.getBooleanFieldWithDefault(msg, 22, false), + iswithdrawn: jspb.Message.getBooleanFieldWithDefault(msg, 23, false), + contractasjson: jspb.Message.getFieldWithDefault(msg, 24, ""), + contract: (f = msg.getContract()) && proto.io.bisq.protobuffer.ContractInfo.toObject(includeInstance, f), + makerdeposittxid: jspb.Message.getFieldWithDefault(msg, 100, ""), + takerdeposittxid: jspb.Message.getFieldWithDefault(msg, 101, "") + }; + + 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.TradeInfo} + */ +proto.io.bisq.protobuffer.TradeInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.TradeInfo; + return proto.io.bisq.protobuffer.TradeInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.TradeInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.TradeInfo} + */ +proto.io.bisq.protobuffer.TradeInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.io.bisq.protobuffer.OfferInfo; + reader.readMessage(value,proto.io.bisq.protobuffer.OfferInfo.deserializeBinaryFromReader); + msg.setOffer(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setTradeid(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setShortid(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDate(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setRole(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTxfeeaslong(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTakerfeeaslong(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setTakerfeetxid(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setPayouttxid(value); + break; + case 12: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTradeamountaslong(value); + break; + case 13: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTradeprice(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.setTradingpeernodeaddress(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setState(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.setPhase(value); + break; + case 17: + var value = /** @type {string} */ (reader.readString()); + msg.setTradeperiodstate(value); + break; + case 18: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsdepositpublished(value); + break; + case 19: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsdepositconfirmed(value); + break; + case 20: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsfiatsent(value); + break; + case 21: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsfiatreceived(value); + break; + case 22: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIspayoutpublished(value); + break; + case 23: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIswithdrawn(value); + break; + case 24: + var value = /** @type {string} */ (reader.readString()); + msg.setContractasjson(value); + break; + case 25: + var value = new proto.io.bisq.protobuffer.ContractInfo; + reader.readMessage(value,proto.io.bisq.protobuffer.ContractInfo.deserializeBinaryFromReader); + msg.setContract(value); + break; + case 100: + var value = /** @type {string} */ (reader.readString()); + msg.setMakerdeposittxid(value); + break; + case 101: + var value = /** @type {string} */ (reader.readString()); + msg.setTakerdeposittxid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.TradeInfo.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.TradeInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TradeInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOffer(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.OfferInfo.serializeBinaryToWriter + ); + } + f = message.getTradeid(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getShortid(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getDate(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } + f = message.getRole(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getTxfeeaslong(); + if (f !== 0) { + writer.writeUint64( + 7, + f + ); + } + f = message.getTakerfeeaslong(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } + f = message.getTakerfeetxid(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } + f = message.getPayouttxid(); + if (f.length > 0) { + writer.writeString( + 11, + f + ); + } + f = message.getTradeamountaslong(); + if (f !== 0) { + writer.writeUint64( + 12, + f + ); + } + f = message.getTradeprice(); + if (f !== 0) { + writer.writeUint64( + 13, + f + ); + } + f = message.getTradingpeernodeaddress(); + if (f.length > 0) { + writer.writeString( + 14, + f + ); + } + f = message.getState(); + if (f.length > 0) { + writer.writeString( + 15, + f + ); + } + f = message.getPhase(); + if (f.length > 0) { + writer.writeString( + 16, + f + ); + } + f = message.getTradeperiodstate(); + if (f.length > 0) { + writer.writeString( + 17, + f + ); + } + f = message.getIsdepositpublished(); + if (f) { + writer.writeBool( + 18, + f + ); + } + f = message.getIsdepositconfirmed(); + if (f) { + writer.writeBool( + 19, + f + ); + } + f = message.getIsfiatsent(); + if (f) { + writer.writeBool( + 20, + f + ); + } + f = message.getIsfiatreceived(); + if (f) { + writer.writeBool( + 21, + f + ); + } + f = message.getIspayoutpublished(); + if (f) { + writer.writeBool( + 22, + f + ); + } + f = message.getIswithdrawn(); + if (f) { + writer.writeBool( + 23, + f + ); + } + f = message.getContractasjson(); + if (f.length > 0) { + writer.writeString( + 24, + f + ); + } + f = message.getContract(); + if (f != null) { + writer.writeMessage( + 25, + f, + proto.io.bisq.protobuffer.ContractInfo.serializeBinaryToWriter + ); + } + f = message.getMakerdeposittxid(); + if (f.length > 0) { + writer.writeString( + 100, + f + ); + } + f = message.getTakerdeposittxid(); + if (f.length > 0) { + writer.writeString( + 101, + f + ); + } +}; + + +/** + * optional OfferInfo offer = 1; + * @return {?proto.io.bisq.protobuffer.OfferInfo} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getOffer = function() { + return /** @type{?proto.io.bisq.protobuffer.OfferInfo} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.OfferInfo, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.OfferInfo|undefined} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this +*/ +proto.io.bisq.protobuffer.TradeInfo.prototype.setOffer = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.clearOffer = function() { + return this.setOffer(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.hasOffer = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string tradeId = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getTradeid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setTradeid = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string shortId = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getShortid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setShortid = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional uint64 date = 4; * @return {number} */ -proto.io.bisq.protobuffer.GetBalanceReply.prototype.getBalance = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.io.bisq.protobuffer.TradeInfo.prototype.getDate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value - * @return {!proto.io.bisq.protobuffer.GetBalanceReply} returns this + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this */ -proto.io.bisq.protobuffer.GetBalanceReply.prototype.setBalance = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.io.bisq.protobuffer.TradeInfo.prototype.setDate = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional string role = 5; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getRole = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setRole = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional uint64 txFeeAsLong = 7; + * @return {number} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getTxfeeaslong = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setTxfeeaslong = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional uint64 takerFeeAsLong = 8; + * @return {number} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getTakerfeeaslong = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setTakerfeeaslong = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional string takerFeeTxId = 9; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getTakerfeetxid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setTakerfeetxid = function(value) { + return jspb.Message.setProto3StringField(this, 9, value); +}; + + +/** + * optional string payoutTxId = 11; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getPayouttxid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setPayouttxid = function(value) { + return jspb.Message.setProto3StringField(this, 11, value); +}; + + +/** + * optional uint64 tradeAmountAsLong = 12; + * @return {number} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getTradeamountaslong = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setTradeamountaslong = function(value) { + return jspb.Message.setProto3IntField(this, 12, value); +}; + + +/** + * optional uint64 tradePrice = 13; + * @return {number} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getTradeprice = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setTradeprice = function(value) { + return jspb.Message.setProto3IntField(this, 13, value); +}; + + +/** + * optional string tradingPeerNodeAddress = 14; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getTradingpeernodeaddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setTradingpeernodeaddress = function(value) { + return jspb.Message.setProto3StringField(this, 14, value); +}; + + +/** + * optional string state = 15; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getState = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setState = function(value) { + return jspb.Message.setProto3StringField(this, 15, value); +}; + + +/** + * optional string phase = 16; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getPhase = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setPhase = function(value) { + return jspb.Message.setProto3StringField(this, 16, value); +}; + + +/** + * optional string tradePeriodState = 17; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getTradeperiodstate = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setTradeperiodstate = function(value) { + return jspb.Message.setProto3StringField(this, 17, value); +}; + + +/** + * optional bool isDepositPublished = 18; + * @return {boolean} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getIsdepositpublished = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 18, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setIsdepositpublished = function(value) { + return jspb.Message.setProto3BooleanField(this, 18, value); +}; + + +/** + * optional bool isDepositConfirmed = 19; + * @return {boolean} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getIsdepositconfirmed = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 19, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setIsdepositconfirmed = function(value) { + return jspb.Message.setProto3BooleanField(this, 19, value); +}; + + +/** + * optional bool isFiatSent = 20; + * @return {boolean} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getIsfiatsent = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 20, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setIsfiatsent = function(value) { + return jspb.Message.setProto3BooleanField(this, 20, value); +}; + + +/** + * optional bool isFiatReceived = 21; + * @return {boolean} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getIsfiatreceived = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 21, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setIsfiatreceived = function(value) { + return jspb.Message.setProto3BooleanField(this, 21, value); +}; + + +/** + * optional bool isPayoutPublished = 22; + * @return {boolean} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getIspayoutpublished = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 22, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setIspayoutpublished = function(value) { + return jspb.Message.setProto3BooleanField(this, 22, value); +}; + + +/** + * optional bool isWithdrawn = 23; + * @return {boolean} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getIswithdrawn = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 23, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setIswithdrawn = function(value) { + return jspb.Message.setProto3BooleanField(this, 23, value); +}; + + +/** + * optional string contractAsJson = 24; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getContractasjson = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setContractasjson = function(value) { + return jspb.Message.setProto3StringField(this, 24, value); +}; + + +/** + * optional ContractInfo contract = 25; + * @return {?proto.io.bisq.protobuffer.ContractInfo} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getContract = function() { + return /** @type{?proto.io.bisq.protobuffer.ContractInfo} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ContractInfo, 25)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.ContractInfo|undefined} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this +*/ +proto.io.bisq.protobuffer.TradeInfo.prototype.setContract = function(value) { + return jspb.Message.setWrapperField(this, 25, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.clearContract = function() { + return this.setContract(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.hasContract = function() { + return jspb.Message.getField(this, 25) != null; +}; + + +/** + * optional string makerDepositTxId = 100; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getMakerdeposittxid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 100, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setMakerdeposittxid = function(value) { + return jspb.Message.setProto3StringField(this, 100, value); +}; + + +/** + * optional string takerDepositTxId = 101; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.getTakerdeposittxid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 101, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this + */ +proto.io.bisq.protobuffer.TradeInfo.prototype.setTakerdeposittxid = function(value) { + return jspb.Message.setProto3StringField(this, 101, 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.ContractInfo.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.ContractInfo.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.ContractInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ContractInfo.toObject = function(includeInstance, msg) { + var f, obj = { + buyernodeaddress: jspb.Message.getFieldWithDefault(msg, 1, ""), + sellernodeaddress: jspb.Message.getFieldWithDefault(msg, 2, ""), + isbuyermakerandsellertaker: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + makeraccountid: jspb.Message.getFieldWithDefault(msg, 6, ""), + takeraccountid: jspb.Message.getFieldWithDefault(msg, 7, ""), + makerpaymentaccountpayload: (f = msg.getMakerpaymentaccountpayload()) && proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.toObject(includeInstance, f), + takerpaymentaccountpayload: (f = msg.getTakerpaymentaccountpayload()) && proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.toObject(includeInstance, f), + makerpayoutaddressstring: jspb.Message.getFieldWithDefault(msg, 10, ""), + takerpayoutaddressstring: jspb.Message.getFieldWithDefault(msg, 11, ""), + locktime: jspb.Message.getFieldWithDefault(msg, 12, 0), + arbitratornodeaddress: jspb.Message.getFieldWithDefault(msg, 100, "") + }; + + 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.ContractInfo} + */ +proto.io.bisq.protobuffer.ContractInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.ContractInfo; + return proto.io.bisq.protobuffer.ContractInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.ContractInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.ContractInfo} + */ +proto.io.bisq.protobuffer.ContractInfo.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.setBuyernodeaddress(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setSellernodeaddress(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsbuyermakerandsellertaker(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setMakeraccountid(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setTakeraccountid(value); + break; + case 8: + var value = new proto.io.bisq.protobuffer.PaymentAccountPayloadInfo; + reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.deserializeBinaryFromReader); + msg.setMakerpaymentaccountpayload(value); + break; + case 9: + var value = new proto.io.bisq.protobuffer.PaymentAccountPayloadInfo; + reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.deserializeBinaryFromReader); + msg.setTakerpaymentaccountpayload(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setMakerpayoutaddressstring(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setTakerpayoutaddressstring(value); + break; + case 12: + var value = /** @type {number} */ (reader.readUint64()); + msg.setLocktime(value); + break; + case 100: + var value = /** @type {string} */ (reader.readString()); + msg.setArbitratornodeaddress(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.ContractInfo.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.ContractInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ContractInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBuyernodeaddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getSellernodeaddress(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getIsbuyermakerandsellertaker(); + if (f) { + writer.writeBool( + 5, + f + ); + } + f = message.getMakeraccountid(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getTakeraccountid(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getMakerpaymentaccountpayload(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.serializeBinaryToWriter + ); + } + f = message.getTakerpaymentaccountpayload(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.serializeBinaryToWriter + ); + } + f = message.getMakerpayoutaddressstring(); + if (f.length > 0) { + writer.writeString( + 10, + f + ); + } + f = message.getTakerpayoutaddressstring(); + if (f.length > 0) { + writer.writeString( + 11, + f + ); + } + f = message.getLocktime(); + if (f !== 0) { + writer.writeUint64( + 12, + f + ); + } + f = message.getArbitratornodeaddress(); + if (f.length > 0) { + writer.writeString( + 100, + f + ); + } +}; + + +/** + * optional string buyerNodeAddress = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.getBuyernodeaddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.ContractInfo} returns this + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.setBuyernodeaddress = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string sellerNodeAddress = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.getSellernodeaddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.ContractInfo} returns this + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.setSellernodeaddress = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional bool isBuyerMakerAndSellerTaker = 5; + * @return {boolean} + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.getIsbuyermakerandsellertaker = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.ContractInfo} returns this + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.setIsbuyermakerandsellertaker = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); +}; + + +/** + * optional string makerAccountId = 6; + * @return {string} + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.getMakeraccountid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.ContractInfo} returns this + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.setMakeraccountid = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * optional string takerAccountId = 7; + * @return {string} + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.getTakeraccountid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.ContractInfo} returns this + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.setTakeraccountid = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + +/** + * optional PaymentAccountPayloadInfo makerPaymentAccountPayload = 8; + * @return {?proto.io.bisq.protobuffer.PaymentAccountPayloadInfo} + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.getMakerpaymentaccountpayload = function() { + return /** @type{?proto.io.bisq.protobuffer.PaymentAccountPayloadInfo} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PaymentAccountPayloadInfo, 8)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.PaymentAccountPayloadInfo|undefined} value + * @return {!proto.io.bisq.protobuffer.ContractInfo} returns this +*/ +proto.io.bisq.protobuffer.ContractInfo.prototype.setMakerpaymentaccountpayload = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.ContractInfo} returns this + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.clearMakerpaymentaccountpayload = function() { + return this.setMakerpaymentaccountpayload(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.hasMakerpaymentaccountpayload = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional PaymentAccountPayloadInfo takerPaymentAccountPayload = 9; + * @return {?proto.io.bisq.protobuffer.PaymentAccountPayloadInfo} + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.getTakerpaymentaccountpayload = function() { + return /** @type{?proto.io.bisq.protobuffer.PaymentAccountPayloadInfo} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PaymentAccountPayloadInfo, 9)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.PaymentAccountPayloadInfo|undefined} value + * @return {!proto.io.bisq.protobuffer.ContractInfo} returns this +*/ +proto.io.bisq.protobuffer.ContractInfo.prototype.setTakerpaymentaccountpayload = function(value) { + return jspb.Message.setWrapperField(this, 9, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.ContractInfo} returns this + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.clearTakerpaymentaccountpayload = function() { + return this.setTakerpaymentaccountpayload(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.hasTakerpaymentaccountpayload = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional string makerPayoutAddressString = 10; + * @return {string} + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.getMakerpayoutaddressstring = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.ContractInfo} returns this + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.setMakerpayoutaddressstring = function(value) { + return jspb.Message.setProto3StringField(this, 10, value); +}; + + +/** + * optional string takerPayoutAddressString = 11; + * @return {string} + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.getTakerpayoutaddressstring = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.ContractInfo} returns this + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.setTakerpayoutaddressstring = function(value) { + return jspb.Message.setProto3StringField(this, 11, value); +}; + + +/** + * optional uint64 lockTime = 12; + * @return {number} + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.getLocktime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.ContractInfo} returns this + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.setLocktime = function(value) { + return jspb.Message.setProto3IntField(this, 12, value); +}; + + +/** + * optional string arbitratorNodeAddress = 100; + * @return {string} + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.getArbitratornodeaddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 100, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.ContractInfo} returns this + */ +proto.io.bisq.protobuffer.ContractInfo.prototype.setArbitratornodeaddress = function(value) { + return jspb.Message.setProto3StringField(this, 100, 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.PaymentAccountPayloadInfo.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.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.PaymentAccountPayloadInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + paymentmethodid: jspb.Message.getFieldWithDefault(msg, 2, ""), + address: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + 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.PaymentAccountPayloadInfo} + */ +proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.PaymentAccountPayloadInfo; + return proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.PaymentAccountPayloadInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.PaymentAccountPayloadInfo} + */ +proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.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.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setPaymentmethodid(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAddress(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.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.PaymentAccountPayloadInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getPaymentmethodid(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.PaymentAccountPayloadInfo} returns this + */ +proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string paymentMethodId = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.prototype.getPaymentmethodid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.PaymentAccountPayloadInfo} returns this + */ +proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.prototype.setPaymentmethodid = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string address = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.PaymentAccountPayloadInfo} returns this + */ +proto.io.bisq.protobuffer.PaymentAccountPayloadInfo.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(this, 3, 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.TxFeeRateInfo.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.TxFeeRateInfo.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.TxFeeRateInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TxFeeRateInfo.toObject = function(includeInstance, msg) { + var f, obj = { + usecustomtxfeerate: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + customtxfeerate: jspb.Message.getFieldWithDefault(msg, 2, 0), + feeservicerate: jspb.Message.getFieldWithDefault(msg, 3, 0), + lastfeeservicerequestts: jspb.Message.getFieldWithDefault(msg, 4, 0), + minfeeservicerate: jspb.Message.getFieldWithDefault(msg, 5, 0) + }; + + 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.TxFeeRateInfo} + */ +proto.io.bisq.protobuffer.TxFeeRateInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.TxFeeRateInfo; + return proto.io.bisq.protobuffer.TxFeeRateInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.TxFeeRateInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.TxFeeRateInfo} + */ +proto.io.bisq.protobuffer.TxFeeRateInfo.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.setUsecustomtxfeerate(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCustomtxfeerate(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setFeeservicerate(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setLastfeeservicerequestts(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMinfeeservicerate(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.TxFeeRateInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.TxFeeRateInfo.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.TxFeeRateInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TxFeeRateInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUsecustomtxfeerate(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getCustomtxfeerate(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getFeeservicerate(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getLastfeeservicerequestts(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } + f = message.getMinfeeservicerate(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } +}; + + +/** + * optional bool useCustomTxFeeRate = 1; + * @return {boolean} + */ +proto.io.bisq.protobuffer.TxFeeRateInfo.prototype.getUsecustomtxfeerate = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.TxFeeRateInfo} returns this + */ +proto.io.bisq.protobuffer.TxFeeRateInfo.prototype.setUsecustomtxfeerate = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * optional uint64 customTxFeeRate = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.TxFeeRateInfo.prototype.getCustomtxfeerate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TxFeeRateInfo} returns this + */ +proto.io.bisq.protobuffer.TxFeeRateInfo.prototype.setCustomtxfeerate = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint64 feeServiceRate = 3; + * @return {number} + */ +proto.io.bisq.protobuffer.TxFeeRateInfo.prototype.getFeeservicerate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TxFeeRateInfo} returns this + */ +proto.io.bisq.protobuffer.TxFeeRateInfo.prototype.setFeeservicerate = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional uint64 lastFeeServiceRequestTs = 4; + * @return {number} + */ +proto.io.bisq.protobuffer.TxFeeRateInfo.prototype.getLastfeeservicerequestts = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TxFeeRateInfo} returns this + */ +proto.io.bisq.protobuffer.TxFeeRateInfo.prototype.setLastfeeservicerequestts = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional uint64 minFeeServiceRate = 5; + * @return {number} + */ +proto.io.bisq.protobuffer.TxFeeRateInfo.prototype.getMinfeeservicerate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TxFeeRateInfo} returns this + */ +proto.io.bisq.protobuffer.TxFeeRateInfo.prototype.setMinfeeservicerate = function(value) { + return jspb.Message.setProto3IntField(this, 5, 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.TxInfo.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.TxInfo.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.TxInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TxInfo.toObject = function(includeInstance, msg) { + var f, obj = { + txid: jspb.Message.getFieldWithDefault(msg, 1, ""), + inputsum: jspb.Message.getFieldWithDefault(msg, 2, 0), + outputsum: jspb.Message.getFieldWithDefault(msg, 3, 0), + fee: jspb.Message.getFieldWithDefault(msg, 4, 0), + size: jspb.Message.getFieldWithDefault(msg, 5, 0), + ispending: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + memo: jspb.Message.getFieldWithDefault(msg, 7, "") + }; + + 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.TxInfo} + */ +proto.io.bisq.protobuffer.TxInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.TxInfo; + return proto.io.bisq.protobuffer.TxInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.TxInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.TxInfo} + */ +proto.io.bisq.protobuffer.TxInfo.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.setTxid(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setInputsum(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setOutputsum(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setFee(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt32()); + msg.setSize(value); + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIspending(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.TxInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.TxInfo.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.TxInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TxInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTxid(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getInputsum(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getOutputsum(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getFee(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } + f = message.getSize(); + if (f !== 0) { + writer.writeInt32( + 5, + f + ); + } + f = message.getIspending(); + if (f) { + writer.writeBool( + 6, + f + ); + } + f = message.getMemo(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } +}; + + +/** + * optional string txId = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.TxInfo.prototype.getTxid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TxInfo} returns this + */ +proto.io.bisq.protobuffer.TxInfo.prototype.setTxid = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional uint64 inputSum = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.TxInfo.prototype.getInputsum = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TxInfo} returns this + */ +proto.io.bisq.protobuffer.TxInfo.prototype.setInputsum = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint64 outputSum = 3; + * @return {number} + */ +proto.io.bisq.protobuffer.TxInfo.prototype.getOutputsum = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TxInfo} returns this + */ +proto.io.bisq.protobuffer.TxInfo.prototype.setOutputsum = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional uint64 fee = 4; + * @return {number} + */ +proto.io.bisq.protobuffer.TxInfo.prototype.getFee = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TxInfo} returns this + */ +proto.io.bisq.protobuffer.TxInfo.prototype.setFee = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional int32 size = 5; + * @return {number} + */ +proto.io.bisq.protobuffer.TxInfo.prototype.getSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TxInfo} returns this + */ +proto.io.bisq.protobuffer.TxInfo.prototype.setSize = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional bool isPending = 6; + * @return {boolean} + */ +proto.io.bisq.protobuffer.TxInfo.prototype.getIspending = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.TxInfo} returns this + */ +proto.io.bisq.protobuffer.TxInfo.prototype.setIspending = function(value) { + return jspb.Message.setProto3BooleanField(this, 6, value); +}; + + +/** + * optional string memo = 7; + * @return {string} + */ +proto.io.bisq.protobuffer.TxInfo.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TxInfo} returns this + */ +proto.io.bisq.protobuffer.TxInfo.prototype.setMemo = function(value) { + return jspb.Message.setProto3StringField(this, 7, 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.GetBalancesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetBalancesRequest.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.GetBalancesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetBalancesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + currencycode: 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.GetBalancesRequest} + */ +proto.io.bisq.protobuffer.GetBalancesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetBalancesRequest; + return proto.io.bisq.protobuffer.GetBalancesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetBalancesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetBalancesRequest} + */ +proto.io.bisq.protobuffer.GetBalancesRequest.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.setCurrencycode(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetBalancesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetBalancesRequest.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.GetBalancesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetBalancesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCurrencycode(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string currencyCode = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.GetBalancesRequest.prototype.getCurrencycode = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.GetBalancesRequest} returns this + */ +proto.io.bisq.protobuffer.GetBalancesRequest.prototype.setCurrencycode = 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.GetBalancesReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetBalancesReply.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.GetBalancesReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetBalancesReply.toObject = function(includeInstance, msg) { + var f, obj = { + balances: (f = msg.getBalances()) && proto.io.bisq.protobuffer.BalancesInfo.toObject(includeInstance, f) + }; + + 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.GetBalancesReply} + */ +proto.io.bisq.protobuffer.GetBalancesReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetBalancesReply; + return proto.io.bisq.protobuffer.GetBalancesReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetBalancesReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetBalancesReply} + */ +proto.io.bisq.protobuffer.GetBalancesReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.io.bisq.protobuffer.BalancesInfo; + reader.readMessage(value,proto.io.bisq.protobuffer.BalancesInfo.deserializeBinaryFromReader); + msg.setBalances(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetBalancesReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetBalancesReply.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.GetBalancesReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetBalancesReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBalances(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.BalancesInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional BalancesInfo balances = 1; + * @return {?proto.io.bisq.protobuffer.BalancesInfo} + */ +proto.io.bisq.protobuffer.GetBalancesReply.prototype.getBalances = function() { + return /** @type{?proto.io.bisq.protobuffer.BalancesInfo} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.BalancesInfo, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.BalancesInfo|undefined} value + * @return {!proto.io.bisq.protobuffer.GetBalancesReply} returns this +*/ +proto.io.bisq.protobuffer.GetBalancesReply.prototype.setBalances = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.GetBalancesReply} returns this + */ +proto.io.bisq.protobuffer.GetBalancesReply.prototype.clearBalances = function() { + return this.setBalances(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.GetBalancesReply.prototype.hasBalances = function() { + return jspb.Message.getField(this, 1) != null; }; @@ -4021,6 +12214,2305 @@ proto.io.bisq.protobuffer.GetAddressBalanceReply.prototype.hasAddressbalanceinfo +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.GetUnusedBsqAddressRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest.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.GetUnusedBsqAddressRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest.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.GetUnusedBsqAddressRequest} + */ +proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest; + return proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest} + */ +proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest.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.GetUnusedBsqAddressRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest.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.GetUnusedBsqAddressRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest.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.GetUnusedBsqAddressReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetUnusedBsqAddressReply.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.GetUnusedBsqAddressReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetUnusedBsqAddressReply.toObject = function(includeInstance, msg) { + var f, obj = { + address: 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.GetUnusedBsqAddressReply} + */ +proto.io.bisq.protobuffer.GetUnusedBsqAddressReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetUnusedBsqAddressReply; + return proto.io.bisq.protobuffer.GetUnusedBsqAddressReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetUnusedBsqAddressReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetUnusedBsqAddressReply} + */ +proto.io.bisq.protobuffer.GetUnusedBsqAddressReply.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.setAddress(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetUnusedBsqAddressReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetUnusedBsqAddressReply.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.GetUnusedBsqAddressReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetUnusedBsqAddressReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string address = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.GetUnusedBsqAddressReply.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.GetUnusedBsqAddressReply} returns this + */ +proto.io.bisq.protobuffer.GetUnusedBsqAddressReply.prototype.setAddress = 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.SendBsqRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.SendBsqRequest.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.SendBsqRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.SendBsqRequest.toObject = function(includeInstance, msg) { + var f, obj = { + address: jspb.Message.getFieldWithDefault(msg, 1, ""), + amount: jspb.Message.getFieldWithDefault(msg, 2, ""), + txfeerate: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + 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.SendBsqRequest} + */ +proto.io.bisq.protobuffer.SendBsqRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.SendBsqRequest; + return proto.io.bisq.protobuffer.SendBsqRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.SendBsqRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.SendBsqRequest} + */ +proto.io.bisq.protobuffer.SendBsqRequest.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.setAddress(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setAmount(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setTxfeerate(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.SendBsqRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.SendBsqRequest.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.SendBsqRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.SendBsqRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAmount(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getTxfeerate(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string address = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.SendBsqRequest.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.SendBsqRequest} returns this + */ +proto.io.bisq.protobuffer.SendBsqRequest.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string amount = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.SendBsqRequest.prototype.getAmount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.SendBsqRequest} returns this + */ +proto.io.bisq.protobuffer.SendBsqRequest.prototype.setAmount = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string txFeeRate = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.SendBsqRequest.prototype.getTxfeerate = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.SendBsqRequest} returns this + */ +proto.io.bisq.protobuffer.SendBsqRequest.prototype.setTxfeerate = function(value) { + return jspb.Message.setProto3StringField(this, 3, 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.SendBsqReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.SendBsqReply.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.SendBsqReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.SendBsqReply.toObject = function(includeInstance, msg) { + var f, obj = { + txinfo: (f = msg.getTxinfo()) && proto.io.bisq.protobuffer.TxInfo.toObject(includeInstance, f) + }; + + 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.SendBsqReply} + */ +proto.io.bisq.protobuffer.SendBsqReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.SendBsqReply; + return proto.io.bisq.protobuffer.SendBsqReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.SendBsqReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.SendBsqReply} + */ +proto.io.bisq.protobuffer.SendBsqReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.io.bisq.protobuffer.TxInfo; + reader.readMessage(value,proto.io.bisq.protobuffer.TxInfo.deserializeBinaryFromReader); + msg.setTxinfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.SendBsqReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.SendBsqReply.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.SendBsqReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.SendBsqReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTxinfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.TxInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional TxInfo txInfo = 1; + * @return {?proto.io.bisq.protobuffer.TxInfo} + */ +proto.io.bisq.protobuffer.SendBsqReply.prototype.getTxinfo = function() { + return /** @type{?proto.io.bisq.protobuffer.TxInfo} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TxInfo, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.TxInfo|undefined} value + * @return {!proto.io.bisq.protobuffer.SendBsqReply} returns this +*/ +proto.io.bisq.protobuffer.SendBsqReply.prototype.setTxinfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.SendBsqReply} returns this + */ +proto.io.bisq.protobuffer.SendBsqReply.prototype.clearTxinfo = function() { + return this.setTxinfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.SendBsqReply.prototype.hasTxinfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +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.SendBtcRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.SendBtcRequest.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.SendBtcRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.SendBtcRequest.toObject = function(includeInstance, msg) { + var f, obj = { + address: jspb.Message.getFieldWithDefault(msg, 1, ""), + amount: jspb.Message.getFieldWithDefault(msg, 2, ""), + txfeerate: jspb.Message.getFieldWithDefault(msg, 3, ""), + memo: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + 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.SendBtcRequest} + */ +proto.io.bisq.protobuffer.SendBtcRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.SendBtcRequest; + return proto.io.bisq.protobuffer.SendBtcRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.SendBtcRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.SendBtcRequest} + */ +proto.io.bisq.protobuffer.SendBtcRequest.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.setAddress(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setAmount(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setTxfeerate(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.SendBtcRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.SendBtcRequest.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.SendBtcRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.SendBtcRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAmount(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getTxfeerate(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getMemo(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional string address = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.SendBtcRequest.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.SendBtcRequest} returns this + */ +proto.io.bisq.protobuffer.SendBtcRequest.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string amount = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.SendBtcRequest.prototype.getAmount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.SendBtcRequest} returns this + */ +proto.io.bisq.protobuffer.SendBtcRequest.prototype.setAmount = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string txFeeRate = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.SendBtcRequest.prototype.getTxfeerate = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.SendBtcRequest} returns this + */ +proto.io.bisq.protobuffer.SendBtcRequest.prototype.setTxfeerate = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string memo = 4; + * @return {string} + */ +proto.io.bisq.protobuffer.SendBtcRequest.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.SendBtcRequest} returns this + */ +proto.io.bisq.protobuffer.SendBtcRequest.prototype.setMemo = function(value) { + return jspb.Message.setProto3StringField(this, 4, 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.SendBtcReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.SendBtcReply.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.SendBtcReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.SendBtcReply.toObject = function(includeInstance, msg) { + var f, obj = { + txinfo: (f = msg.getTxinfo()) && proto.io.bisq.protobuffer.TxInfo.toObject(includeInstance, f) + }; + + 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.SendBtcReply} + */ +proto.io.bisq.protobuffer.SendBtcReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.SendBtcReply; + return proto.io.bisq.protobuffer.SendBtcReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.SendBtcReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.SendBtcReply} + */ +proto.io.bisq.protobuffer.SendBtcReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.io.bisq.protobuffer.TxInfo; + reader.readMessage(value,proto.io.bisq.protobuffer.TxInfo.deserializeBinaryFromReader); + msg.setTxinfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.SendBtcReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.SendBtcReply.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.SendBtcReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.SendBtcReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTxinfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.TxInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional TxInfo txInfo = 1; + * @return {?proto.io.bisq.protobuffer.TxInfo} + */ +proto.io.bisq.protobuffer.SendBtcReply.prototype.getTxinfo = function() { + return /** @type{?proto.io.bisq.protobuffer.TxInfo} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TxInfo, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.TxInfo|undefined} value + * @return {!proto.io.bisq.protobuffer.SendBtcReply} returns this +*/ +proto.io.bisq.protobuffer.SendBtcReply.prototype.setTxinfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.SendBtcReply} returns this + */ +proto.io.bisq.protobuffer.SendBtcReply.prototype.clearTxinfo = function() { + return this.setTxinfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.SendBtcReply.prototype.hasTxinfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +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.VerifyBsqSentToAddressRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest.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.VerifyBsqSentToAddressRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest.toObject = function(includeInstance, msg) { + var f, obj = { + address: jspb.Message.getFieldWithDefault(msg, 1, ""), + amount: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + 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.VerifyBsqSentToAddressRequest} + */ +proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest; + return proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest} + */ +proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest.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.setAddress(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setAmount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest.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.VerifyBsqSentToAddressRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAmount(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string address = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest} returns this + */ +proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string amount = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest.prototype.getAmount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest} returns this + */ +proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest.prototype.setAmount = function(value) { + return jspb.Message.setProto3StringField(this, 2, 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.VerifyBsqSentToAddressReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply.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.VerifyBsqSentToAddressReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply.toObject = function(includeInstance, msg) { + var f, obj = { + isamountreceived: 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.VerifyBsqSentToAddressReply} + */ +proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply; + return proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply} + */ +proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply.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.setIsamountreceived(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply.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.VerifyBsqSentToAddressReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIsamountreceived(); + if (f) { + writer.writeBool( + 1, + f + ); + } +}; + + +/** + * optional bool isAmountReceived = 1; + * @return {boolean} + */ +proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply.prototype.getIsamountreceived = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply} returns this + */ +proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply.prototype.setIsamountreceived = 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.GetTxFeeRateRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetTxFeeRateRequest.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.GetTxFeeRateRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetTxFeeRateRequest.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.GetTxFeeRateRequest} + */ +proto.io.bisq.protobuffer.GetTxFeeRateRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetTxFeeRateRequest; + return proto.io.bisq.protobuffer.GetTxFeeRateRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetTxFeeRateRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetTxFeeRateRequest} + */ +proto.io.bisq.protobuffer.GetTxFeeRateRequest.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.GetTxFeeRateRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetTxFeeRateRequest.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.GetTxFeeRateRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetTxFeeRateRequest.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.GetTxFeeRateReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetTxFeeRateReply.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.GetTxFeeRateReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetTxFeeRateReply.toObject = function(includeInstance, msg) { + var f, obj = { + txfeerateinfo: (f = msg.getTxfeerateinfo()) && proto.io.bisq.protobuffer.TxFeeRateInfo.toObject(includeInstance, f) + }; + + 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.GetTxFeeRateReply} + */ +proto.io.bisq.protobuffer.GetTxFeeRateReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetTxFeeRateReply; + return proto.io.bisq.protobuffer.GetTxFeeRateReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetTxFeeRateReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetTxFeeRateReply} + */ +proto.io.bisq.protobuffer.GetTxFeeRateReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.io.bisq.protobuffer.TxFeeRateInfo; + reader.readMessage(value,proto.io.bisq.protobuffer.TxFeeRateInfo.deserializeBinaryFromReader); + msg.setTxfeerateinfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetTxFeeRateReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetTxFeeRateReply.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.GetTxFeeRateReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetTxFeeRateReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTxfeerateinfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.TxFeeRateInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional TxFeeRateInfo txFeeRateInfo = 1; + * @return {?proto.io.bisq.protobuffer.TxFeeRateInfo} + */ +proto.io.bisq.protobuffer.GetTxFeeRateReply.prototype.getTxfeerateinfo = function() { + return /** @type{?proto.io.bisq.protobuffer.TxFeeRateInfo} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TxFeeRateInfo, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.TxFeeRateInfo|undefined} value + * @return {!proto.io.bisq.protobuffer.GetTxFeeRateReply} returns this +*/ +proto.io.bisq.protobuffer.GetTxFeeRateReply.prototype.setTxfeerateinfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.GetTxFeeRateReply} returns this + */ +proto.io.bisq.protobuffer.GetTxFeeRateReply.prototype.clearTxfeerateinfo = function() { + return this.setTxfeerateinfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.GetTxFeeRateReply.prototype.hasTxfeerateinfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +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.SetTxFeeRatePreferenceRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest.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.SetTxFeeRatePreferenceRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest.toObject = function(includeInstance, msg) { + var f, obj = { + txfeeratepreference: jspb.Message.getFieldWithDefault(msg, 1, 0) + }; + + 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.SetTxFeeRatePreferenceRequest} + */ +proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest; + return proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest} + */ +proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTxfeeratepreference(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest.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.SetTxFeeRatePreferenceRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTxfeeratepreference(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } +}; + + +/** + * optional uint64 txFeeRatePreference = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest.prototype.getTxfeeratepreference = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest} returns this + */ +proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest.prototype.setTxfeeratepreference = function(value) { + return jspb.Message.setProto3IntField(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.SetTxFeeRatePreferenceReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply.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.SetTxFeeRatePreferenceReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply.toObject = function(includeInstance, msg) { + var f, obj = { + txfeerateinfo: (f = msg.getTxfeerateinfo()) && proto.io.bisq.protobuffer.TxFeeRateInfo.toObject(includeInstance, f) + }; + + 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.SetTxFeeRatePreferenceReply} + */ +proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply; + return proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply} + */ +proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.io.bisq.protobuffer.TxFeeRateInfo; + reader.readMessage(value,proto.io.bisq.protobuffer.TxFeeRateInfo.deserializeBinaryFromReader); + msg.setTxfeerateinfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply.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.SetTxFeeRatePreferenceReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTxfeerateinfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.TxFeeRateInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional TxFeeRateInfo txFeeRateInfo = 1; + * @return {?proto.io.bisq.protobuffer.TxFeeRateInfo} + */ +proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply.prototype.getTxfeerateinfo = function() { + return /** @type{?proto.io.bisq.protobuffer.TxFeeRateInfo} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TxFeeRateInfo, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.TxFeeRateInfo|undefined} value + * @return {!proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply} returns this +*/ +proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply.prototype.setTxfeerateinfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply} returns this + */ +proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply.prototype.clearTxfeerateinfo = function() { + return this.setTxfeerateinfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply.prototype.hasTxfeerateinfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +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.UnsetTxFeeRatePreferenceRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest.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.UnsetTxFeeRatePreferenceRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest.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.UnsetTxFeeRatePreferenceRequest} + */ +proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest; + return proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest} + */ +proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest.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.UnsetTxFeeRatePreferenceRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest.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.UnsetTxFeeRatePreferenceRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest.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.UnsetTxFeeRatePreferenceReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply.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.UnsetTxFeeRatePreferenceReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply.toObject = function(includeInstance, msg) { + var f, obj = { + txfeerateinfo: (f = msg.getTxfeerateinfo()) && proto.io.bisq.protobuffer.TxFeeRateInfo.toObject(includeInstance, f) + }; + + 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.UnsetTxFeeRatePreferenceReply} + */ +proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply; + return proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply} + */ +proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.io.bisq.protobuffer.TxFeeRateInfo; + reader.readMessage(value,proto.io.bisq.protobuffer.TxFeeRateInfo.deserializeBinaryFromReader); + msg.setTxfeerateinfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply.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.UnsetTxFeeRatePreferenceReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTxfeerateinfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.TxFeeRateInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional TxFeeRateInfo txFeeRateInfo = 1; + * @return {?proto.io.bisq.protobuffer.TxFeeRateInfo} + */ +proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply.prototype.getTxfeerateinfo = function() { + return /** @type{?proto.io.bisq.protobuffer.TxFeeRateInfo} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TxFeeRateInfo, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.TxFeeRateInfo|undefined} value + * @return {!proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply} returns this +*/ +proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply.prototype.setTxfeerateinfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply} returns this + */ +proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply.prototype.clearTxfeerateinfo = function() { + return this.setTxfeerateinfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply.prototype.hasTxfeerateinfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +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.GetTransactionRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetTransactionRequest.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.GetTransactionRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetTransactionRequest.toObject = function(includeInstance, msg) { + var f, obj = { + txid: 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.GetTransactionRequest} + */ +proto.io.bisq.protobuffer.GetTransactionRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetTransactionRequest; + return proto.io.bisq.protobuffer.GetTransactionRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetTransactionRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetTransactionRequest} + */ +proto.io.bisq.protobuffer.GetTransactionRequest.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.setTxid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetTransactionRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetTransactionRequest.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.GetTransactionRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetTransactionRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTxid(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string txId = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.GetTransactionRequest.prototype.getTxid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.GetTransactionRequest} returns this + */ +proto.io.bisq.protobuffer.GetTransactionRequest.prototype.setTxid = 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.GetTransactionReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetTransactionReply.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.GetTransactionReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetTransactionReply.toObject = function(includeInstance, msg) { + var f, obj = { + txinfo: (f = msg.getTxinfo()) && proto.io.bisq.protobuffer.TxInfo.toObject(includeInstance, f) + }; + + 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.GetTransactionReply} + */ +proto.io.bisq.protobuffer.GetTransactionReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetTransactionReply; + return proto.io.bisq.protobuffer.GetTransactionReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetTransactionReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetTransactionReply} + */ +proto.io.bisq.protobuffer.GetTransactionReply.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.io.bisq.protobuffer.TxInfo; + reader.readMessage(value,proto.io.bisq.protobuffer.TxInfo.deserializeBinaryFromReader); + msg.setTxinfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetTransactionReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetTransactionReply.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.GetTransactionReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetTransactionReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTxinfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.TxInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional TxInfo txInfo = 1; + * @return {?proto.io.bisq.protobuffer.TxInfo} + */ +proto.io.bisq.protobuffer.GetTransactionReply.prototype.getTxinfo = function() { + return /** @type{?proto.io.bisq.protobuffer.TxInfo} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TxInfo, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.TxInfo|undefined} value + * @return {!proto.io.bisq.protobuffer.GetTransactionReply} returns this +*/ +proto.io.bisq.protobuffer.GetTransactionReply.prototype.setTxinfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.GetTransactionReply} returns this + */ +proto.io.bisq.protobuffer.GetTransactionReply.prototype.clearTxinfo = function() { + return this.setTxinfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.GetTransactionReply.prototype.hasTxinfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -5237,6 +15729,708 @@ proto.io.bisq.protobuffer.UnlockWalletReply.serializeBinaryToWriter = function(m +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.BalancesInfo.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.BalancesInfo.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.BalancesInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BalancesInfo.toObject = function(includeInstance, msg) { + var f, obj = { + bsq: (f = msg.getBsq()) && proto.io.bisq.protobuffer.BsqBalanceInfo.toObject(includeInstance, f), + btc: (f = msg.getBtc()) && proto.io.bisq.protobuffer.BtcBalanceInfo.toObject(includeInstance, f) + }; + + 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.BalancesInfo} + */ +proto.io.bisq.protobuffer.BalancesInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.BalancesInfo; + return proto.io.bisq.protobuffer.BalancesInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.BalancesInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.BalancesInfo} + */ +proto.io.bisq.protobuffer.BalancesInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.io.bisq.protobuffer.BsqBalanceInfo; + reader.readMessage(value,proto.io.bisq.protobuffer.BsqBalanceInfo.deserializeBinaryFromReader); + msg.setBsq(value); + break; + case 2: + var value = new proto.io.bisq.protobuffer.BtcBalanceInfo; + reader.readMessage(value,proto.io.bisq.protobuffer.BtcBalanceInfo.deserializeBinaryFromReader); + msg.setBtc(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.BalancesInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.BalancesInfo.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.BalancesInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BalancesInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBsq(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.BsqBalanceInfo.serializeBinaryToWriter + ); + } + f = message.getBtc(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.io.bisq.protobuffer.BtcBalanceInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional BsqBalanceInfo bsq = 1; + * @return {?proto.io.bisq.protobuffer.BsqBalanceInfo} + */ +proto.io.bisq.protobuffer.BalancesInfo.prototype.getBsq = function() { + return /** @type{?proto.io.bisq.protobuffer.BsqBalanceInfo} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.BsqBalanceInfo, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.BsqBalanceInfo|undefined} value + * @return {!proto.io.bisq.protobuffer.BalancesInfo} returns this +*/ +proto.io.bisq.protobuffer.BalancesInfo.prototype.setBsq = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.BalancesInfo} returns this + */ +proto.io.bisq.protobuffer.BalancesInfo.prototype.clearBsq = function() { + return this.setBsq(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.BalancesInfo.prototype.hasBsq = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional BtcBalanceInfo btc = 2; + * @return {?proto.io.bisq.protobuffer.BtcBalanceInfo} + */ +proto.io.bisq.protobuffer.BalancesInfo.prototype.getBtc = function() { + return /** @type{?proto.io.bisq.protobuffer.BtcBalanceInfo} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.BtcBalanceInfo, 2)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.BtcBalanceInfo|undefined} value + * @return {!proto.io.bisq.protobuffer.BalancesInfo} returns this +*/ +proto.io.bisq.protobuffer.BalancesInfo.prototype.setBtc = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.BalancesInfo} returns this + */ +proto.io.bisq.protobuffer.BalancesInfo.prototype.clearBtc = function() { + return this.setBtc(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.BalancesInfo.prototype.hasBtc = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +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.BsqBalanceInfo.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.BsqBalanceInfo.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.BsqBalanceInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BsqBalanceInfo.toObject = function(includeInstance, msg) { + var f, obj = { + availableconfirmedbalance: jspb.Message.getFieldWithDefault(msg, 1, 0), + unverifiedbalance: jspb.Message.getFieldWithDefault(msg, 2, 0), + unconfirmedchangebalance: jspb.Message.getFieldWithDefault(msg, 3, 0), + lockedforvotingbalance: jspb.Message.getFieldWithDefault(msg, 4, 0), + lockupbondsbalance: jspb.Message.getFieldWithDefault(msg, 5, 0), + unlockingbondsbalance: jspb.Message.getFieldWithDefault(msg, 6, 0) + }; + + 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.BsqBalanceInfo} + */ +proto.io.bisq.protobuffer.BsqBalanceInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.BsqBalanceInfo; + return proto.io.bisq.protobuffer.BsqBalanceInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.BsqBalanceInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.BsqBalanceInfo} + */ +proto.io.bisq.protobuffer.BsqBalanceInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setAvailableconfirmedbalance(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUnverifiedbalance(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUnconfirmedchangebalance(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setLockedforvotingbalance(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setLockupbondsbalance(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUnlockingbondsbalance(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.BsqBalanceInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.BsqBalanceInfo.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.BsqBalanceInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BsqBalanceInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAvailableconfirmedbalance(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getUnverifiedbalance(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getUnconfirmedchangebalance(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getLockedforvotingbalance(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } + f = message.getLockupbondsbalance(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } + f = message.getUnlockingbondsbalance(); + if (f !== 0) { + writer.writeUint64( + 6, + f + ); + } +}; + + +/** + * optional uint64 availableConfirmedBalance = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.BsqBalanceInfo.prototype.getAvailableconfirmedbalance = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BsqBalanceInfo} returns this + */ +proto.io.bisq.protobuffer.BsqBalanceInfo.prototype.setAvailableconfirmedbalance = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 unverifiedBalance = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.BsqBalanceInfo.prototype.getUnverifiedbalance = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BsqBalanceInfo} returns this + */ +proto.io.bisq.protobuffer.BsqBalanceInfo.prototype.setUnverifiedbalance = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint64 unconfirmedChangeBalance = 3; + * @return {number} + */ +proto.io.bisq.protobuffer.BsqBalanceInfo.prototype.getUnconfirmedchangebalance = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BsqBalanceInfo} returns this + */ +proto.io.bisq.protobuffer.BsqBalanceInfo.prototype.setUnconfirmedchangebalance = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional uint64 lockedForVotingBalance = 4; + * @return {number} + */ +proto.io.bisq.protobuffer.BsqBalanceInfo.prototype.getLockedforvotingbalance = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BsqBalanceInfo} returns this + */ +proto.io.bisq.protobuffer.BsqBalanceInfo.prototype.setLockedforvotingbalance = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional uint64 lockupBondsBalance = 5; + * @return {number} + */ +proto.io.bisq.protobuffer.BsqBalanceInfo.prototype.getLockupbondsbalance = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BsqBalanceInfo} returns this + */ +proto.io.bisq.protobuffer.BsqBalanceInfo.prototype.setLockupbondsbalance = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional uint64 unlockingBondsBalance = 6; + * @return {number} + */ +proto.io.bisq.protobuffer.BsqBalanceInfo.prototype.getUnlockingbondsbalance = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BsqBalanceInfo} returns this + */ +proto.io.bisq.protobuffer.BsqBalanceInfo.prototype.setUnlockingbondsbalance = function(value) { + return jspb.Message.setProto3IntField(this, 6, 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.BtcBalanceInfo.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.BtcBalanceInfo.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.BtcBalanceInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BtcBalanceInfo.toObject = function(includeInstance, msg) { + var f, obj = { + availablebalance: jspb.Message.getFieldWithDefault(msg, 1, 0), + reservedbalance: jspb.Message.getFieldWithDefault(msg, 2, 0), + totalavailablebalance: jspb.Message.getFieldWithDefault(msg, 3, 0), + lockedbalance: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + 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.BtcBalanceInfo} + */ +proto.io.bisq.protobuffer.BtcBalanceInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.BtcBalanceInfo; + return proto.io.bisq.protobuffer.BtcBalanceInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.BtcBalanceInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.BtcBalanceInfo} + */ +proto.io.bisq.protobuffer.BtcBalanceInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setAvailablebalance(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setReservedbalance(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalavailablebalance(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setLockedbalance(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.BtcBalanceInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.BtcBalanceInfo.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.BtcBalanceInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BtcBalanceInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAvailablebalance(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getReservedbalance(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getTotalavailablebalance(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getLockedbalance(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } +}; + + +/** + * optional uint64 availableBalance = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.BtcBalanceInfo.prototype.getAvailablebalance = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BtcBalanceInfo} returns this + */ +proto.io.bisq.protobuffer.BtcBalanceInfo.prototype.setAvailablebalance = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 reservedBalance = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.BtcBalanceInfo.prototype.getReservedbalance = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BtcBalanceInfo} returns this + */ +proto.io.bisq.protobuffer.BtcBalanceInfo.prototype.setReservedbalance = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint64 totalAvailableBalance = 3; + * @return {number} + */ +proto.io.bisq.protobuffer.BtcBalanceInfo.prototype.getTotalavailablebalance = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BtcBalanceInfo} returns this + */ +proto.io.bisq.protobuffer.BtcBalanceInfo.prototype.setTotalavailablebalance = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional uint64 lockedBalance = 4; + * @return {number} + */ +proto.io.bisq.protobuffer.BtcBalanceInfo.prototype.getLockedbalance = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BtcBalanceInfo} returns this + */ +proto.io.bisq.protobuffer.BtcBalanceInfo.prototype.setLockedbalance = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -5268,7 +16462,8 @@ proto.io.bisq.protobuffer.AddressBalanceInfo.toObject = function(includeInstance var f, obj = { address: jspb.Message.getFieldWithDefault(msg, 1, ""), balance: jspb.Message.getFieldWithDefault(msg, 2, 0), - numconfirmations: jspb.Message.getFieldWithDefault(msg, 3, 0) + numconfirmations: jspb.Message.getFieldWithDefault(msg, 3, 0), + isaddressunused: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) }; if (includeInstance) { @@ -5317,6 +16512,10 @@ proto.io.bisq.protobuffer.AddressBalanceInfo.deserializeBinaryFromReader = funct var value = /** @type {number} */ (reader.readInt64()); msg.setNumconfirmations(value); break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsaddressunused(value); + break; default: reader.skipField(); break; @@ -5367,6 +16566,13 @@ proto.io.bisq.protobuffer.AddressBalanceInfo.serializeBinaryToWriter = function( f ); } + f = message.getIsaddressunused(); + if (f) { + writer.writeBool( + 4, + f + ); + } }; @@ -5424,6 +16630,24 @@ proto.io.bisq.protobuffer.AddressBalanceInfo.prototype.setNumconfirmations = fun }; +/** + * optional bool isAddressUnused = 4; + * @return {boolean} + */ +proto.io.bisq.protobuffer.AddressBalanceInfo.prototype.getIsaddressunused = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.AddressBalanceInfo} returns this + */ +proto.io.bisq.protobuffer.AddressBalanceInfo.prototype.setIsaddressunused = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + diff --git a/src/pb_pb.js b/src/pb_pb.js index 5ef39fa1..fc8e19df 100644 --- a/src/pb_pb.js +++ b/src/pb_pb.js @@ -26,12 +26,14 @@ goog.exportSymbol('proto.io.bisq.protobuffer.AddressEntryList', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.AdvancedCashAccountPayload', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.Alert', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.AliPayAccountPayload', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.ArbitrationDisputeList', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.Arbitrator', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.ArbitratorTrade', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.Attachment', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.AustraliaPayidPayload', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.AutoConfirmSettings', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.AvailabilityResult', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.Ballot', null, global); @@ -55,6 +57,7 @@ goog.exportSymbol('proto.io.bisq.protobuffer.BuyerAsMakerTrade', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.BuyerAsTakerTrade', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.ByteArray', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.CashAppAccountPayload', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.CashByMailAccountPayload', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.CashDepositAccountPayload', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.ChangeParamProposal', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload', null, global); @@ -79,11 +82,13 @@ goog.exportSymbol('proto.io.bisq.protobuffer.DaoStateHash', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.DaoStateStore', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.DataAndSeqNrPair', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.DecryptedBallotsWithMerits', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.DecryptedMessageWithPubKey', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.DepositTxMessage', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.Dispute', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.Dispute.State', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.DisputeResult', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.DisputeResult.Reason', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.DisputeResult.Winner', null, global); @@ -102,12 +107,15 @@ goog.exportSymbol('proto.io.bisq.protobuffer.GetBlocksResponse', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetDaoStateHashesRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetDaoStateHashesResponse', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetDataResponse', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetInventoryRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetInventoryResponse', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetPeersRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetPeersResponse', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetProposalStateHashesRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetProposalStateHashesResponse', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.GetUpdatedDataRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.HalCashAccountPayload', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.IgnoredMailboxMap', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.InitMultisigMessage', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.InitTradeRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.InputsForDepositTxRequest', null, global); @@ -116,6 +124,8 @@ goog.exportSymbol('proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload goog.exportSymbol('proto.io.bisq.protobuffer.InteracETransferAccountPayload', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.Issuance', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.JapanBankAccountPayload', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.MailboxItem', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.MailboxMessageList', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.MailboxStoragePayload', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse', null, global); @@ -213,6 +223,7 @@ goog.exportSymbol('proto.io.bisq.protobuffer.ReimbursementProposal', null, globa goog.exportSymbol('proto.io.bisq.protobuffer.RemoveAssetProposal', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.RemoveDataMessage', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.RemoveMailboxDataMessage', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.RemovedPayloadsMap', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.RepublishGovernanceDataRequest', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.RevolutAccountPayload', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.Role', null, global); @@ -249,11 +260,13 @@ goog.exportSymbol('proto.io.bisq.protobuffer.Trade.State', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.Trade.TradePeriodState', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.TradeCurrency', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.TradeCurrency.MessageCase', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.TradeStatistics', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.TradeStatistics2', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.TradeStatistics2Store', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.TradeStatistics3', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.TradeStatistics3Store', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.TraderSignedWitnessMessage', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.TradingPeer', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.TransferwiseAccountPayload', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.Tx', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.TxInput', null, global); goog.exportSymbol('proto.io.bisq.protobuffer.TxOutput', null, global); @@ -464,6 +477,48 @@ if (goog.DEBUG && !COMPILED) { */ proto.io.bisq.protobuffer.Pong.displayName = 'proto.io.bisq.protobuffer.Pong'; } +/** + * 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.GetInventoryRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetInventoryRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetInventoryRequest.displayName = 'proto.io.bisq.protobuffer.GetInventoryRequest'; +} +/** + * 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.GetInventoryResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetInventoryResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetInventoryResponse.displayName = 'proto.io.bisq.protobuffer.GetInventoryResponse'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -1745,6 +1800,111 @@ if (goog.DEBUG && !COMPILED) { */ proto.io.bisq.protobuffer.DataAndSeqNrPair.displayName = 'proto.io.bisq.protobuffer.DataAndSeqNrPair'; } +/** + * 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.MailboxMessageList = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.MailboxMessageList.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.MailboxMessageList, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.MailboxMessageList.displayName = 'proto.io.bisq.protobuffer.MailboxMessageList'; +} +/** + * 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.RemovedPayloadsMap = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.RemovedPayloadsMap, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.RemovedPayloadsMap.displayName = 'proto.io.bisq.protobuffer.RemovedPayloadsMap'; +} +/** + * 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.IgnoredMailboxMap = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.IgnoredMailboxMap, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.IgnoredMailboxMap.displayName = 'proto.io.bisq.protobuffer.IgnoredMailboxMap'; +} +/** + * 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.MailboxItem = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.MailboxItem, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.MailboxItem.displayName = 'proto.io.bisq.protobuffer.MailboxItem'; +} +/** + * 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.DecryptedMessageWithPubKey = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.DecryptedMessageWithPubKey, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.displayName = 'proto.io.bisq.protobuffer.DecryptedMessageWithPubKey'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -1902,16 +2062,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.io.bisq.protobuffer.TradeStatistics = function(opt_data) { +proto.io.bisq.protobuffer.TradeStatistics2 = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.io.bisq.protobuffer.TradeStatistics, jspb.Message); +goog.inherits(proto.io.bisq.protobuffer.TradeStatistics2, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.io.bisq.protobuffer.TradeStatistics.displayName = 'proto.io.bisq.protobuffer.TradeStatistics'; + proto.io.bisq.protobuffer.TradeStatistics2.displayName = 'proto.io.bisq.protobuffer.TradeStatistics2'; } /** * Generated by JsPbCodeGenerator. @@ -1923,16 +2083,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.io.bisq.protobuffer.TradeStatistics2 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, 500, null, null); +proto.io.bisq.protobuffer.TradeStatistics3 = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.io.bisq.protobuffer.TradeStatistics2, jspb.Message); +goog.inherits(proto.io.bisq.protobuffer.TradeStatistics3, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.io.bisq.protobuffer.TradeStatistics2.displayName = 'proto.io.bisq.protobuffer.TradeStatistics2'; + proto.io.bisq.protobuffer.TradeStatistics3.displayName = 'proto.io.bisq.protobuffer.TradeStatistics3'; } /** * Generated by JsPbCodeGenerator. @@ -2333,6 +2493,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.io.bisq.protobuffer.JapanBankAccountPayload.displayName = 'proto.io.bisq.protobuffer.JapanBankAccountPayload'; } +/** + * 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.AustraliaPayidPayload = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.AustraliaPayidPayload, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.AustraliaPayidPayload.displayName = 'proto.io.bisq.protobuffer.AustraliaPayidPayload'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -2438,6 +2619,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.io.bisq.protobuffer.WesternUnionAccountPayload.displayName = 'proto.io.bisq.protobuffer.WesternUnionAccountPayload'; } +/** + * 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.AmazonGiftCardAccountPayload = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload.displayName = 'proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -2795,6 +2997,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.io.bisq.protobuffer.F2FAccountPayload.displayName = 'proto.io.bisq.protobuffer.F2FAccountPayload'; } +/** + * 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.CashByMailAccountPayload = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.CashByMailAccountPayload, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.CashByMailAccountPayload.displayName = 'proto.io.bisq.protobuffer.CashByMailAccountPayload'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -2837,6 +3060,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.io.bisq.protobuffer.AdvancedCashAccountPayload.displayName = 'proto.io.bisq.protobuffer.AdvancedCashAccountPayload'; } +/** + * 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.TransferwiseAccountPayload = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.TransferwiseAccountPayload, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.TransferwiseAccountPayload.displayName = 'proto.io.bisq.protobuffer.TransferwiseAccountPayload'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -3026,6 +3270,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.io.bisq.protobuffer.TradeStatistics2Store.displayName = 'proto.io.bisq.protobuffer.TradeStatistics2Store'; } +/** + * 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.TradeStatistics3Store = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.TradeStatistics3Store.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.TradeStatistics3Store, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.TradeStatistics3Store.displayName = 'proto.io.bisq.protobuffer.TradeStatistics3Store'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -3268,7 +3533,7 @@ if (goog.DEBUG && !COMPILED) { * @constructor */ proto.io.bisq.protobuffer.Trade = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, 500, proto.io.bisq.protobuffer.Trade.repeatedFields_, null); + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.Trade.repeatedFields_, null); }; goog.inherits(proto.io.bisq.protobuffer.Trade, jspb.Message); if (goog.DEBUG && !COMPILED) { @@ -5051,7 +5316,7 @@ if (goog.DEBUG && !COMPILED) { * @private {!Array>} * @const */ -proto.io.bisq.protobuffer.NetworkEnvelope.oneofGroups_ = [[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,1001,1002,1003,1004,1005,1006,1007,1008]]; +proto.io.bisq.protobuffer.NetworkEnvelope.oneofGroups_ = [[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,1001,1002,1003,1004,1005,1006,1007,1008]]; /** * @enum {number} @@ -5108,6 +5373,8 @@ proto.io.bisq.protobuffer.NetworkEnvelope.MessageCase = { PEER_PUBLISHED_DELAYED_PAYOUT_TX_MESSAGE: 49, REFRESH_TRADE_STATE_REQUEST: 50, TRADER_SIGNED_WITNESS_MESSAGE: 51, + GET_INVENTORY_REQUEST: 52, + GET_INVENTORY_RESPONSE: 53, INIT_TRADE_REQUEST: 1001, MAKER_READY_TO_FUND_MULTISIG_REQUEST: 1002, MAKER_READY_TO_FUND_MULTISIG_RESPONSE: 1003, @@ -5207,6 +5474,8 @@ proto.io.bisq.protobuffer.NetworkEnvelope.toObject = function(includeInstance, m peerPublishedDelayedPayoutTxMessage: (f = msg.getPeerPublishedDelayedPayoutTxMessage()) && proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.toObject(includeInstance, f), refreshTradeStateRequest: (f = msg.getRefreshTradeStateRequest()) && proto.io.bisq.protobuffer.RefreshTradeStateRequest.toObject(includeInstance, f), traderSignedWitnessMessage: (f = msg.getTraderSignedWitnessMessage()) && proto.io.bisq.protobuffer.TraderSignedWitnessMessage.toObject(includeInstance, f), + getInventoryRequest: (f = msg.getGetInventoryRequest()) && proto.io.bisq.protobuffer.GetInventoryRequest.toObject(includeInstance, f), + getInventoryResponse: (f = msg.getGetInventoryResponse()) && proto.io.bisq.protobuffer.GetInventoryResponse.toObject(includeInstance, f), initTradeRequest: (f = msg.getInitTradeRequest()) && proto.io.bisq.protobuffer.InitTradeRequest.toObject(includeInstance, f), makerReadyToFundMultisigRequest: (f = msg.getMakerReadyToFundMultisigRequest()) && proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.toObject(includeInstance, f), makerReadyToFundMultisigResponse: (f = msg.getMakerReadyToFundMultisigResponse()) && proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.toObject(includeInstance, f), @@ -5505,6 +5774,16 @@ proto.io.bisq.protobuffer.NetworkEnvelope.deserializeBinaryFromReader = function reader.readMessage(value,proto.io.bisq.protobuffer.TraderSignedWitnessMessage.deserializeBinaryFromReader); msg.setTraderSignedWitnessMessage(value); break; + case 52: + var value = new proto.io.bisq.protobuffer.GetInventoryRequest; + reader.readMessage(value,proto.io.bisq.protobuffer.GetInventoryRequest.deserializeBinaryFromReader); + msg.setGetInventoryRequest(value); + break; + case 53: + var value = new proto.io.bisq.protobuffer.GetInventoryResponse; + reader.readMessage(value,proto.io.bisq.protobuffer.GetInventoryResponse.deserializeBinaryFromReader); + msg.setGetInventoryResponse(value); + break; case 1001: var value = new proto.io.bisq.protobuffer.InitTradeRequest; reader.readMessage(value,proto.io.bisq.protobuffer.InitTradeRequest.deserializeBinaryFromReader); @@ -5981,6 +6260,22 @@ proto.io.bisq.protobuffer.NetworkEnvelope.serializeBinaryToWriter = function(mes proto.io.bisq.protobuffer.TraderSignedWitnessMessage.serializeBinaryToWriter ); } + f = message.getGetInventoryRequest(); + if (f != null) { + writer.writeMessage( + 52, + f, + proto.io.bisq.protobuffer.GetInventoryRequest.serializeBinaryToWriter + ); + } + f = message.getGetInventoryResponse(); + if (f != null) { + writer.writeMessage( + 53, + f, + proto.io.bisq.protobuffer.GetInventoryResponse.serializeBinaryToWriter + ); + } f = message.getInitTradeRequest(); if (f != null) { writer.writeMessage( @@ -7916,6 +8211,80 @@ proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasTraderSignedWitnessMessag }; +/** + * optional GetInventoryRequest get_inventory_request = 52; + * @return {?proto.io.bisq.protobuffer.GetInventoryRequest} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getGetInventoryRequest = function() { + return /** @type{?proto.io.bisq.protobuffer.GetInventoryRequest} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.GetInventoryRequest, 52)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.GetInventoryRequest|undefined} value + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this +*/ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setGetInventoryRequest = function(value) { + return jspb.Message.setOneofWrapperField(this, 52, proto.io.bisq.protobuffer.NetworkEnvelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.clearGetInventoryRequest = function() { + return this.setGetInventoryRequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasGetInventoryRequest = function() { + return jspb.Message.getField(this, 52) != null; +}; + + +/** + * optional GetInventoryResponse get_inventory_response = 53; + * @return {?proto.io.bisq.protobuffer.GetInventoryResponse} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getGetInventoryResponse = function() { + return /** @type{?proto.io.bisq.protobuffer.GetInventoryResponse} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.GetInventoryResponse, 53)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.GetInventoryResponse|undefined} value + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this +*/ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setGetInventoryResponse = function(value) { + return jspb.Message.setOneofWrapperField(this, 53, proto.io.bisq.protobuffer.NetworkEnvelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.clearGetInventoryResponse = function() { + return this.setGetInventoryResponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasGetInventoryResponse = function() { + return jspb.Message.getField(this, 53) != null; +}; + + /** * optional InitTradeRequest init_trade_request = 1001; * @return {?proto.io.bisq.protobuffer.InitTradeRequest} @@ -10102,6 +10471,269 @@ proto.io.bisq.protobuffer.Pong.prototype.setRequestNonce = function(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.GetInventoryRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetInventoryRequest.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.GetInventoryRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetInventoryRequest.toObject = function(includeInstance, msg) { + var f, obj = { + version: 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.GetInventoryRequest} + */ +proto.io.bisq.protobuffer.GetInventoryRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetInventoryRequest; + return proto.io.bisq.protobuffer.GetInventoryRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetInventoryRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetInventoryRequest} + */ +proto.io.bisq.protobuffer.GetInventoryRequest.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.setVersion(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetInventoryRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetInventoryRequest.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.GetInventoryRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetInventoryRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getVersion(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string version = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.GetInventoryRequest.prototype.getVersion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.GetInventoryRequest} returns this + */ +proto.io.bisq.protobuffer.GetInventoryRequest.prototype.setVersion = 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.GetInventoryResponse.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetInventoryResponse.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.GetInventoryResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetInventoryResponse.toObject = function(includeInstance, msg) { + var f, obj = { + inventoryMap: (f = msg.getInventoryMap()) ? f.toObject(includeInstance, undefined) : [] + }; + + 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.GetInventoryResponse} + */ +proto.io.bisq.protobuffer.GetInventoryResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetInventoryResponse; + return proto.io.bisq.protobuffer.GetInventoryResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetInventoryResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetInventoryResponse} + */ +proto.io.bisq.protobuffer.GetInventoryResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = msg.getInventoryMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetInventoryResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetInventoryResponse.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.GetInventoryResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetInventoryResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getInventoryMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } +}; + + +/** + * map inventory = 1; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.io.bisq.protobuffer.GetInventoryResponse.prototype.getInventoryMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 1, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.io.bisq.protobuffer.GetInventoryResponse} returns this + */ +proto.io.bisq.protobuffer.GetInventoryResponse.prototype.clearInventoryMap = function() { + this.getInventoryMap().clear(); + return this;}; + + + /** * List of repeated fields within this message type. * @private {!Array} @@ -10144,7 +10776,8 @@ proto.io.bisq.protobuffer.OfferAvailabilityRequest.toObject = function(includeIn pubKeyRing: (f = msg.getPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), takersTradePrice: jspb.Message.getFieldWithDefault(msg, 3, 0), supportedCapabilitiesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, - uid: jspb.Message.getFieldWithDefault(msg, 5, "") + uid: jspb.Message.getFieldWithDefault(msg, 5, ""), + isTakerApiUser: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) }; if (includeInstance) { @@ -10204,6 +10837,10 @@ proto.io.bisq.protobuffer.OfferAvailabilityRequest.deserializeBinaryFromReader = var value = /** @type {string} */ (reader.readString()); msg.setUid(value); break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsTakerApiUser(value); + break; default: reader.skipField(); break; @@ -10269,6 +10906,13 @@ proto.io.bisq.protobuffer.OfferAvailabilityRequest.serializeBinaryToWriter = fun f ); } + f = message.getIsTakerApiUser(); + if (f) { + writer.writeBool( + 6, + f + ); + } }; @@ -10400,6 +11044,24 @@ proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.setUid = function(v }; +/** + * optional bool is_taker_api_user = 6; + * @return {boolean} + */ +proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.getIsTakerApiUser = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.OfferAvailabilityRequest} returns this + */ +proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.setIsTakerApiUser = function(value) { + return jspb.Message.setProto3BooleanField(this, 6, value); +}; + + /** * List of repeated fields within this message type. @@ -16705,7 +17367,8 @@ proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.toObject = function(in uid: jspb.Message.getFieldWithDefault(msg, 1, ""), tradeId: jspb.Message.getFieldWithDefault(msg, 2, ""), senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - delayedPayoutTx: msg.getDelayedPayoutTx_asB64() + delayedPayoutTx: msg.getDelayedPayoutTx_asB64(), + delayedPayoutTxSellerSignature: msg.getDelayedPayoutTxSellerSignature_asB64() }; if (includeInstance) { @@ -16759,6 +17422,10 @@ proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.deserializeBinaryFromR var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setDelayedPayoutTx(value); break; + case 5: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setDelayedPayoutTxSellerSignature(value); + break; default: reader.skipField(); break; @@ -16817,6 +17484,13 @@ proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.serializeBinaryToWrite f ); } + f = message.getDelayedPayoutTxSellerSignature_asU8(); + if (f.length > 0) { + writer.writeBytes( + 5, + f + ); + } }; @@ -16935,6 +17609,48 @@ proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.setDelayedPa }; +/** + * optional bytes delayed_payout_tx_seller_signature = 5; + * @return {string} + */ +proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.getDelayedPayoutTxSellerSignature = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * optional bytes delayed_payout_tx_seller_signature = 5; + * This is a type-conversion wrapper around `getDelayedPayoutTxSellerSignature()` + * @return {string} + */ +proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.getDelayedPayoutTxSellerSignature_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getDelayedPayoutTxSellerSignature())); +}; + + +/** + * optional bytes delayed_payout_tx_seller_signature = 5; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getDelayedPayoutTxSellerSignature()` + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.getDelayedPayoutTxSellerSignature_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getDelayedPayoutTxSellerSignature())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest} returns this + */ +proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.setDelayedPayoutTxSellerSignature = function(value) { + return jspb.Message.setProto3BytesField(this, 5, value); +}; + + @@ -16970,7 +17686,8 @@ proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.toObject = function(i uid: jspb.Message.getFieldWithDefault(msg, 1, ""), tradeId: jspb.Message.getFieldWithDefault(msg, 2, ""), senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - delayedPayoutTxSignature: msg.getDelayedPayoutTxSignature_asB64() + delayedPayoutTxBuyerSignature: msg.getDelayedPayoutTxBuyerSignature_asB64(), + depositTx: msg.getDepositTx_asB64() }; if (includeInstance) { @@ -17022,7 +17739,11 @@ proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.deserializeBinaryFrom break; case 4: var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setDelayedPayoutTxSignature(value); + msg.setDelayedPayoutTxBuyerSignature(value); + break; + case 5: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setDepositTx(value); break; default: reader.skipField(); @@ -17075,13 +17796,20 @@ proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.serializeBinaryToWrit proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter ); } - f = message.getDelayedPayoutTxSignature_asU8(); + f = message.getDelayedPayoutTxBuyerSignature_asU8(); if (f.length > 0) { writer.writeBytes( 4, f ); } + f = message.getDepositTx_asU8(); + if (f.length > 0) { + writer.writeBytes( + 5, + f + ); + } }; @@ -17159,35 +17887,35 @@ proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.hasSenderNo /** - * optional bytes delayed_payout_tx_signature = 4; + * optional bytes delayed_payout_tx_buyer_signature = 4; * @return {string} */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getDelayedPayoutTxSignature = function() { +proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getDelayedPayoutTxBuyerSignature = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * optional bytes delayed_payout_tx_signature = 4; - * This is a type-conversion wrapper around `getDelayedPayoutTxSignature()` + * optional bytes delayed_payout_tx_buyer_signature = 4; + * This is a type-conversion wrapper around `getDelayedPayoutTxBuyerSignature()` * @return {string} */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getDelayedPayoutTxSignature_asB64 = function() { +proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getDelayedPayoutTxBuyerSignature_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getDelayedPayoutTxSignature())); + this.getDelayedPayoutTxBuyerSignature())); }; /** - * optional bytes delayed_payout_tx_signature = 4; + * optional bytes delayed_payout_tx_buyer_signature = 4; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getDelayedPayoutTxSignature()` + * This is a type-conversion wrapper around `getDelayedPayoutTxBuyerSignature()` * @return {!Uint8Array} */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getDelayedPayoutTxSignature_asU8 = function() { +proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getDelayedPayoutTxBuyerSignature_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getDelayedPayoutTxSignature())); + this.getDelayedPayoutTxBuyerSignature())); }; @@ -17195,11 +17923,53 @@ proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getDelayedP * @param {!(string|Uint8Array)} value * @return {!proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse} returns this */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.setDelayedPayoutTxSignature = function(value) { +proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.setDelayedPayoutTxBuyerSignature = function(value) { return jspb.Message.setProto3BytesField(this, 4, value); }; +/** + * optional bytes deposit_tx = 5; + * @return {string} + */ +proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getDepositTx = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * optional bytes deposit_tx = 5; + * This is a type-conversion wrapper around `getDepositTx()` + * @return {string} + */ +proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getDepositTx_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getDepositTx())); +}; + + +/** + * optional bytes deposit_tx = 5; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getDepositTx()` + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getDepositTx_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getDepositTx())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse} returns this + */ +proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.setDepositTx = function(value) { + return jspb.Message.setProto3BytesField(this, 5, value); +}; + + @@ -17554,9 +18324,10 @@ proto.io.bisq.protobuffer.DepositTxMessage.toObject = function(includeInstance, uid: jspb.Message.getFieldWithDefault(msg, 1, ""), tradeId: jspb.Message.getFieldWithDefault(msg, 2, ""), senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), + depositTxWithoutWitnesses: msg.getDepositTxWithoutWitnesses_asB64(), pubKeyRing: (f = msg.getPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - tradeFeeTxId: jspb.Message.getFieldWithDefault(msg, 6, ""), - depositTxId: jspb.Message.getFieldWithDefault(msg, 7, "") + tradeFeeTxId: jspb.Message.getFieldWithDefault(msg, 102, ""), + depositTxId: jspb.Message.getFieldWithDefault(msg, 103, "") }; if (includeInstance) { @@ -17607,15 +18378,19 @@ proto.io.bisq.protobuffer.DepositTxMessage.deserializeBinaryFromReader = functio msg.setSenderNodeAddress(value); break; case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setDepositTxWithoutWitnesses(value); + break; + case 100: var value = new proto.io.bisq.protobuffer.PubKeyRing; reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); msg.setPubKeyRing(value); break; - case 6: + case 102: var value = /** @type {string} */ (reader.readString()); msg.setTradeFeeTxId(value); break; - case 7: + case 103: var value = /** @type {string} */ (reader.readString()); msg.setDepositTxId(value); break; @@ -17670,10 +18445,17 @@ proto.io.bisq.protobuffer.DepositTxMessage.serializeBinaryToWriter = function(me proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter ); } + f = message.getDepositTxWithoutWitnesses_asU8(); + if (f.length > 0) { + writer.writeBytes( + 4, + f + ); + } f = message.getPubKeyRing(); if (f != null) { writer.writeMessage( - 4, + 100, f, proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter ); @@ -17681,14 +18463,14 @@ proto.io.bisq.protobuffer.DepositTxMessage.serializeBinaryToWriter = function(me f = message.getTradeFeeTxId(); if (f.length > 0) { writer.writeString( - 6, + 102, f ); } f = message.getDepositTxId(); if (f.length > 0) { writer.writeString( - 7, + 103, f ); } @@ -17769,12 +18551,54 @@ proto.io.bisq.protobuffer.DepositTxMessage.prototype.hasSenderNodeAddress = func /** - * optional PubKeyRing pub_key_ring = 4; + * optional bytes deposit_tx_without_witnesses = 4; + * @return {string} + */ +proto.io.bisq.protobuffer.DepositTxMessage.prototype.getDepositTxWithoutWitnesses = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * optional bytes deposit_tx_without_witnesses = 4; + * This is a type-conversion wrapper around `getDepositTxWithoutWitnesses()` + * @return {string} + */ +proto.io.bisq.protobuffer.DepositTxMessage.prototype.getDepositTxWithoutWitnesses_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getDepositTxWithoutWitnesses())); +}; + + +/** + * optional bytes deposit_tx_without_witnesses = 4; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getDepositTxWithoutWitnesses()` + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.DepositTxMessage.prototype.getDepositTxWithoutWitnesses_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getDepositTxWithoutWitnesses())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.DepositTxMessage} returns this + */ +proto.io.bisq.protobuffer.DepositTxMessage.prototype.setDepositTxWithoutWitnesses = function(value) { + return jspb.Message.setProto3BytesField(this, 4, value); +}; + + +/** + * optional PubKeyRing pub_key_ring = 100; * @return {?proto.io.bisq.protobuffer.PubKeyRing} */ proto.io.bisq.protobuffer.DepositTxMessage.prototype.getPubKeyRing = function() { return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 4)); + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 100)); }; @@ -17783,7 +18607,7 @@ proto.io.bisq.protobuffer.DepositTxMessage.prototype.getPubKeyRing = function() * @return {!proto.io.bisq.protobuffer.DepositTxMessage} returns this */ proto.io.bisq.protobuffer.DepositTxMessage.prototype.setPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + return jspb.Message.setWrapperField(this, 100, value); }; @@ -17801,16 +18625,16 @@ proto.io.bisq.protobuffer.DepositTxMessage.prototype.clearPubKeyRing = function( * @return {boolean} */ proto.io.bisq.protobuffer.DepositTxMessage.prototype.hasPubKeyRing = function() { - return jspb.Message.getField(this, 4) != null; + return jspb.Message.getField(this, 100) != null; }; /** - * optional string trade_fee_tx_id = 6; + * optional string trade_fee_tx_id = 102; * @return {string} */ proto.io.bisq.protobuffer.DepositTxMessage.prototype.getTradeFeeTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 102, "")); }; @@ -17819,16 +18643,16 @@ proto.io.bisq.protobuffer.DepositTxMessage.prototype.getTradeFeeTxId = function( * @return {!proto.io.bisq.protobuffer.DepositTxMessage} returns this */ proto.io.bisq.protobuffer.DepositTxMessage.prototype.setTradeFeeTxId = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); + return jspb.Message.setProto3StringField(this, 102, value); }; /** - * optional string deposit_tx_id = 7; + * optional string deposit_tx_id = 103; * @return {string} */ proto.io.bisq.protobuffer.DepositTxMessage.prototype.getDepositTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 103, "")); }; @@ -17837,7 +18661,7 @@ proto.io.bisq.protobuffer.DepositTxMessage.prototype.getDepositTxId = function() * @return {!proto.io.bisq.protobuffer.DepositTxMessage} returns this */ proto.io.bisq.protobuffer.DepositTxMessage.prototype.setDepositTxId = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); + return jspb.Message.setProto3StringField(this, 103, value); }; @@ -25662,7 +26486,7 @@ proto.io.bisq.protobuffer.SealedAndSigned.prototype.setSigPublicKeyBytes = funct * @private {!Array>} * @const */ -proto.io.bisq.protobuffer.StoragePayload.oneofGroups_ = [[1,2,3,4,5,6,7,8,9]]; +proto.io.bisq.protobuffer.StoragePayload.oneofGroups_ = [[1,2,3,4,6,7,8,9]]; /** * @enum {number} @@ -25673,7 +26497,6 @@ proto.io.bisq.protobuffer.StoragePayload.MessageCase = { ARBITRATOR: 2, MEDIATOR: 3, FILTER: 4, - TRADE_STATISTICS: 5, MAILBOX_STORAGE_PAYLOAD: 6, OFFER_PAYLOAD: 7, TEMP_PROPOSAL_PAYLOAD: 8, @@ -25722,7 +26545,6 @@ proto.io.bisq.protobuffer.StoragePayload.toObject = function(includeInstance, ms arbitrator: (f = msg.getArbitrator()) && proto.io.bisq.protobuffer.Arbitrator.toObject(includeInstance, f), mediator: (f = msg.getMediator()) && proto.io.bisq.protobuffer.Mediator.toObject(includeInstance, f), filter: (f = msg.getFilter()) && proto.io.bisq.protobuffer.Filter.toObject(includeInstance, f), - tradeStatistics: (f = msg.getTradeStatistics()) && proto.io.bisq.protobuffer.TradeStatistics.toObject(includeInstance, f), mailboxStoragePayload: (f = msg.getMailboxStoragePayload()) && proto.io.bisq.protobuffer.MailboxStoragePayload.toObject(includeInstance, f), offerPayload: (f = msg.getOfferPayload()) && proto.io.bisq.protobuffer.OfferPayload.toObject(includeInstance, f), tempProposalPayload: (f = msg.getTempProposalPayload()) && proto.io.bisq.protobuffer.TempProposalPayload.toObject(includeInstance, f), @@ -25783,11 +26605,6 @@ proto.io.bisq.protobuffer.StoragePayload.deserializeBinaryFromReader = function( reader.readMessage(value,proto.io.bisq.protobuffer.Filter.deserializeBinaryFromReader); msg.setFilter(value); break; - case 5: - var value = new proto.io.bisq.protobuffer.TradeStatistics; - reader.readMessage(value,proto.io.bisq.protobuffer.TradeStatistics.deserializeBinaryFromReader); - msg.setTradeStatistics(value); - break; case 6: var value = new proto.io.bisq.protobuffer.MailboxStoragePayload; reader.readMessage(value,proto.io.bisq.protobuffer.MailboxStoragePayload.deserializeBinaryFromReader); @@ -25869,14 +26686,6 @@ proto.io.bisq.protobuffer.StoragePayload.serializeBinaryToWriter = function(mess proto.io.bisq.protobuffer.Filter.serializeBinaryToWriter ); } - f = message.getTradeStatistics(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.io.bisq.protobuffer.TradeStatistics.serializeBinaryToWriter - ); - } f = message.getMailboxStoragePayload(); if (f != null) { writer.writeMessage( @@ -26060,43 +26869,6 @@ proto.io.bisq.protobuffer.StoragePayload.prototype.hasFilter = function() { }; -/** - * optional TradeStatistics trade_statistics = 5; - * @return {?proto.io.bisq.protobuffer.TradeStatistics} - */ -proto.io.bisq.protobuffer.StoragePayload.prototype.getTradeStatistics = function() { - return /** @type{?proto.io.bisq.protobuffer.TradeStatistics} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TradeStatistics, 5)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.TradeStatistics|undefined} value - * @return {!proto.io.bisq.protobuffer.StoragePayload} returns this -*/ -proto.io.bisq.protobuffer.StoragePayload.prototype.setTradeStatistics = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.io.bisq.protobuffer.StoragePayload.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.StoragePayload} returns this - */ -proto.io.bisq.protobuffer.StoragePayload.prototype.clearTradeStatistics = function() { - return this.setTradeStatistics(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.StoragePayload.prototype.hasTradeStatistics = function() { - return jspb.Message.getField(this, 5) != null; -}; - - /** * optional MailboxStoragePayload mailbox_storage_payload = 6; * @return {?proto.io.bisq.protobuffer.MailboxStoragePayload} @@ -26254,7 +27026,7 @@ proto.io.bisq.protobuffer.StoragePayload.prototype.hasRefundAgent = function() { * @private {!Array>} * @const */ -proto.io.bisq.protobuffer.PersistableNetworkPayload.oneofGroups_ = [[1,2,3,4,5]]; +proto.io.bisq.protobuffer.PersistableNetworkPayload.oneofGroups_ = [[1,2,3,4,5,6]]; /** * @enum {number} @@ -26265,7 +27037,8 @@ proto.io.bisq.protobuffer.PersistableNetworkPayload.MessageCase = { TRADE_STATISTICS2: 2, PROPOSAL_PAYLOAD: 3, BLIND_VOTE_PAYLOAD: 4, - SIGNED_WITNESS: 5 + SIGNED_WITNESS: 5, + TRADE_STATISTICS3: 6 }; /** @@ -26310,7 +27083,8 @@ proto.io.bisq.protobuffer.PersistableNetworkPayload.toObject = function(includeI tradeStatistics2: (f = msg.getTradeStatistics2()) && proto.io.bisq.protobuffer.TradeStatistics2.toObject(includeInstance, f), proposalPayload: (f = msg.getProposalPayload()) && proto.io.bisq.protobuffer.ProposalPayload.toObject(includeInstance, f), blindVotePayload: (f = msg.getBlindVotePayload()) && proto.io.bisq.protobuffer.BlindVotePayload.toObject(includeInstance, f), - signedWitness: (f = msg.getSignedWitness()) && proto.io.bisq.protobuffer.SignedWitness.toObject(includeInstance, f) + signedWitness: (f = msg.getSignedWitness()) && proto.io.bisq.protobuffer.SignedWitness.toObject(includeInstance, f), + tradeStatistics3: (f = msg.getTradeStatistics3()) && proto.io.bisq.protobuffer.TradeStatistics3.toObject(includeInstance, f) }; if (includeInstance) { @@ -26372,6 +27146,11 @@ proto.io.bisq.protobuffer.PersistableNetworkPayload.deserializeBinaryFromReader reader.readMessage(value,proto.io.bisq.protobuffer.SignedWitness.deserializeBinaryFromReader); msg.setSignedWitness(value); break; + case 6: + var value = new proto.io.bisq.protobuffer.TradeStatistics3; + reader.readMessage(value,proto.io.bisq.protobuffer.TradeStatistics3.deserializeBinaryFromReader); + msg.setTradeStatistics3(value); + break; default: reader.skipField(); break; @@ -26441,6 +27220,14 @@ proto.io.bisq.protobuffer.PersistableNetworkPayload.serializeBinaryToWriter = fu proto.io.bisq.protobuffer.SignedWitness.serializeBinaryToWriter ); } + f = message.getTradeStatistics3(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.io.bisq.protobuffer.TradeStatistics3.serializeBinaryToWriter + ); + } }; @@ -26629,6 +27416,43 @@ proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.hasSignedWitness = }; +/** + * optional TradeStatistics3 trade_statistics3 = 6; + * @return {?proto.io.bisq.protobuffer.TradeStatistics3} + */ +proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.getTradeStatistics3 = function() { + return /** @type{?proto.io.bisq.protobuffer.TradeStatistics3} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TradeStatistics3, 6)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.TradeStatistics3|undefined} value + * @return {!proto.io.bisq.protobuffer.PersistableNetworkPayload} returns this +*/ +proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.setTradeStatistics3 = function(value) { + return jspb.Message.setOneofWrapperField(this, 6, proto.io.bisq.protobuffer.PersistableNetworkPayload.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.PersistableNetworkPayload} returns this + */ +proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.clearTradeStatistics3 = function() { + return this.setTradeStatistics3(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.hasTradeStatistics3 = function() { + return jspb.Message.getField(this, 6) != null; +}; + + @@ -27563,6 +28387,839 @@ proto.io.bisq.protobuffer.DataAndSeqNrPair.prototype.setSequenceNumber = functio +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.MailboxMessageList.repeatedFields_ = [1]; + + + +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.MailboxMessageList.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.MailboxMessageList.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.MailboxMessageList} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MailboxMessageList.toObject = function(includeInstance, msg) { + var f, obj = { + mailboxItemList: jspb.Message.toObjectList(msg.getMailboxItemList(), + proto.io.bisq.protobuffer.MailboxItem.toObject, includeInstance) + }; + + 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.MailboxMessageList} + */ +proto.io.bisq.protobuffer.MailboxMessageList.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.MailboxMessageList; + return proto.io.bisq.protobuffer.MailboxMessageList.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.MailboxMessageList} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.MailboxMessageList} + */ +proto.io.bisq.protobuffer.MailboxMessageList.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.io.bisq.protobuffer.MailboxItem; + reader.readMessage(value,proto.io.bisq.protobuffer.MailboxItem.deserializeBinaryFromReader); + msg.addMailboxItem(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.MailboxMessageList.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.MailboxMessageList.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.MailboxMessageList} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MailboxMessageList.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMailboxItemList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.MailboxItem.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated MailboxItem mailbox_item = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.MailboxMessageList.prototype.getMailboxItemList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.MailboxItem, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.MailboxMessageList} returns this +*/ +proto.io.bisq.protobuffer.MailboxMessageList.prototype.setMailboxItemList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.MailboxItem=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.MailboxItem} + */ +proto.io.bisq.protobuffer.MailboxMessageList.prototype.addMailboxItem = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.MailboxItem, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.MailboxMessageList} returns this + */ +proto.io.bisq.protobuffer.MailboxMessageList.prototype.clearMailboxItemList = function() { + return this.setMailboxItemList([]); +}; + + + + + +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.RemovedPayloadsMap.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.RemovedPayloadsMap.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.RemovedPayloadsMap} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.RemovedPayloadsMap.toObject = function(includeInstance, msg) { + var f, obj = { + dateByHashesMap: (f = msg.getDateByHashesMap()) ? f.toObject(includeInstance, undefined) : [] + }; + + 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.RemovedPayloadsMap} + */ +proto.io.bisq.protobuffer.RemovedPayloadsMap.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.RemovedPayloadsMap; + return proto.io.bisq.protobuffer.RemovedPayloadsMap.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.RemovedPayloadsMap} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.RemovedPayloadsMap} + */ +proto.io.bisq.protobuffer.RemovedPayloadsMap.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = msg.getDateByHashesMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readUint64, null, "", 0); + }); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.RemovedPayloadsMap.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.RemovedPayloadsMap.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.RemovedPayloadsMap} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.RemovedPayloadsMap.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDateByHashesMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeUint64); + } +}; + + +/** + * map date_by_hashes = 1; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.io.bisq.protobuffer.RemovedPayloadsMap.prototype.getDateByHashesMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 1, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.io.bisq.protobuffer.RemovedPayloadsMap} returns this + */ +proto.io.bisq.protobuffer.RemovedPayloadsMap.prototype.clearDateByHashesMap = function() { + this.getDateByHashesMap().clear(); + return this;}; + + + + + +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.IgnoredMailboxMap.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.IgnoredMailboxMap.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.IgnoredMailboxMap} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.IgnoredMailboxMap.toObject = function(includeInstance, msg) { + var f, obj = { + dataMap: (f = msg.getDataMap()) ? f.toObject(includeInstance, undefined) : [] + }; + + 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.IgnoredMailboxMap} + */ +proto.io.bisq.protobuffer.IgnoredMailboxMap.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.IgnoredMailboxMap; + return proto.io.bisq.protobuffer.IgnoredMailboxMap.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.IgnoredMailboxMap} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.IgnoredMailboxMap} + */ +proto.io.bisq.protobuffer.IgnoredMailboxMap.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = msg.getDataMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readUint64, null, "", 0); + }); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.IgnoredMailboxMap.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.IgnoredMailboxMap.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.IgnoredMailboxMap} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.IgnoredMailboxMap.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeUint64); + } +}; + + +/** + * map data = 1; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.io.bisq.protobuffer.IgnoredMailboxMap.prototype.getDataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 1, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.io.bisq.protobuffer.IgnoredMailboxMap} returns this + */ +proto.io.bisq.protobuffer.IgnoredMailboxMap.prototype.clearDataMap = function() { + this.getDataMap().clear(); + return this;}; + + + + + +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.MailboxItem.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.MailboxItem.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.MailboxItem} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MailboxItem.toObject = function(includeInstance, msg) { + var f, obj = { + protectedMailboxStorageEntry: (f = msg.getProtectedMailboxStorageEntry()) && proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.toObject(includeInstance, f), + decryptedMessageWithPubKey: (f = msg.getDecryptedMessageWithPubKey()) && proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.toObject(includeInstance, f) + }; + + 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.MailboxItem} + */ +proto.io.bisq.protobuffer.MailboxItem.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.MailboxItem; + return proto.io.bisq.protobuffer.MailboxItem.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.MailboxItem} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.MailboxItem} + */ +proto.io.bisq.protobuffer.MailboxItem.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry; + reader.readMessage(value,proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.deserializeBinaryFromReader); + msg.setProtectedMailboxStorageEntry(value); + break; + case 2: + var value = new proto.io.bisq.protobuffer.DecryptedMessageWithPubKey; + reader.readMessage(value,proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.deserializeBinaryFromReader); + msg.setDecryptedMessageWithPubKey(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.MailboxItem.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.MailboxItem.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.MailboxItem} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MailboxItem.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProtectedMailboxStorageEntry(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.serializeBinaryToWriter + ); + } + f = message.getDecryptedMessageWithPubKey(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ProtectedMailboxStorageEntry protected_mailbox_storage_entry = 1; + * @return {?proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry} + */ +proto.io.bisq.protobuffer.MailboxItem.prototype.getProtectedMailboxStorageEntry = function() { + return /** @type{?proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry|undefined} value + * @return {!proto.io.bisq.protobuffer.MailboxItem} returns this +*/ +proto.io.bisq.protobuffer.MailboxItem.prototype.setProtectedMailboxStorageEntry = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.MailboxItem} returns this + */ +proto.io.bisq.protobuffer.MailboxItem.prototype.clearProtectedMailboxStorageEntry = function() { + return this.setProtectedMailboxStorageEntry(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.MailboxItem.prototype.hasProtectedMailboxStorageEntry = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional DecryptedMessageWithPubKey decrypted_message_with_pub_key = 2; + * @return {?proto.io.bisq.protobuffer.DecryptedMessageWithPubKey} + */ +proto.io.bisq.protobuffer.MailboxItem.prototype.getDecryptedMessageWithPubKey = function() { + return /** @type{?proto.io.bisq.protobuffer.DecryptedMessageWithPubKey} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.DecryptedMessageWithPubKey, 2)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.DecryptedMessageWithPubKey|undefined} value + * @return {!proto.io.bisq.protobuffer.MailboxItem} returns this +*/ +proto.io.bisq.protobuffer.MailboxItem.prototype.setDecryptedMessageWithPubKey = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.MailboxItem} returns this + */ +proto.io.bisq.protobuffer.MailboxItem.prototype.clearDecryptedMessageWithPubKey = function() { + return this.setDecryptedMessageWithPubKey(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.MailboxItem.prototype.hasDecryptedMessageWithPubKey = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +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.DecryptedMessageWithPubKey.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.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.DecryptedMessageWithPubKey} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.toObject = function(includeInstance, msg) { + var f, obj = { + networkEnvelope: (f = msg.getNetworkEnvelope()) && proto.io.bisq.protobuffer.NetworkEnvelope.toObject(includeInstance, f), + signaturePubKeyBytes: msg.getSignaturePubKeyBytes_asB64() + }; + + 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.DecryptedMessageWithPubKey} + */ +proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.DecryptedMessageWithPubKey; + return proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.DecryptedMessageWithPubKey} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.DecryptedMessageWithPubKey} + */ +proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.io.bisq.protobuffer.NetworkEnvelope; + reader.readMessage(value,proto.io.bisq.protobuffer.NetworkEnvelope.deserializeBinaryFromReader); + msg.setNetworkEnvelope(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSignaturePubKeyBytes(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.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.DecryptedMessageWithPubKey} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNetworkEnvelope(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.NetworkEnvelope.serializeBinaryToWriter + ); + } + f = message.getSignaturePubKeyBytes_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } +}; + + +/** + * optional NetworkEnvelope network_envelope = 1; + * @return {?proto.io.bisq.protobuffer.NetworkEnvelope} + */ +proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.prototype.getNetworkEnvelope = function() { + return /** @type{?proto.io.bisq.protobuffer.NetworkEnvelope} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NetworkEnvelope, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.NetworkEnvelope|undefined} value + * @return {!proto.io.bisq.protobuffer.DecryptedMessageWithPubKey} returns this +*/ +proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.prototype.setNetworkEnvelope = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.DecryptedMessageWithPubKey} returns this + */ +proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.prototype.clearNetworkEnvelope = function() { + return this.setNetworkEnvelope(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.prototype.hasNetworkEnvelope = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bytes signature_pub_key_bytes = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.prototype.getSignaturePubKeyBytes = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes signature_pub_key_bytes = 2; + * This is a type-conversion wrapper around `getSignaturePubKeyBytes()` + * @return {string} + */ +proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.prototype.getSignaturePubKeyBytes_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSignaturePubKeyBytes())); +}; + + +/** + * optional bytes signature_pub_key_bytes = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSignaturePubKeyBytes()` + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.prototype.getSignaturePubKeyBytes_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSignaturePubKeyBytes())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.DecryptedMessageWithPubKey} returns this + */ +proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.prototype.setSignaturePubKeyBytes = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -28003,7 +29660,8 @@ proto.io.bisq.protobuffer.Alert.toObject = function(includeInstance, msg) { isUpdateInfo: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), signatureAsBase64: jspb.Message.getFieldWithDefault(msg, 4, ""), ownerPubKeyBytes: msg.getOwnerPubKeyBytes_asB64(), - extraDataMap: (f = msg.getExtraDataMap()) ? f.toObject(includeInstance, undefined) : [] + extraDataMap: (f = msg.getExtraDataMap()) ? f.toObject(includeInstance, undefined) : [], + isPreReleaseInfo: jspb.Message.getBooleanFieldWithDefault(msg, 7, false) }; if (includeInstance) { @@ -28066,6 +29724,10 @@ proto.io.bisq.protobuffer.Alert.deserializeBinaryFromReader = function(msg, read jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); }); break; + case 7: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsPreReleaseInfo(value); + break; default: reader.skipField(); break; @@ -28134,6 +29796,13 @@ proto.io.bisq.protobuffer.Alert.serializeBinaryToWriter = function(message, writ if (f && f.getLength() > 0) { f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } + f = message.getIsPreReleaseInfo(); + if (f) { + writer.writeBool( + 7, + f + ); + } }; @@ -28273,6 +29942,24 @@ proto.io.bisq.protobuffer.Alert.prototype.clearExtraDataMap = function() { return this;}; +/** + * optional bool is_pre_release_info = 7; + * @return {boolean} + */ +proto.io.bisq.protobuffer.Alert.prototype.getIsPreReleaseInfo = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.Alert} returns this + */ +proto.io.bisq.protobuffer.Alert.prototype.setIsPreReleaseInfo = function(value) { + return jspb.Message.setProto3BooleanField(this, 7, value); +}; + + /** * List of repeated fields within this message type. @@ -29758,7 +31445,7 @@ proto.io.bisq.protobuffer.RefundAgent.prototype.clearExtraDataMap = function() { * @private {!Array} * @const */ -proto.io.bisq.protobuffer.Filter.repeatedFields_ = [1,2,3,7,8,9,10,11,13,17,18,19,20,23]; +proto.io.bisq.protobuffer.Filter.repeatedFields_ = [1,2,3,7,8,9,10,11,13,17,18,19,20,23,25,26]; @@ -29791,7 +31478,7 @@ proto.io.bisq.protobuffer.Filter.prototype.toObject = function(opt_includeInstan */ proto.io.bisq.protobuffer.Filter.toObject = function(includeInstance, msg) { var f, obj = { - bannedNodeAddressList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, + nodeAddressesBannedFromTradingList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, bannedOfferIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, bannedPaymentAccountsList: jspb.Message.toObjectList(msg.getBannedPaymentAccountsList(), proto.io.bisq.protobuffer.PaymentAccountFilter.toObject, includeInstance), @@ -29815,7 +31502,11 @@ proto.io.bisq.protobuffer.Filter.toObject = function(includeInstance, msg) { creationDate: jspb.Message.getFieldWithDefault(msg, 21, 0), signerPubKeyAsHex: jspb.Message.getFieldWithDefault(msg, 22, ""), bannedprivilegeddevpubkeysList: (f = jspb.Message.getRepeatedField(msg, 23)) == null ? undefined : f, - disableAutoConf: jspb.Message.getBooleanFieldWithDefault(msg, 24, false) + disableAutoConf: jspb.Message.getBooleanFieldWithDefault(msg, 24, false), + bannedAutoConfExplorersList: (f = jspb.Message.getRepeatedField(msg, 25)) == null ? undefined : f, + nodeAddressesBannedFromNetworkList: (f = jspb.Message.getRepeatedField(msg, 26)) == null ? undefined : f, + disableApi: jspb.Message.getBooleanFieldWithDefault(msg, 27, false), + disableMempoolValidation: jspb.Message.getBooleanFieldWithDefault(msg, 28, false) }; if (includeInstance) { @@ -29854,7 +31545,7 @@ proto.io.bisq.protobuffer.Filter.deserializeBinaryFromReader = function(msg, rea switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.addBannedNodeAddress(value); + msg.addNodeAddressesBannedFromTrading(value); break; case 2: var value = /** @type {string} */ (reader.readString()); @@ -29951,6 +31642,22 @@ proto.io.bisq.protobuffer.Filter.deserializeBinaryFromReader = function(msg, rea var value = /** @type {boolean} */ (reader.readBool()); msg.setDisableAutoConf(value); break; + case 25: + var value = /** @type {string} */ (reader.readString()); + msg.addBannedAutoConfExplorers(value); + break; + case 26: + var value = /** @type {string} */ (reader.readString()); + msg.addNodeAddressesBannedFromNetwork(value); + break; + case 27: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDisableApi(value); + break; + case 28: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDisableMempoolValidation(value); + break; default: reader.skipField(); break; @@ -29980,7 +31687,7 @@ proto.io.bisq.protobuffer.Filter.prototype.serializeBinary = function() { */ proto.io.bisq.protobuffer.Filter.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getBannedNodeAddressList(); + f = message.getNodeAddressesBannedFromTradingList(); if (f.length > 0) { writer.writeRepeatedString( 1, @@ -30146,14 +31853,42 @@ proto.io.bisq.protobuffer.Filter.serializeBinaryToWriter = function(message, wri f ); } + f = message.getBannedAutoConfExplorersList(); + if (f.length > 0) { + writer.writeRepeatedString( + 25, + f + ); + } + f = message.getNodeAddressesBannedFromNetworkList(); + if (f.length > 0) { + writer.writeRepeatedString( + 26, + f + ); + } + f = message.getDisableApi(); + if (f) { + writer.writeBool( + 27, + f + ); + } + f = message.getDisableMempoolValidation(); + if (f) { + writer.writeBool( + 28, + f + ); + } }; /** - * repeated string banned_node_address = 1; + * repeated string node_addresses_banned_from_trading = 1; * @return {!Array} */ -proto.io.bisq.protobuffer.Filter.prototype.getBannedNodeAddressList = function() { +proto.io.bisq.protobuffer.Filter.prototype.getNodeAddressesBannedFromTradingList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); }; @@ -30162,7 +31897,7 @@ proto.io.bisq.protobuffer.Filter.prototype.getBannedNodeAddressList = function() * @param {!Array} value * @return {!proto.io.bisq.protobuffer.Filter} returns this */ -proto.io.bisq.protobuffer.Filter.prototype.setBannedNodeAddressList = function(value) { +proto.io.bisq.protobuffer.Filter.prototype.setNodeAddressesBannedFromTradingList = function(value) { return jspb.Message.setField(this, 1, value || []); }; @@ -30172,7 +31907,7 @@ proto.io.bisq.protobuffer.Filter.prototype.setBannedNodeAddressList = function(v * @param {number=} opt_index * @return {!proto.io.bisq.protobuffer.Filter} returns this */ -proto.io.bisq.protobuffer.Filter.prototype.addBannedNodeAddress = function(value, opt_index) { +proto.io.bisq.protobuffer.Filter.prototype.addNodeAddressesBannedFromTrading = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; @@ -30181,8 +31916,8 @@ proto.io.bisq.protobuffer.Filter.prototype.addBannedNodeAddress = function(value * Clears the list making it empty but non-null. * @return {!proto.io.bisq.protobuffer.Filter} returns this */ -proto.io.bisq.protobuffer.Filter.prototype.clearBannedNodeAddressList = function() { - return this.setBannedNodeAddressList([]); +proto.io.bisq.protobuffer.Filter.prototype.clearNodeAddressesBannedFromTradingList = function() { + return this.setNodeAddressesBannedFromTradingList([]); }; @@ -30876,613 +32611,116 @@ proto.io.bisq.protobuffer.Filter.prototype.setDisableAutoConf = function(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} + * repeated string banned_auto_conf_explorers = 25; + * @return {!Array} */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.TradeStatistics.toObject(opt_includeInstance, this); +proto.io.bisq.protobuffer.Filter.prototype.getBannedAutoConfExplorersList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 25)); }; /** - * 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.TradeStatistics} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.Filter} returns this */ -proto.io.bisq.protobuffer.TradeStatistics.toObject = function(includeInstance, msg) { - var f, obj = { - baseCurrency: jspb.Message.getFieldWithDefault(msg, 1, ""), - counterCurrency: jspb.Message.getFieldWithDefault(msg, 2, ""), - direction: jspb.Message.getFieldWithDefault(msg, 3, 0), - tradePrice: jspb.Message.getFieldWithDefault(msg, 4, 0), - tradeAmount: jspb.Message.getFieldWithDefault(msg, 5, 0), - tradeDate: jspb.Message.getFieldWithDefault(msg, 6, 0), - paymentMethodId: jspb.Message.getFieldWithDefault(msg, 7, ""), - offerDate: jspb.Message.getFieldWithDefault(msg, 8, 0), - offerUseMarketBasedPrice: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - offerMarketPriceMargin: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0), - offerAmount: jspb.Message.getFieldWithDefault(msg, 11, 0), - offerMinAmount: jspb.Message.getFieldWithDefault(msg, 12, 0), - offerId: jspb.Message.getFieldWithDefault(msg, 13, ""), - depositTxId: jspb.Message.getFieldWithDefault(msg, 14, ""), - signaturePubKeyBytes: msg.getSignaturePubKeyBytes_asB64(), - extraDataMap: (f = msg.getExtraDataMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - 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.TradeStatistics} - */ -proto.io.bisq.protobuffer.TradeStatistics.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.TradeStatistics; - return proto.io.bisq.protobuffer.TradeStatistics.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.TradeStatistics} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.TradeStatistics} - */ -proto.io.bisq.protobuffer.TradeStatistics.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.setBaseCurrency(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCounterCurrency(value); - break; - case 3: - var value = /** @type {!proto.io.bisq.protobuffer.OfferPayload.Direction} */ (reader.readEnum()); - msg.setDirection(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTradePrice(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTradeAmount(value); - break; - case 6: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTradeDate(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setPaymentMethodId(value); - break; - case 8: - var value = /** @type {number} */ (reader.readInt64()); - msg.setOfferDate(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOfferUseMarketBasedPrice(value); - break; - case 10: - var value = /** @type {number} */ (reader.readDouble()); - msg.setOfferMarketPriceMargin(value); - break; - case 11: - var value = /** @type {number} */ (reader.readInt64()); - msg.setOfferAmount(value); - break; - case 12: - var value = /** @type {number} */ (reader.readInt64()); - msg.setOfferMinAmount(value); - break; - case 13: - var value = /** @type {string} */ (reader.readString()); - msg.setOfferId(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setDepositTxId(value); - break; - case 15: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSignaturePubKeyBytes(value); - break; - case 16: - var value = msg.getExtraDataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.TradeStatistics.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.TradeStatistics} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.TradeStatistics.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBaseCurrency(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCounterCurrency(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDirection(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getTradePrice(); - if (f !== 0) { - writer.writeInt64( - 4, - f - ); - } - f = message.getTradeAmount(); - if (f !== 0) { - writer.writeInt64( - 5, - f - ); - } - f = message.getTradeDate(); - if (f !== 0) { - writer.writeInt64( - 6, - f - ); - } - f = message.getPaymentMethodId(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getOfferDate(); - if (f !== 0) { - writer.writeInt64( - 8, - f - ); - } - f = message.getOfferUseMarketBasedPrice(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getOfferMarketPriceMargin(); - if (f !== 0.0) { - writer.writeDouble( - 10, - f - ); - } - f = message.getOfferAmount(); - if (f !== 0) { - writer.writeInt64( - 11, - f - ); - } - f = message.getOfferMinAmount(); - if (f !== 0) { - writer.writeInt64( - 12, - f - ); - } - f = message.getOfferId(); - if (f.length > 0) { - writer.writeString( - 13, - f - ); - } - f = message.getDepositTxId(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getSignaturePubKeyBytes_asU8(); - if (f.length > 0) { - writer.writeBytes( - 15, - f - ); - } - f = message.getExtraDataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(16, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string base_currency = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.getBaseCurrency = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.io.bisq.protobuffer.Filter.prototype.setBannedAutoConfExplorersList = function(value) { + return jspb.Message.setField(this, 25, value || []); }; /** * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.Filter} returns this */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.setBaseCurrency = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.io.bisq.protobuffer.Filter.prototype.addBannedAutoConfExplorers = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 25, value, opt_index); }; /** - * optional string counter_currency = 2; - * @return {string} + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.Filter} returns this */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.getCounterCurrency = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.io.bisq.protobuffer.Filter.prototype.clearBannedAutoConfExplorersList = function() { + return this.setBannedAutoConfExplorersList([]); +}; + + +/** + * repeated string node_addresses_banned_from_network = 26; + * @return {!Array} + */ +proto.io.bisq.protobuffer.Filter.prototype.getNodeAddressesBannedFromNetworkList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 26)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.Filter} returns this + */ +proto.io.bisq.protobuffer.Filter.prototype.setNodeAddressesBannedFromNetworkList = function(value) { + return jspb.Message.setField(this, 26, value || []); }; /** * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.Filter} returns this */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.setCounterCurrency = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.io.bisq.protobuffer.Filter.prototype.addNodeAddressesBannedFromNetwork = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 26, value, opt_index); }; /** - * optional OfferPayload.Direction direction = 3; - * @return {!proto.io.bisq.protobuffer.OfferPayload.Direction} + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.Filter} returns this */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.getDirection = function() { - return /** @type {!proto.io.bisq.protobuffer.OfferPayload.Direction} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.io.bisq.protobuffer.Filter.prototype.clearNodeAddressesBannedFromNetworkList = function() { + return this.setNodeAddressesBannedFromNetworkList([]); }; /** - * @param {!proto.io.bisq.protobuffer.OfferPayload.Direction} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.setDirection = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional int64 trade_price = 4; - * @return {number} - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.getTradePrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.setTradePrice = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional int64 trade_amount = 5; - * @return {number} - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.getTradeAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.setTradeAmount = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional int64 trade_date = 6; - * @return {number} - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.getTradeDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.setTradeDate = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional string payment_method_id = 7; - * @return {string} - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.getPaymentMethodId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.setPaymentMethodId = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional int64 offer_date = 8; - * @return {number} - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.getOfferDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.setOfferDate = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional bool offer_use_market_based_price = 9; + * optional bool disable_api = 27; * @return {boolean} */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.getOfferUseMarketBasedPrice = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); +proto.io.bisq.protobuffer.Filter.prototype.getDisableApi = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 27, false)); }; /** * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this + * @return {!proto.io.bisq.protobuffer.Filter} returns this */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.setOfferUseMarketBasedPrice = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); +proto.io.bisq.protobuffer.Filter.prototype.setDisableApi = function(value) { + return jspb.Message.setProto3BooleanField(this, 27, value); }; /** - * optional double offer_market_price_margin = 10; - * @return {number} + * optional bool disable_mempool_validation = 28; + * @return {boolean} */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.getOfferMarketPriceMargin = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0)); +proto.io.bisq.protobuffer.Filter.prototype.getDisableMempoolValidation = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 28, false)); }; /** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.Filter} returns this */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.setOfferMarketPriceMargin = function(value) { - return jspb.Message.setProto3FloatField(this, 10, value); +proto.io.bisq.protobuffer.Filter.prototype.setDisableMempoolValidation = function(value) { + return jspb.Message.setProto3BooleanField(this, 28, value); }; -/** - * optional int64 offer_amount = 11; - * @return {number} - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.getOfferAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.setOfferAmount = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * optional int64 offer_min_amount = 12; - * @return {number} - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.getOfferMinAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.setOfferMinAmount = function(value) { - return jspb.Message.setProto3IntField(this, 12, value); -}; - - -/** - * optional string offer_id = 13; - * @return {string} - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.getOfferId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.setOfferId = function(value) { - return jspb.Message.setProto3StringField(this, 13, value); -}; - - -/** - * optional string deposit_tx_id = 14; - * @return {string} - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.getDepositTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.setDepositTxId = function(value) { - return jspb.Message.setProto3StringField(this, 14, value); -}; - - -/** - * optional bytes signature_pub_key_bytes = 15; - * @return {string} - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.getSignaturePubKeyBytes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** - * optional bytes signature_pub_key_bytes = 15; - * This is a type-conversion wrapper around `getSignaturePubKeyBytes()` - * @return {string} - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.getSignaturePubKeyBytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSignaturePubKeyBytes())); -}; - - -/** - * optional bytes signature_pub_key_bytes = 15; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSignaturePubKeyBytes()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.getSignaturePubKeyBytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSignaturePubKeyBytes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.setSignaturePubKeyBytes = function(value) { - return jspb.Message.setProto3BytesField(this, 15, value); -}; - - -/** - * map extra_data = 16; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.getExtraDataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 16, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics.prototype.clearExtraDataMap = function() { - this.getExtraDataMap().clear(); - return this;}; - - @@ -31528,10 +32766,11 @@ proto.io.bisq.protobuffer.TradeStatistics2.toObject = function(includeInstance, offerAmount: jspb.Message.getFieldWithDefault(msg, 11, 0), offerMinAmount: jspb.Message.getFieldWithDefault(msg, 12, 0), offerId: jspb.Message.getFieldWithDefault(msg, 13, ""), + depositTxId: jspb.Message.getFieldWithDefault(msg, 14, ""), hash: msg.getHash_asB64(), extraDataMap: (f = msg.getExtraDataMap()) ? f.toObject(includeInstance, undefined) : [], - makerDepositTxId: jspb.Message.getFieldWithDefault(msg, 1000, ""), - takerDepositTxId: jspb.Message.getFieldWithDefault(msg, 1001, "") + makerDepositTxId: jspb.Message.getFieldWithDefault(msg, 100, ""), + takerDepositTxId: jspb.Message.getFieldWithDefault(msg, 101, "") }; if (includeInstance) { @@ -31620,6 +32859,10 @@ proto.io.bisq.protobuffer.TradeStatistics2.deserializeBinaryFromReader = functio var value = /** @type {string} */ (reader.readString()); msg.setOfferId(value); break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.setDepositTxId(value); + break; case 15: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setHash(value); @@ -31630,11 +32873,11 @@ proto.io.bisq.protobuffer.TradeStatistics2.deserializeBinaryFromReader = functio jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); }); break; - case 1000: + case 100: var value = /** @type {string} */ (reader.readString()); msg.setMakerDepositTxId(value); break; - case 1001: + case 101: var value = /** @type {string} */ (reader.readString()); msg.setTakerDepositTxId(value); break; @@ -31758,6 +33001,13 @@ proto.io.bisq.protobuffer.TradeStatistics2.serializeBinaryToWriter = function(me f ); } + f = message.getDepositTxId(); + if (f.length > 0) { + writer.writeString( + 14, + f + ); + } f = message.getHash_asU8(); if (f.length > 0) { writer.writeBytes( @@ -31772,14 +33022,14 @@ proto.io.bisq.protobuffer.TradeStatistics2.serializeBinaryToWriter = function(me f = message.getMakerDepositTxId(); if (f.length > 0) { writer.writeString( - 1000, + 100, f ); } f = message.getTakerDepositTxId(); if (f.length > 0) { writer.writeString( - 1001, + 101, f ); } @@ -32020,6 +33270,24 @@ proto.io.bisq.protobuffer.TradeStatistics2.prototype.setOfferId = function(value }; +/** + * optional string deposit_tx_id = 14; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeStatistics2.prototype.getDepositTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics2} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics2.prototype.setDepositTxId = function(value) { + return jspb.Message.setProto3StringField(this, 14, value); +}; + + /** * optional bytes hash = 15; * @return {string} @@ -32085,11 +33353,11 @@ proto.io.bisq.protobuffer.TradeStatistics2.prototype.clearExtraDataMap = functio /** - * optional string maker_deposit_tx_id = 1000; + * optional string maker_deposit_tx_id = 100; * @return {string} */ proto.io.bisq.protobuffer.TradeStatistics2.prototype.getMakerDepositTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1000, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 100, "")); }; @@ -32098,16 +33366,16 @@ proto.io.bisq.protobuffer.TradeStatistics2.prototype.getMakerDepositTxId = funct * @return {!proto.io.bisq.protobuffer.TradeStatistics2} returns this */ proto.io.bisq.protobuffer.TradeStatistics2.prototype.setMakerDepositTxId = function(value) { - return jspb.Message.setProto3StringField(this, 1000, value); + return jspb.Message.setProto3StringField(this, 100, value); }; /** - * optional string taker_deposit_tx_id = 1001; + * optional string taker_deposit_tx_id = 101; * @return {string} */ proto.io.bisq.protobuffer.TradeStatistics2.prototype.getTakerDepositTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1001, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 101, "")); }; @@ -32116,7 +33384,434 @@ proto.io.bisq.protobuffer.TradeStatistics2.prototype.getTakerDepositTxId = funct * @return {!proto.io.bisq.protobuffer.TradeStatistics2} returns this */ proto.io.bisq.protobuffer.TradeStatistics2.prototype.setTakerDepositTxId = function(value) { - return jspb.Message.setProto3StringField(this, 1001, value); + return jspb.Message.setProto3StringField(this, 101, 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.TradeStatistics3.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.TradeStatistics3.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.TradeStatistics3} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TradeStatistics3.toObject = function(includeInstance, msg) { + var f, obj = { + currency: jspb.Message.getFieldWithDefault(msg, 1, ""), + price: jspb.Message.getFieldWithDefault(msg, 2, 0), + amount: jspb.Message.getFieldWithDefault(msg, 3, 0), + paymentMethod: jspb.Message.getFieldWithDefault(msg, 4, ""), + date: jspb.Message.getFieldWithDefault(msg, 5, 0), + hash: msg.getHash_asB64(), + extraDataMap: (f = msg.getExtraDataMap()) ? f.toObject(includeInstance, undefined) : [], + arbitrator: jspb.Message.getFieldWithDefault(msg, 100, ""), + makerDepositTxId: jspb.Message.getFieldWithDefault(msg, 101, ""), + takerDepositTxId: jspb.Message.getFieldWithDefault(msg, 102, "") + }; + + 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.TradeStatistics3} + */ +proto.io.bisq.protobuffer.TradeStatistics3.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.TradeStatistics3; + return proto.io.bisq.protobuffer.TradeStatistics3.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.TradeStatistics3} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.TradeStatistics3} + */ +proto.io.bisq.protobuffer.TradeStatistics3.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.setCurrency(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setPrice(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setAmount(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setPaymentMethod(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt64()); + msg.setDate(value); + break; + case 8: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setHash(value); + break; + case 9: + var value = msg.getExtraDataMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + case 100: + var value = /** @type {string} */ (reader.readString()); + msg.setArbitrator(value); + break; + case 101: + var value = /** @type {string} */ (reader.readString()); + msg.setMakerDepositTxId(value); + break; + case 102: + var value = /** @type {string} */ (reader.readString()); + msg.setTakerDepositTxId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.TradeStatistics3.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.TradeStatistics3} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TradeStatistics3.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCurrency(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getPrice(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getAmount(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } + f = message.getPaymentMethod(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getDate(); + if (f !== 0) { + writer.writeInt64( + 5, + f + ); + } + f = message.getHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 8, + f + ); + } + f = message.getExtraDataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getArbitrator(); + if (f.length > 0) { + writer.writeString( + 100, + f + ); + } + f = message.getMakerDepositTxId(); + if (f.length > 0) { + writer.writeString( + 101, + f + ); + } + f = message.getTakerDepositTxId(); + if (f.length > 0) { + writer.writeString( + 102, + f + ); + } +}; + + +/** + * optional string currency = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.getCurrency = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics3} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.setCurrency = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int64 price = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.getPrice = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics3} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.setPrice = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional int64 amount = 3; + * @return {number} + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.getAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics3} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.setAmount = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional string payment_method = 4; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.getPaymentMethod = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics3} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.setPaymentMethod = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional int64 date = 5; + * @return {number} + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.getDate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics3} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.setDate = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional bytes hash = 8; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.getHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * optional bytes hash = 8; + * This is a type-conversion wrapper around `getHash()` + * @return {string} + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.getHash_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getHash())); +}; + + +/** + * optional bytes hash = 8; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getHash()` + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.getHash_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getHash())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics3} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.setHash = function(value) { + return jspb.Message.setProto3BytesField(this, 8, value); +}; + + +/** + * map extra_data = 9; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.getExtraDataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 9, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.io.bisq.protobuffer.TradeStatistics3} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.clearExtraDataMap = function() { + this.getExtraDataMap().clear(); + return this;}; + + +/** + * optional string arbitrator = 100; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.getArbitrator = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 100, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics3} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.setArbitrator = function(value) { + return jspb.Message.setProto3StringField(this, 100, value); +}; + + +/** + * optional string maker_deposit_tx_id = 101; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.getMakerDepositTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 101, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics3} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.setMakerDepositTxId = function(value) { + return jspb.Message.setProto3StringField(this, 101, value); +}; + + +/** + * optional string taker_deposit_tx_id = 102; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.getTakerDepositTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 102, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics3} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics3.prototype.setTakerDepositTxId = function(value) { + return jspb.Message.setProto3StringField(this, 102, value); }; @@ -34463,7 +36158,10 @@ proto.io.bisq.protobuffer.Dispute.toObject = function(includeInstance, msg) { mediatorsDisputeResult: jspb.Message.getFieldWithDefault(msg, 25, ""), delayedPayoutTxId: jspb.Message.getFieldWithDefault(msg, 26, ""), donationAddressOfDelayedPayoutTx: jspb.Message.getFieldWithDefault(msg, 27, ""), - isOpener: jspb.Message.getBooleanFieldWithDefault(msg, 28, false) + state: jspb.Message.getFieldWithDefault(msg, 28, 0), + tradePeriodEnd: jspb.Message.getFieldWithDefault(msg, 29, 0), + extraDataMap: (f = msg.getExtraDataMap()) ? f.toObject(includeInstance, undefined) : [], + isOpener: jspb.Message.getBooleanFieldWithDefault(msg, 100, false) }; if (includeInstance) { @@ -34614,6 +36312,20 @@ proto.io.bisq.protobuffer.Dispute.deserializeBinaryFromReader = function(msg, re msg.setDonationAddressOfDelayedPayoutTx(value); break; case 28: + var value = /** @type {!proto.io.bisq.protobuffer.Dispute.State} */ (reader.readEnum()); + msg.setState(value); + break; + case 29: + var value = /** @type {number} */ (reader.readInt64()); + msg.setTradePeriodEnd(value); + break; + case 30: + var value = msg.getExtraDataMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + case 100: var value = /** @type {boolean} */ (reader.readBool()); msg.setIsOpener(value); break; @@ -34840,16 +36552,45 @@ proto.io.bisq.protobuffer.Dispute.serializeBinaryToWriter = function(message, wr f ); } + f = message.getState(); + if (f !== 0.0) { + writer.writeEnum( + 28, + f + ); + } + f = message.getTradePeriodEnd(); + if (f !== 0) { + writer.writeInt64( + 29, + f + ); + } + f = message.getExtraDataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(30, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } f = message.getIsOpener(); if (f) { writer.writeBool( - 28, + 100, f ); } }; +/** + * @enum {number} + */ +proto.io.bisq.protobuffer.Dispute.State = { + NEEDS_UPGRADE: 0, + NEW: 1, + OPEN: 2, + REOPENED: 3, + CLOSED: 4 +}; + /** * optional string trade_id = 1; * @return {string} @@ -35505,11 +37246,69 @@ proto.io.bisq.protobuffer.Dispute.prototype.setDonationAddressOfDelayedPayoutTx /** - * optional bool is_opener = 28; + * optional State state = 28; + * @return {!proto.io.bisq.protobuffer.Dispute.State} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getState = function() { + return /** @type {!proto.io.bisq.protobuffer.Dispute.State} */ (jspb.Message.getFieldWithDefault(this, 28, 0)); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.Dispute.State} value + * @return {!proto.io.bisq.protobuffer.Dispute} returns this + */ +proto.io.bisq.protobuffer.Dispute.prototype.setState = function(value) { + return jspb.Message.setProto3EnumField(this, 28, value); +}; + + +/** + * optional int64 trade_period_end = 29; + * @return {number} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getTradePeriodEnd = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 29, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.Dispute} returns this + */ +proto.io.bisq.protobuffer.Dispute.prototype.setTradePeriodEnd = function(value) { + return jspb.Message.setProto3IntField(this, 29, value); +}; + + +/** + * map extra_data = 30; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getExtraDataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 30, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.io.bisq.protobuffer.Dispute} returns this + */ +proto.io.bisq.protobuffer.Dispute.prototype.clearExtraDataMap = function() { + this.getExtraDataMap().clear(); + return this;}; + + +/** + * optional bool is_opener = 100; * @return {boolean} */ proto.io.bisq.protobuffer.Dispute.prototype.getIsOpener = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 28, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 100, false)); }; @@ -35518,7 +37317,7 @@ proto.io.bisq.protobuffer.Dispute.prototype.getIsOpener = function() { * @return {!proto.io.bisq.protobuffer.Dispute} returns this */ proto.io.bisq.protobuffer.Dispute.prototype.setIsOpener = function(value) { - return jspb.Message.setProto3BooleanField(this, 28, value); + return jspb.Message.setProto3BooleanField(this, 100, value); }; @@ -37330,7 +39129,7 @@ proto.io.bisq.protobuffer.RawTransactionInput.prototype.setValue = function(valu * @private {!Array>} * @const */ -proto.io.bisq.protobuffer.PaymentAccountPayload.oneofGroups_ = [[4,5,6,7,8,9,10,11,12,13,14,16,17,18,19,20,21,22,23,24,25,26,27,28]]; +proto.io.bisq.protobuffer.PaymentAccountPayload.oneofGroups_ = [[4,5,6,7,8,9,10,11,12,13,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32]]; /** * @enum {number} @@ -37360,7 +39159,11 @@ proto.io.bisq.protobuffer.PaymentAccountPayload.MessageCase = { PROMPT_PAY_ACCOUNT_PAYLOAD: 25, ADVANCED_CASH_ACCOUNT_PAYLOAD: 26, INSTANT_CRYPTO_CURRENCY_ACCOUNT_PAYLOAD: 27, - JAPAN_BANK_ACCOUNT_PAYLOAD: 28 + JAPAN_BANK_ACCOUNT_PAYLOAD: 28, + TRANSFERWISE_ACCOUNT_PAYLOAD: 29, + AUSTRALIA_PAYID_PAYLOAD: 30, + AMAZON_GIFT_CARD_ACCOUNT_PAYLOAD: 31, + CASH_BY_MAIL_ACCOUNT_PAYLOAD: 32 }; /** @@ -37428,6 +39231,10 @@ proto.io.bisq.protobuffer.PaymentAccountPayload.toObject = function(includeInsta advancedCashAccountPayload: (f = msg.getAdvancedCashAccountPayload()) && proto.io.bisq.protobuffer.AdvancedCashAccountPayload.toObject(includeInstance, f), instantCryptoCurrencyAccountPayload: (f = msg.getInstantCryptoCurrencyAccountPayload()) && proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload.toObject(includeInstance, f), japanBankAccountPayload: (f = msg.getJapanBankAccountPayload()) && proto.io.bisq.protobuffer.JapanBankAccountPayload.toObject(includeInstance, f), + transferwiseAccountPayload: (f = msg.getTransferwiseAccountPayload()) && proto.io.bisq.protobuffer.TransferwiseAccountPayload.toObject(includeInstance, f), + australiaPayidPayload: (f = msg.getAustraliaPayidPayload()) && proto.io.bisq.protobuffer.AustraliaPayidPayload.toObject(includeInstance, f), + amazonGiftCardAccountPayload: (f = msg.getAmazonGiftCardAccountPayload()) && proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload.toObject(includeInstance, f), + cashByMailAccountPayload: (f = msg.getCashByMailAccountPayload()) && proto.io.bisq.protobuffer.CashByMailAccountPayload.toObject(includeInstance, f), excludeFromJsonDataMap: (f = msg.getExcludeFromJsonDataMap()) ? f.toObject(includeInstance, undefined) : [] }; @@ -37597,6 +39404,26 @@ proto.io.bisq.protobuffer.PaymentAccountPayload.deserializeBinaryFromReader = fu reader.readMessage(value,proto.io.bisq.protobuffer.JapanBankAccountPayload.deserializeBinaryFromReader); msg.setJapanBankAccountPayload(value); break; + case 29: + var value = new proto.io.bisq.protobuffer.TransferwiseAccountPayload; + reader.readMessage(value,proto.io.bisq.protobuffer.TransferwiseAccountPayload.deserializeBinaryFromReader); + msg.setTransferwiseAccountPayload(value); + break; + case 30: + var value = new proto.io.bisq.protobuffer.AustraliaPayidPayload; + reader.readMessage(value,proto.io.bisq.protobuffer.AustraliaPayidPayload.deserializeBinaryFromReader); + msg.setAustraliaPayidPayload(value); + break; + case 31: + var value = new proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload; + reader.readMessage(value,proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload.deserializeBinaryFromReader); + msg.setAmazonGiftCardAccountPayload(value); + break; + case 32: + var value = new proto.io.bisq.protobuffer.CashByMailAccountPayload; + reader.readMessage(value,proto.io.bisq.protobuffer.CashByMailAccountPayload.deserializeBinaryFromReader); + msg.setCashByMailAccountPayload(value); + break; case 15: var value = msg.getExcludeFromJsonDataMap(); reader.readMessage(value, function(message, reader) { @@ -37845,6 +39672,38 @@ proto.io.bisq.protobuffer.PaymentAccountPayload.serializeBinaryToWriter = functi proto.io.bisq.protobuffer.JapanBankAccountPayload.serializeBinaryToWriter ); } + f = message.getTransferwiseAccountPayload(); + if (f != null) { + writer.writeMessage( + 29, + f, + proto.io.bisq.protobuffer.TransferwiseAccountPayload.serializeBinaryToWriter + ); + } + f = message.getAustraliaPayidPayload(); + if (f != null) { + writer.writeMessage( + 30, + f, + proto.io.bisq.protobuffer.AustraliaPayidPayload.serializeBinaryToWriter + ); + } + f = message.getAmazonGiftCardAccountPayload(); + if (f != null) { + writer.writeMessage( + 31, + f, + proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload.serializeBinaryToWriter + ); + } + f = message.getCashByMailAccountPayload(); + if (f != null) { + writer.writeMessage( + 32, + f, + proto.io.bisq.protobuffer.CashByMailAccountPayload.serializeBinaryToWriter + ); + } f = message.getExcludeFromJsonDataMap(true); if (f && f.getLength() > 0) { f.serializeBinary(15, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); @@ -38794,6 +40653,154 @@ proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasJapanBankAccountPay }; +/** + * optional TransferwiseAccountPayload Transferwise_account_payload = 29; + * @return {?proto.io.bisq.protobuffer.TransferwiseAccountPayload} + */ +proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getTransferwiseAccountPayload = function() { + return /** @type{?proto.io.bisq.protobuffer.TransferwiseAccountPayload} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TransferwiseAccountPayload, 29)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.TransferwiseAccountPayload|undefined} value + * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this +*/ +proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setTransferwiseAccountPayload = function(value) { + return jspb.Message.setOneofWrapperField(this, 29, proto.io.bisq.protobuffer.PaymentAccountPayload.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this + */ +proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.clearTransferwiseAccountPayload = function() { + return this.setTransferwiseAccountPayload(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasTransferwiseAccountPayload = function() { + return jspb.Message.getField(this, 29) != null; +}; + + +/** + * optional AustraliaPayidPayload australia_payid_payload = 30; + * @return {?proto.io.bisq.protobuffer.AustraliaPayidPayload} + */ +proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getAustraliaPayidPayload = function() { + return /** @type{?proto.io.bisq.protobuffer.AustraliaPayidPayload} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.AustraliaPayidPayload, 30)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.AustraliaPayidPayload|undefined} value + * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this +*/ +proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setAustraliaPayidPayload = function(value) { + return jspb.Message.setOneofWrapperField(this, 30, proto.io.bisq.protobuffer.PaymentAccountPayload.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this + */ +proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.clearAustraliaPayidPayload = function() { + return this.setAustraliaPayidPayload(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasAustraliaPayidPayload = function() { + return jspb.Message.getField(this, 30) != null; +}; + + +/** + * optional AmazonGiftCardAccountPayload amazon_gift_card_account_payload = 31; + * @return {?proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload} + */ +proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getAmazonGiftCardAccountPayload = function() { + return /** @type{?proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload, 31)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload|undefined} value + * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this +*/ +proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setAmazonGiftCardAccountPayload = function(value) { + return jspb.Message.setOneofWrapperField(this, 31, proto.io.bisq.protobuffer.PaymentAccountPayload.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this + */ +proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.clearAmazonGiftCardAccountPayload = function() { + return this.setAmazonGiftCardAccountPayload(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasAmazonGiftCardAccountPayload = function() { + return jspb.Message.getField(this, 31) != null; +}; + + +/** + * optional CashByMailAccountPayload cash_by_mail_account_payload = 32; + * @return {?proto.io.bisq.protobuffer.CashByMailAccountPayload} + */ +proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getCashByMailAccountPayload = function() { + return /** @type{?proto.io.bisq.protobuffer.CashByMailAccountPayload} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.CashByMailAccountPayload, 32)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.CashByMailAccountPayload|undefined} value + * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this +*/ +proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setCashByMailAccountPayload = function(value) { + return jspb.Message.setOneofWrapperField(this, 32, proto.io.bisq.protobuffer.PaymentAccountPayload.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this + */ +proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.clearCashByMailAccountPayload = function() { + return this.setCashByMailAccountPayload(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasCashByMailAccountPayload = function() { + return jspb.Message.getField(this, 32) != null; +}; + + /** * map exclude_from_json_data = 15; * @param {boolean=} opt_noLazyCreate Do not create the map if @@ -40925,6 +42932,166 @@ proto.io.bisq.protobuffer.JapanBankAccountPayload.prototype.setBankAccountNumber + + +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.AustraliaPayidPayload.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.AustraliaPayidPayload.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.AustraliaPayidPayload} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.AustraliaPayidPayload.toObject = function(includeInstance, msg) { + var f, obj = { + bankAccountName: jspb.Message.getFieldWithDefault(msg, 1, ""), + payid: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + 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.AustraliaPayidPayload} + */ +proto.io.bisq.protobuffer.AustraliaPayidPayload.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.AustraliaPayidPayload; + return proto.io.bisq.protobuffer.AustraliaPayidPayload.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.AustraliaPayidPayload} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.AustraliaPayidPayload} + */ +proto.io.bisq.protobuffer.AustraliaPayidPayload.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.setBankAccountName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setPayid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.AustraliaPayidPayload.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.AustraliaPayidPayload.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.AustraliaPayidPayload} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.AustraliaPayidPayload.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBankAccountName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getPayid(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string bank_account_name = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.AustraliaPayidPayload.prototype.getBankAccountName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.AustraliaPayidPayload} returns this + */ +proto.io.bisq.protobuffer.AustraliaPayidPayload.prototype.setBankAccountName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string payid = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.AustraliaPayidPayload.prototype.getPayid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.AustraliaPayidPayload} returns this + */ +proto.io.bisq.protobuffer.AustraliaPayidPayload.prototype.setPayid = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + /** * List of repeated fields within this message type. * @private {!Array} @@ -42051,6 +44218,166 @@ proto.io.bisq.protobuffer.WesternUnionAccountPayload.prototype.setEmail = functi + + +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.AmazonGiftCardAccountPayload.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload.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.AmazonGiftCardAccountPayload} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload.toObject = function(includeInstance, msg) { + var f, obj = { + emailOrMobileNr: jspb.Message.getFieldWithDefault(msg, 1, ""), + countryCode: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + 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.AmazonGiftCardAccountPayload} + */ +proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload; + return proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload} + */ +proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload.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.setEmailOrMobileNr(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setCountryCode(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload.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.AmazonGiftCardAccountPayload} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEmailOrMobileNr(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getCountryCode(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string email_or_mobile_nr = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload.prototype.getEmailOrMobileNr = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload} returns this + */ +proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload.prototype.setEmailOrMobileNr = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string country_code = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload.prototype.getCountryCode = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload} returns this + */ +proto.io.bisq.protobuffer.AmazonGiftCardAccountPayload.prototype.setCountryCode = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + /** * List of repeated fields within this message type. * @private {!Array} @@ -44885,6 +47212,196 @@ proto.io.bisq.protobuffer.F2FAccountPayload.prototype.setExtraInfo = function(va +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.CashByMailAccountPayload.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.CashByMailAccountPayload.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.CashByMailAccountPayload} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CashByMailAccountPayload.toObject = function(includeInstance, msg) { + var f, obj = { + postalAddress: jspb.Message.getFieldWithDefault(msg, 1, ""), + contact: jspb.Message.getFieldWithDefault(msg, 2, ""), + extraInfo: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + 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.CashByMailAccountPayload} + */ +proto.io.bisq.protobuffer.CashByMailAccountPayload.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.CashByMailAccountPayload; + return proto.io.bisq.protobuffer.CashByMailAccountPayload.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.CashByMailAccountPayload} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.CashByMailAccountPayload} + */ +proto.io.bisq.protobuffer.CashByMailAccountPayload.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.setPostalAddress(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setContact(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setExtraInfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.CashByMailAccountPayload.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.CashByMailAccountPayload.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.CashByMailAccountPayload} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CashByMailAccountPayload.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPostalAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getContact(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getExtraInfo(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string postal_address = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.CashByMailAccountPayload.prototype.getPostalAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.CashByMailAccountPayload} returns this + */ +proto.io.bisq.protobuffer.CashByMailAccountPayload.prototype.setPostalAddress = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string contact = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.CashByMailAccountPayload.prototype.getContact = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.CashByMailAccountPayload} returns this + */ +proto.io.bisq.protobuffer.CashByMailAccountPayload.prototype.setContact = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string extra_info = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.CashByMailAccountPayload.prototype.getExtraInfo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.CashByMailAccountPayload} returns this + */ +proto.io.bisq.protobuffer.CashByMailAccountPayload.prototype.setExtraInfo = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -45143,6 +47660,136 @@ proto.io.bisq.protobuffer.AdvancedCashAccountPayload.prototype.setAccountNr = 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.TransferwiseAccountPayload.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.TransferwiseAccountPayload.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.TransferwiseAccountPayload} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TransferwiseAccountPayload.toObject = function(includeInstance, msg) { + var f, obj = { + email: 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.TransferwiseAccountPayload} + */ +proto.io.bisq.protobuffer.TransferwiseAccountPayload.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.TransferwiseAccountPayload; + return proto.io.bisq.protobuffer.TransferwiseAccountPayload.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.TransferwiseAccountPayload} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.TransferwiseAccountPayload} + */ +proto.io.bisq.protobuffer.TransferwiseAccountPayload.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.setEmail(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.TransferwiseAccountPayload.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.TransferwiseAccountPayload.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.TransferwiseAccountPayload} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TransferwiseAccountPayload.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEmail(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string email = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.TransferwiseAccountPayload.prototype.getEmail = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TransferwiseAccountPayload} returns this + */ +proto.io.bisq.protobuffer.TransferwiseAccountPayload.prototype.setEmail = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -45151,7 +47798,7 @@ proto.io.bisq.protobuffer.AdvancedCashAccountPayload.prototype.setAccountNr = fu * @private {!Array>} * @const */ -proto.io.bisq.protobuffer.PersistableEnvelope.oneofGroups_ = [[1,2,3,4,5,6,8,9,10,11,13,14,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31]]; +proto.io.bisq.protobuffer.PersistableEnvelope.oneofGroups_ = [[1,2,3,4,5,6,8,9,10,11,13,14,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,100]]; /** * @enum {number} @@ -45184,7 +47831,11 @@ proto.io.bisq.protobuffer.PersistableEnvelope.MessageCase = { SIGNED_WITNESS_STORE: 28, MEDIATION_DISPUTE_LIST: 29, REFUND_DISPUTE_LIST: 30, - XMR_ADDRESS_ENTRY_LIST: 31 + TRADE_STATISTICS3_STORE: 31, + MAILBOX_MESSAGE_LIST: 32, + IGNORED_MAILBOX_MAP: 33, + REMOVED_PAYLOADS_MAP: 34, + XMR_ADDRESS_ENTRY_LIST: 100 }; /** @@ -45251,6 +47902,10 @@ proto.io.bisq.protobuffer.PersistableEnvelope.toObject = function(includeInstanc signedWitnessStore: (f = msg.getSignedWitnessStore()) && proto.io.bisq.protobuffer.SignedWitnessStore.toObject(includeInstance, f), mediationDisputeList: (f = msg.getMediationDisputeList()) && proto.io.bisq.protobuffer.MediationDisputeList.toObject(includeInstance, f), refundDisputeList: (f = msg.getRefundDisputeList()) && proto.io.bisq.protobuffer.RefundDisputeList.toObject(includeInstance, f), + tradeStatistics3Store: (f = msg.getTradeStatistics3Store()) && proto.io.bisq.protobuffer.TradeStatistics3Store.toObject(includeInstance, f), + mailboxMessageList: (f = msg.getMailboxMessageList()) && proto.io.bisq.protobuffer.MailboxMessageList.toObject(includeInstance, f), + ignoredMailboxMap: (f = msg.getIgnoredMailboxMap()) && proto.io.bisq.protobuffer.IgnoredMailboxMap.toObject(includeInstance, f), + removedPayloadsMap: (f = msg.getRemovedPayloadsMap()) && proto.io.bisq.protobuffer.RemovedPayloadsMap.toObject(includeInstance, f), xmrAddressEntryList: (f = msg.getXmrAddressEntryList()) && proto.io.bisq.protobuffer.XmrAddressEntryList.toObject(includeInstance, f) }; @@ -45419,6 +48074,26 @@ proto.io.bisq.protobuffer.PersistableEnvelope.deserializeBinaryFromReader = func msg.setRefundDisputeList(value); break; case 31: + var value = new proto.io.bisq.protobuffer.TradeStatistics3Store; + reader.readMessage(value,proto.io.bisq.protobuffer.TradeStatistics3Store.deserializeBinaryFromReader); + msg.setTradeStatistics3Store(value); + break; + case 32: + var value = new proto.io.bisq.protobuffer.MailboxMessageList; + reader.readMessage(value,proto.io.bisq.protobuffer.MailboxMessageList.deserializeBinaryFromReader); + msg.setMailboxMessageList(value); + break; + case 33: + var value = new proto.io.bisq.protobuffer.IgnoredMailboxMap; + reader.readMessage(value,proto.io.bisq.protobuffer.IgnoredMailboxMap.deserializeBinaryFromReader); + msg.setIgnoredMailboxMap(value); + break; + case 34: + var value = new proto.io.bisq.protobuffer.RemovedPayloadsMap; + reader.readMessage(value,proto.io.bisq.protobuffer.RemovedPayloadsMap.deserializeBinaryFromReader); + msg.setRemovedPayloadsMap(value); + break; + case 100: var value = new proto.io.bisq.protobuffer.XmrAddressEntryList; reader.readMessage(value,proto.io.bisq.protobuffer.XmrAddressEntryList.deserializeBinaryFromReader); msg.setXmrAddressEntryList(value); @@ -45660,11 +48335,43 @@ proto.io.bisq.protobuffer.PersistableEnvelope.serializeBinaryToWriter = function proto.io.bisq.protobuffer.RefundDisputeList.serializeBinaryToWriter ); } - f = message.getXmrAddressEntryList(); + f = message.getTradeStatistics3Store(); if (f != null) { writer.writeMessage( 31, f, + proto.io.bisq.protobuffer.TradeStatistics3Store.serializeBinaryToWriter + ); + } + f = message.getMailboxMessageList(); + if (f != null) { + writer.writeMessage( + 32, + f, + proto.io.bisq.protobuffer.MailboxMessageList.serializeBinaryToWriter + ); + } + f = message.getIgnoredMailboxMap(); + if (f != null) { + writer.writeMessage( + 33, + f, + proto.io.bisq.protobuffer.IgnoredMailboxMap.serializeBinaryToWriter + ); + } + f = message.getRemovedPayloadsMap(); + if (f != null) { + writer.writeMessage( + 34, + f, + proto.io.bisq.protobuffer.RemovedPayloadsMap.serializeBinaryToWriter + ); + } + f = message.getXmrAddressEntryList(); + if (f != null) { + writer.writeMessage( + 100, + f, proto.io.bisq.protobuffer.XmrAddressEntryList.serializeBinaryToWriter ); } @@ -46634,12 +49341,160 @@ proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasRefundDisputeList = f /** - * optional XmrAddressEntryList xmr_address_entry_list = 31; + * optional TradeStatistics3Store trade_statistics3_store = 31; + * @return {?proto.io.bisq.protobuffer.TradeStatistics3Store} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getTradeStatistics3Store = function() { + return /** @type{?proto.io.bisq.protobuffer.TradeStatistics3Store} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TradeStatistics3Store, 31)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.TradeStatistics3Store|undefined} value + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this +*/ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setTradeStatistics3Store = function(value) { + return jspb.Message.setOneofWrapperField(this, 31, proto.io.bisq.protobuffer.PersistableEnvelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.clearTradeStatistics3Store = function() { + return this.setTradeStatistics3Store(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasTradeStatistics3Store = function() { + return jspb.Message.getField(this, 31) != null; +}; + + +/** + * optional MailboxMessageList mailbox_message_list = 32; + * @return {?proto.io.bisq.protobuffer.MailboxMessageList} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getMailboxMessageList = function() { + return /** @type{?proto.io.bisq.protobuffer.MailboxMessageList} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.MailboxMessageList, 32)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.MailboxMessageList|undefined} value + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this +*/ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setMailboxMessageList = function(value) { + return jspb.Message.setOneofWrapperField(this, 32, proto.io.bisq.protobuffer.PersistableEnvelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.clearMailboxMessageList = function() { + return this.setMailboxMessageList(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasMailboxMessageList = function() { + return jspb.Message.getField(this, 32) != null; +}; + + +/** + * optional IgnoredMailboxMap ignored_mailbox_map = 33; + * @return {?proto.io.bisq.protobuffer.IgnoredMailboxMap} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getIgnoredMailboxMap = function() { + return /** @type{?proto.io.bisq.protobuffer.IgnoredMailboxMap} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.IgnoredMailboxMap, 33)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.IgnoredMailboxMap|undefined} value + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this +*/ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setIgnoredMailboxMap = function(value) { + return jspb.Message.setOneofWrapperField(this, 33, proto.io.bisq.protobuffer.PersistableEnvelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.clearIgnoredMailboxMap = function() { + return this.setIgnoredMailboxMap(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasIgnoredMailboxMap = function() { + return jspb.Message.getField(this, 33) != null; +}; + + +/** + * optional RemovedPayloadsMap removed_payloads_map = 34; + * @return {?proto.io.bisq.protobuffer.RemovedPayloadsMap} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getRemovedPayloadsMap = function() { + return /** @type{?proto.io.bisq.protobuffer.RemovedPayloadsMap} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.RemovedPayloadsMap, 34)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.RemovedPayloadsMap|undefined} value + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this +*/ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setRemovedPayloadsMap = function(value) { + return jspb.Message.setOneofWrapperField(this, 34, proto.io.bisq.protobuffer.PersistableEnvelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.clearRemovedPayloadsMap = function() { + return this.setRemovedPayloadsMap(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasRemovedPayloadsMap = function() { + return jspb.Message.getField(this, 34) != null; +}; + + +/** + * optional XmrAddressEntryList xmr_address_entry_list = 100; * @return {?proto.io.bisq.protobuffer.XmrAddressEntryList} */ proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getXmrAddressEntryList = function() { return /** @type{?proto.io.bisq.protobuffer.XmrAddressEntryList} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.XmrAddressEntryList, 31)); + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.XmrAddressEntryList, 100)); }; @@ -46648,7 +49503,7 @@ proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getXmrAddressEntryList = * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this */ proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setXmrAddressEntryList = function(value) { - return jspb.Message.setOneofWrapperField(this, 31, proto.io.bisq.protobuffer.PersistableEnvelope.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 100, proto.io.bisq.protobuffer.PersistableEnvelope.oneofGroups_[0], value); }; @@ -46666,7 +49521,7 @@ proto.io.bisq.protobuffer.PersistableEnvelope.prototype.clearXmrAddressEntryList * @return {boolean} */ proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasXmrAddressEntryList = function() { - return jspb.Message.getField(this, 31) != null; + return jspb.Message.getField(this, 100) != null; }; @@ -47960,6 +50815,166 @@ proto.io.bisq.protobuffer.TradeStatistics2Store.prototype.clearItemsList = funct +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.TradeStatistics3Store.repeatedFields_ = [1]; + + + +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.TradeStatistics3Store.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.TradeStatistics3Store.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.TradeStatistics3Store} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TradeStatistics3Store.toObject = function(includeInstance, msg) { + var f, obj = { + itemsList: jspb.Message.toObjectList(msg.getItemsList(), + proto.io.bisq.protobuffer.TradeStatistics3.toObject, includeInstance) + }; + + 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.TradeStatistics3Store} + */ +proto.io.bisq.protobuffer.TradeStatistics3Store.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.TradeStatistics3Store; + return proto.io.bisq.protobuffer.TradeStatistics3Store.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.TradeStatistics3Store} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.TradeStatistics3Store} + */ +proto.io.bisq.protobuffer.TradeStatistics3Store.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.io.bisq.protobuffer.TradeStatistics3; + reader.readMessage(value,proto.io.bisq.protobuffer.TradeStatistics3.deserializeBinaryFromReader); + msg.addItems(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.TradeStatistics3Store.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.TradeStatistics3Store.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.TradeStatistics3Store} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TradeStatistics3Store.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getItemsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.TradeStatistics3.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated TradeStatistics3 items = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.TradeStatistics3Store.prototype.getItemsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.TradeStatistics3, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics3Store} returns this +*/ +proto.io.bisq.protobuffer.TradeStatistics3Store.prototype.setItemsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.TradeStatistics3=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.TradeStatistics3} + */ +proto.io.bisq.protobuffer.TradeStatistics3Store.prototype.addItems = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.TradeStatistics3, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.TradeStatistics3Store} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics3Store.prototype.clearItemsList = function() { + return this.setItemsList([]); +}; + + + /** * List of repeated fields within this message type. * @private {!Array} @@ -48315,7 +51330,8 @@ proto.io.bisq.protobuffer.AddressEntry.toObject = function(includeInstance, msg) context: jspb.Message.getFieldWithDefault(msg, 8, 0), pubKey: msg.getPubKey_asB64(), pubKeyHash: msg.getPubKeyHash_asB64(), - coinLockedInMultiSig: jspb.Message.getFieldWithDefault(msg, 11, 0) + coinLockedInMultiSig: jspb.Message.getFieldWithDefault(msg, 11, 0), + segwit: jspb.Message.getBooleanFieldWithDefault(msg, 12, false) }; if (includeInstance) { @@ -48372,6 +51388,10 @@ proto.io.bisq.protobuffer.AddressEntry.deserializeBinaryFromReader = function(ms var value = /** @type {number} */ (reader.readInt64()); msg.setCoinLockedInMultiSig(value); break; + case 12: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSegwit(value); + break; default: reader.skipField(); break; @@ -48436,6 +51456,13 @@ proto.io.bisq.protobuffer.AddressEntry.serializeBinaryToWriter = function(messag f ); } + f = message.getSegwit(); + if (f) { + writer.writeBool( + 12, + f + ); + } }; @@ -48590,6 +51617,24 @@ proto.io.bisq.protobuffer.AddressEntry.prototype.setCoinLockedInMultiSig = funct }; +/** + * optional bool segwit = 12; + * @return {boolean} + */ +proto.io.bisq.protobuffer.AddressEntry.prototype.getSegwit = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.AddressEntry} returns this + */ +proto.io.bisq.protobuffer.AddressEntry.prototype.setSegwit = function(value) { + return jspb.Message.setProto3BooleanField(this, 12, value); +}; + + /** * List of repeated fields within this message type. @@ -49689,7 +52734,8 @@ proto.io.bisq.protobuffer.OpenOffer.toObject = function(includeInstance, msg) { state: jspb.Message.getFieldWithDefault(msg, 2, 0), arbitratorNodeAddress: (f = msg.getArbitratorNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), mediatorNodeAddress: (f = msg.getMediatorNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - refundAgentNodeAddress: (f = msg.getRefundAgentNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f) + refundAgentNodeAddress: (f = msg.getRefundAgentNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), + triggerPrice: jspb.Message.getFieldWithDefault(msg, 6, 0) }; if (includeInstance) { @@ -49750,6 +52796,10 @@ proto.io.bisq.protobuffer.OpenOffer.deserializeBinaryFromReader = function(msg, reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); msg.setRefundAgentNodeAddress(value); break; + case 6: + var value = /** @type {number} */ (reader.readInt64()); + msg.setTriggerPrice(value); + break; default: reader.skipField(); break; @@ -49818,6 +52868,13 @@ proto.io.bisq.protobuffer.OpenOffer.serializeBinaryToWriter = function(message, proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter ); } + f = message.getTriggerPrice(); + if (f !== 0) { + writer.writeInt64( + 6, + f + ); + } }; @@ -49999,6 +53056,24 @@ proto.io.bisq.protobuffer.OpenOffer.prototype.hasRefundAgentNodeAddress = functi }; +/** + * optional int64 trigger_price = 6; + * @return {number} + */ +proto.io.bisq.protobuffer.OpenOffer.prototype.getTriggerPrice = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.OpenOffer} returns this + */ +proto.io.bisq.protobuffer.OpenOffer.prototype.setTriggerPrice = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + /** * Oneof group definitions for this message. Each group defines the field @@ -50511,12 +53586,13 @@ proto.io.bisq.protobuffer.Trade.toObject = function(includeInstance, msg) { lastRefreshRequestDate: jspb.Message.getFieldWithDefault(msg, 36, 0), counterCurrencyExtraData: jspb.Message.getFieldWithDefault(msg, 37, ""), assetTxProofResult: jspb.Message.getFieldWithDefault(msg, 38, ""), + uid: jspb.Message.getFieldWithDefault(msg, 39, ""), takerNodeAddress: (f = msg.getTakerNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), takerPubKeyRing: (f = msg.getTakerPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - takerDepositTxId: jspb.Message.getFieldWithDefault(msg, 1002, ""), + takerDepositTxId: jspb.Message.getFieldWithDefault(msg, 102, ""), makerNodeAddress: (f = msg.getMakerNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), makerPubKeyRing: (f = msg.getMakerPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - makerDepositTxId: jspb.Message.getFieldWithDefault(msg, 1005, "") + makerDepositTxId: jspb.Message.getFieldWithDefault(msg, 105, "") }; if (includeInstance) { @@ -50707,31 +53783,35 @@ proto.io.bisq.protobuffer.Trade.deserializeBinaryFromReader = function(msg, read var value = /** @type {string} */ (reader.readString()); msg.setAssetTxProofResult(value); break; - case 1000: + case 39: + var value = /** @type {string} */ (reader.readString()); + msg.setUid(value); + break; + case 100: var value = new proto.io.bisq.protobuffer.NodeAddress; reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); msg.setTakerNodeAddress(value); break; - case 1001: + case 101: var value = new proto.io.bisq.protobuffer.PubKeyRing; reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); msg.setTakerPubKeyRing(value); break; - case 1002: + case 102: var value = /** @type {string} */ (reader.readString()); msg.setTakerDepositTxId(value); break; - case 1003: + case 103: var value = new proto.io.bisq.protobuffer.NodeAddress; reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); msg.setMakerNodeAddress(value); break; - case 1004: + case 104: var value = new proto.io.bisq.protobuffer.PubKeyRing; reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); msg.setMakerPubKeyRing(value); break; - case 1005: + case 105: var value = /** @type {string} */ (reader.readString()); msg.setMakerDepositTxId(value); break; @@ -51026,10 +54106,17 @@ proto.io.bisq.protobuffer.Trade.serializeBinaryToWriter = function(message, writ f ); } + f = message.getUid(); + if (f.length > 0) { + writer.writeString( + 39, + f + ); + } f = message.getTakerNodeAddress(); if (f != null) { writer.writeMessage( - 1000, + 100, f, proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter ); @@ -51037,7 +54124,7 @@ proto.io.bisq.protobuffer.Trade.serializeBinaryToWriter = function(message, writ f = message.getTakerPubKeyRing(); if (f != null) { writer.writeMessage( - 1001, + 101, f, proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter ); @@ -51045,14 +54132,14 @@ proto.io.bisq.protobuffer.Trade.serializeBinaryToWriter = function(message, writ f = message.getTakerDepositTxId(); if (f.length > 0) { writer.writeString( - 1002, + 102, f ); } f = message.getMakerNodeAddress(); if (f != null) { writer.writeMessage( - 1003, + 103, f, proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter ); @@ -51060,7 +54147,7 @@ proto.io.bisq.protobuffer.Trade.serializeBinaryToWriter = function(message, writ f = message.getMakerPubKeyRing(); if (f != null) { writer.writeMessage( - 1004, + 104, f, proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter ); @@ -51068,7 +54155,7 @@ proto.io.bisq.protobuffer.Trade.serializeBinaryToWriter = function(message, writ f = message.getMakerDepositTxId(); if (f.length > 0) { writer.writeString( - 1005, + 105, f ); } @@ -52067,12 +55154,30 @@ proto.io.bisq.protobuffer.Trade.prototype.setAssetTxProofResult = function(value /** - * optional NodeAddress taker_node_address = 1000; + * optional string uid = 39; + * @return {string} + */ +proto.io.bisq.protobuffer.Trade.prototype.getUid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 39, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.Trade} returns this + */ +proto.io.bisq.protobuffer.Trade.prototype.setUid = function(value) { + return jspb.Message.setProto3StringField(this, 39, value); +}; + + +/** + * optional NodeAddress taker_node_address = 100; * @return {?proto.io.bisq.protobuffer.NodeAddress} */ proto.io.bisq.protobuffer.Trade.prototype.getTakerNodeAddress = function() { return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 1000)); + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 100)); }; @@ -52081,7 +55186,7 @@ proto.io.bisq.protobuffer.Trade.prototype.getTakerNodeAddress = function() { * @return {!proto.io.bisq.protobuffer.Trade} returns this */ proto.io.bisq.protobuffer.Trade.prototype.setTakerNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 1000, value); + return jspb.Message.setWrapperField(this, 100, value); }; @@ -52099,17 +55204,17 @@ proto.io.bisq.protobuffer.Trade.prototype.clearTakerNodeAddress = function() { * @return {boolean} */ proto.io.bisq.protobuffer.Trade.prototype.hasTakerNodeAddress = function() { - return jspb.Message.getField(this, 1000) != null; + return jspb.Message.getField(this, 100) != null; }; /** - * optional PubKeyRing taker_pub_key_ring = 1001; + * optional PubKeyRing taker_pub_key_ring = 101; * @return {?proto.io.bisq.protobuffer.PubKeyRing} */ proto.io.bisq.protobuffer.Trade.prototype.getTakerPubKeyRing = function() { return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 1001)); + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 101)); }; @@ -52118,7 +55223,7 @@ proto.io.bisq.protobuffer.Trade.prototype.getTakerPubKeyRing = function() { * @return {!proto.io.bisq.protobuffer.Trade} returns this */ proto.io.bisq.protobuffer.Trade.prototype.setTakerPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 1001, value); + return jspb.Message.setWrapperField(this, 101, value); }; @@ -52136,16 +55241,16 @@ proto.io.bisq.protobuffer.Trade.prototype.clearTakerPubKeyRing = function() { * @return {boolean} */ proto.io.bisq.protobuffer.Trade.prototype.hasTakerPubKeyRing = function() { - return jspb.Message.getField(this, 1001) != null; + return jspb.Message.getField(this, 101) != null; }; /** - * optional string taker_deposit_tx_id = 1002; + * optional string taker_deposit_tx_id = 102; * @return {string} */ proto.io.bisq.protobuffer.Trade.prototype.getTakerDepositTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1002, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 102, "")); }; @@ -52154,17 +55259,17 @@ proto.io.bisq.protobuffer.Trade.prototype.getTakerDepositTxId = function() { * @return {!proto.io.bisq.protobuffer.Trade} returns this */ proto.io.bisq.protobuffer.Trade.prototype.setTakerDepositTxId = function(value) { - return jspb.Message.setProto3StringField(this, 1002, value); + return jspb.Message.setProto3StringField(this, 102, value); }; /** - * optional NodeAddress maker_node_address = 1003; + * optional NodeAddress maker_node_address = 103; * @return {?proto.io.bisq.protobuffer.NodeAddress} */ proto.io.bisq.protobuffer.Trade.prototype.getMakerNodeAddress = function() { return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 1003)); + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 103)); }; @@ -52173,7 +55278,7 @@ proto.io.bisq.protobuffer.Trade.prototype.getMakerNodeAddress = function() { * @return {!proto.io.bisq.protobuffer.Trade} returns this */ proto.io.bisq.protobuffer.Trade.prototype.setMakerNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 1003, value); + return jspb.Message.setWrapperField(this, 103, value); }; @@ -52191,17 +55296,17 @@ proto.io.bisq.protobuffer.Trade.prototype.clearMakerNodeAddress = function() { * @return {boolean} */ proto.io.bisq.protobuffer.Trade.prototype.hasMakerNodeAddress = function() { - return jspb.Message.getField(this, 1003) != null; + return jspb.Message.getField(this, 103) != null; }; /** - * optional PubKeyRing maker_pub_key_ring = 1004; + * optional PubKeyRing maker_pub_key_ring = 104; * @return {?proto.io.bisq.protobuffer.PubKeyRing} */ proto.io.bisq.protobuffer.Trade.prototype.getMakerPubKeyRing = function() { return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 1004)); + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 104)); }; @@ -52210,7 +55315,7 @@ proto.io.bisq.protobuffer.Trade.prototype.getMakerPubKeyRing = function() { * @return {!proto.io.bisq.protobuffer.Trade} returns this */ proto.io.bisq.protobuffer.Trade.prototype.setMakerPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 1004, value); + return jspb.Message.setWrapperField(this, 104, value); }; @@ -52228,16 +55333,16 @@ proto.io.bisq.protobuffer.Trade.prototype.clearMakerPubKeyRing = function() { * @return {boolean} */ proto.io.bisq.protobuffer.Trade.prototype.hasMakerPubKeyRing = function() { - return jspb.Message.getField(this, 1004) != null; + return jspb.Message.getField(this, 104) != null; }; /** - * optional string maker_deposit_tx_id = 1005; + * optional string maker_deposit_tx_id = 105; * @return {string} */ proto.io.bisq.protobuffer.Trade.prototype.getMakerDepositTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1005, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 105, "")); }; @@ -52246,7 +55351,7 @@ proto.io.bisq.protobuffer.Trade.prototype.getMakerDepositTxId = function() { * @return {!proto.io.bisq.protobuffer.Trade} returns this */ proto.io.bisq.protobuffer.Trade.prototype.setMakerDepositTxId = function(value) { - return jspb.Message.setProto3StringField(this, 1005, value); + return jspb.Message.setProto3StringField(this, 105, value); }; @@ -55459,7 +58564,7 @@ proto.io.bisq.protobuffer.PreferencesPayload.toObject = function(includeInstance useTorForBitcoinJ: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), showOwnOffersInOfferBook: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), preferredTradeCurrency: (f = msg.getPreferredTradeCurrency()) && proto.io.bisq.protobuffer.TradeCurrency.toObject(includeInstance, f), - withdrawalTxFeeInBytes: jspb.Message.getFieldWithDefault(msg, 15, 0), + withdrawalTxFeeInVbytes: jspb.Message.getFieldWithDefault(msg, 15, 0), useCustomWithdrawalTxFee: jspb.Message.getBooleanFieldWithDefault(msg, 16, false), maxPriceDistanceInPercent: jspb.Message.getFloatingPointFieldWithDefault(msg, 17, 0.0), offerBookChartScreenCurrencyCode: jspb.Message.getFieldWithDefault(msg, 18, ""), @@ -55501,7 +58606,12 @@ proto.io.bisq.protobuffer.PreferencesPayload.toObject = function(includeInstance cssTheme: jspb.Message.getFieldWithDefault(msg, 54, 0), tacAcceptedV120: jspb.Message.getBooleanFieldWithDefault(msg, 55, false), autoConfirmSettingsList: jspb.Message.toObjectList(msg.getAutoConfirmSettingsList(), - proto.io.bisq.protobuffer.AutoConfirmSettings.toObject, includeInstance) + proto.io.bisq.protobuffer.AutoConfirmSettings.toObject, includeInstance), + bsqAverageTrimThreshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 57, 0.0), + hideNonAccountPaymentMethods: jspb.Message.getBooleanFieldWithDefault(msg, 58, false), + showOffersMatchingMyAccounts: jspb.Message.getBooleanFieldWithDefault(msg, 59, false), + denyApiTaker: jspb.Message.getBooleanFieldWithDefault(msg, 60, false), + notifyOnPreRelease: jspb.Message.getBooleanFieldWithDefault(msg, 61, false) }; if (includeInstance) { @@ -55605,7 +58715,7 @@ proto.io.bisq.protobuffer.PreferencesPayload.deserializeBinaryFromReader = funct break; case 15: var value = /** @type {number} */ (reader.readInt64()); - msg.setWithdrawalTxFeeInBytes(value); + msg.setWithdrawalTxFeeInVbytes(value); break; case 16: var value = /** @type {boolean} */ (reader.readBool()); @@ -55775,6 +58885,26 @@ proto.io.bisq.protobuffer.PreferencesPayload.deserializeBinaryFromReader = funct reader.readMessage(value,proto.io.bisq.protobuffer.AutoConfirmSettings.deserializeBinaryFromReader); msg.addAutoConfirmSettings(value); break; + case 57: + var value = /** @type {number} */ (reader.readDouble()); + msg.setBsqAverageTrimThreshold(value); + break; + case 58: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setHideNonAccountPaymentMethods(value); + break; + case 59: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShowOffersMatchingMyAccounts(value); + break; + case 60: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDenyApiTaker(value); + break; + case 61: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setNotifyOnPreRelease(value); + break; default: reader.skipField(); break; @@ -55906,7 +59036,7 @@ proto.io.bisq.protobuffer.PreferencesPayload.serializeBinaryToWriter = function( proto.io.bisq.protobuffer.TradeCurrency.serializeBinaryToWriter ); } - f = message.getWithdrawalTxFeeInBytes(); + f = message.getWithdrawalTxFeeInVbytes(); if (f !== 0) { writer.writeInt64( 15, @@ -56199,6 +59329,41 @@ proto.io.bisq.protobuffer.PreferencesPayload.serializeBinaryToWriter = function( proto.io.bisq.protobuffer.AutoConfirmSettings.serializeBinaryToWriter ); } + f = message.getBsqAverageTrimThreshold(); + if (f !== 0.0) { + writer.writeDouble( + 57, + f + ); + } + f = message.getHideNonAccountPaymentMethods(); + if (f) { + writer.writeBool( + 58, + f + ); + } + f = message.getShowOffersMatchingMyAccounts(); + if (f) { + writer.writeBool( + 59, + f + ); + } + f = message.getDenyApiTaker(); + if (f) { + writer.writeBool( + 60, + f + ); + } + f = message.getNotifyOnPreRelease(); + if (f) { + writer.writeBool( + 61, + f + ); + } }; @@ -56594,10 +59759,10 @@ proto.io.bisq.protobuffer.PreferencesPayload.prototype.hasPreferredTradeCurrency /** - * optional int64 withdrawal_tx_fee_in_bytes = 15; + * optional int64 withdrawal_tx_fee_in_vbytes = 15; * @return {number} */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getWithdrawalTxFeeInBytes = function() { +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getWithdrawalTxFeeInVbytes = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); }; @@ -56606,7 +59771,7 @@ proto.io.bisq.protobuffer.PreferencesPayload.prototype.getWithdrawalTxFeeInBytes * @param {number} value * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setWithdrawalTxFeeInBytes = function(value) { +proto.io.bisq.protobuffer.PreferencesPayload.prototype.setWithdrawalTxFeeInVbytes = function(value) { return jspb.Message.setProto3IntField(this, 15, value); }; @@ -57430,6 +60595,96 @@ proto.io.bisq.protobuffer.PreferencesPayload.prototype.clearAutoConfirmSettingsL }; +/** + * optional double bsq_average_trim_threshold = 57; + * @return {number} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBsqAverageTrimThreshold = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 57, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.setBsqAverageTrimThreshold = function(value) { + return jspb.Message.setProto3FloatField(this, 57, value); +}; + + +/** + * optional bool hide_non_account_payment_methods = 58; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getHideNonAccountPaymentMethods = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 58, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.setHideNonAccountPaymentMethods = function(value) { + return jspb.Message.setProto3BooleanField(this, 58, value); +}; + + +/** + * optional bool show_offers_matching_my_accounts = 59; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getShowOffersMatchingMyAccounts = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 59, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.setShowOffersMatchingMyAccounts = function(value) { + return jspb.Message.setProto3BooleanField(this, 59, value); +}; + + +/** + * optional bool deny_api_taker = 60; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getDenyApiTaker = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 60, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.setDenyApiTaker = function(value) { + return jspb.Message.setProto3BooleanField(this, 60, value); +}; + + +/** + * optional bool notify_on_pre_release = 61; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getNotifyOnPreRelease = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 61, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.setNotifyOnPreRelease = function(value) { + return jspb.Message.setProto3BooleanField(this, 61, value); +}; + + /** * List of repeated fields within this message type. @@ -57764,7 +61019,8 @@ proto.io.bisq.protobuffer.UserPayload.toObject = function(includeInstance, msg) proto.io.bisq.protobuffer.MarketAlertFilter.toObject, includeInstance), acceptedRefundAgentsList: jspb.Message.toObjectList(msg.getAcceptedRefundAgentsList(), proto.io.bisq.protobuffer.RefundAgent.toObject, includeInstance), - registeredRefundAgent: (f = msg.getRegisteredRefundAgent()) && proto.io.bisq.protobuffer.RefundAgent.toObject(includeInstance, f) + registeredRefundAgent: (f = msg.getRegisteredRefundAgent()) && proto.io.bisq.protobuffer.RefundAgent.toObject(includeInstance, f), + cookieMap: (f = msg.getCookieMap()) ? f.toObject(includeInstance, undefined) : [] }; if (includeInstance) { @@ -57874,6 +61130,12 @@ proto.io.bisq.protobuffer.UserPayload.deserializeBinaryFromReader = function(msg reader.readMessage(value,proto.io.bisq.protobuffer.RefundAgent.deserializeBinaryFromReader); msg.setRegisteredRefundAgent(value); break; + case 16: + var value = msg.getCookieMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; default: reader.skipField(); break; @@ -58021,6 +61283,10 @@ proto.io.bisq.protobuffer.UserPayload.serializeBinaryToWriter = function(message proto.io.bisq.protobuffer.RefundAgent.serializeBinaryToWriter ); } + f = message.getCookieMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(16, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } }; @@ -58565,6 +61831,28 @@ proto.io.bisq.protobuffer.UserPayload.prototype.hasRegisteredRefundAgent = funct }; +/** + * map cookie = 16; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.io.bisq.protobuffer.UserPayload.prototype.getCookieMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 16, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.io.bisq.protobuffer.UserPayload} returns this + */ +proto.io.bisq.protobuffer.UserPayload.prototype.clearCookieMap = function() { + this.getCookieMap().clear(); + return this;}; + + /** * Oneof group definitions for this message. Each group defines the field @@ -73909,7 +77197,10 @@ proto.io.bisq.protobuffer.AvailabilityResult = { NO_MEDIATORS: 7, USER_IGNORED: 8, MISSING_MANDATORY_CAPABILITY: 9, - NO_REFUND_AGENTS: 10 + NO_REFUND_AGENTS: 10, + UNCONF_TX_LIMIT_HIT: 11, + MAKER_DENIED_API_USER: 12, + PRICE_CHECK_FAILED: 13 }; /** @@ -74003,7 +77294,9 @@ proto.io.bisq.protobuffer.ScriptType = { NULL_DATA: 5, WITNESS_V0_KEYHASH: 6, WITNESS_V0_SCRIPTHASH: 7, - NONSTANDARD: 8 + NONSTANDARD: 8, + WITNESS_UNKNOWN: 9, + WITNESS_V1_TAPROOT: 10 }; goog.object.extend(exports, proto.io.bisq.protobuffer);