diff --git a/.gitignore b/.gitignore index 4d29575d..2635847f 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,6 @@ npm-debug.log* yarn-debug.log* yarn-error.log* + +# generated code +/src/protobuf/** \ No newline at end of file diff --git a/README.md b/README.md index da3614da..3a67ff3e 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,13 @@ This application is a lightly modified [create-react-app](https://github.com/fac 1. [Run a local Haveno test network](https://github.com/haveno-dex/haveno/blob/master/docs/installing.md), running Alice as a daemon with `make alice-daemon`. 2. `git clone https://github.com/haveno-dex/haveno-ui-poc` 3. In a new terminal, start envoy with the config in haveno-ui-poc/config/envoy.yaml (change absolute path for your system): `docker run --rm --add-host host.docker.internal:host-gateway -it -v ~/git/haveno-ui-poc/config/envoy.yaml:/envoy.yaml -p 8080:8080 envoyproxy/envoy-dev:8a2143613d43d17d1eb35a24b4a4a4c432215606 -c /envoy.yaml` -4. `cd haveno-ui-poc` -5. `npm install` -6. `npm start` to open http://localhost:3000 in a browser -7. Confirm that the Haveno daemon version is displayed (1.6.2) +4. Install protobuf for your system:
+ mac: `brew install protobuf`
+ linux: `apt install protobuf-compiler` +5. `cd haveno-ui-poc` +6. `npm install` +7. `npm start` to open http://localhost:3000 in a browser +8. Confirm that the Haveno daemon version is displayed (1.6.2)


@@ -28,15 +31,9 @@ Running the [top-level API tests](./src/HavenoDaemon.test.tsx) is a great way to 2. `git clone https://github.com/haveno-dex/haveno-ui-poc` 3. In a new terminal, start envoy with the config in haveno-ui-poc/config/envoy.test.yaml (change absolute path for your system): `docker run --rm --add-host host.docker.internal:host-gateway -it -v ~/git/haveno-ui-poc/config/envoy.test.yaml:/envoy.test.yaml -p 8080:8080 -p 8081:8081 envoyproxy/envoy-dev:8a2143613d43d17d1eb35a24b4a4a4c432215606 -c /envoy.test.yaml` 4. In a new terminal, start an instance of monero-wallet-rpc at port 38084. This wallet will be automatically funded in order to fund Alice and Bob during the tests.
For example: `cd ~/git/haveno/.localnet/ && ./monero-wallet-rpc --daemon-address http://localhost:38081 --daemon-login superuser:abctesting123 --stagenet --rpc-bind-port 38084 --rpc-login rpc_user:abc123 --wallet-dir ./ --rpc-access-control-origins http://localhost:8080` -5. `cd haveno-ui-poc` -6. `npm install` -7. `npm test` to run all tests or `npm run test -- -t 'my test'` to run tests by name. - - -## How to Update the Protobuf Client - -If the protobuf definitions in haveno-dex/haveno are updated, the typescript imports must be regenerated: - -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. Install protobuf for your system, e.g. on mac: `brew install protobuf` -3. `./bin/build_protobuf.sh` +5. Install protobuf for your system:
+ mac: `brew install protobuf`
+ linux: `apt install protobuf-compiler` +6. `cd haveno-ui-poc` +7. `npm install` +8. `npm test` to run all tests or `npm run test -- -t 'my test'` to run tests by name. diff --git a/bin/build_protobuf.sh b/bin/build_protobuf.sh index ae2b41fa..c89c7e6c 100755 --- a/bin/build_protobuf.sh +++ b/bin/build_protobuf.sh @@ -1,13 +1,6 @@ #!/bin/sh # generate imports for haveno services and types using grpc-web -cd ./config || exit 1 -protoc -I=./ *.proto --js_out=import_style=commonjs,binary:./ --grpc-web_out=import_style=typescript,mode=grpcwebtext:./ || exit 1 -cd ../ - -# move imports to src folder -mv ./config/grpc_pb.d.ts ./src/protobuf || exit 1 -mv ./config/grpc_pb.js ./src/protobuf || exit 1 -mv ./config/pb_pb.d.ts ./src/protobuf || exit 1 -mv ./config/pb_pb.js ./src/protobuf || exit 1 -mv ./config/GrpcServiceClientPb.ts ./src/protobuf || exit 1 \ No newline at end of file +mkdir -p ./src/protobuf +cd ./src/protobuf || exit 1 +protoc -I=../../../haveno/proto/src/main/proto/ ../../../haveno/proto/src/main/proto/*.proto --js_out=import_style=commonjs,binary:./ --grpc-web_out=import_style=typescript,mode=grpcwebtext:./ || exit 1 \ No newline at end of file diff --git a/config/grpc.proto b/config/grpc.proto deleted file mode 100644 index ea7c8b8a..00000000 --- a/config/grpc.proto +++ /dev/null @@ -1,615 +0,0 @@ -/* - * This file is part of Bisq. - * - * Bisq is free software: you can redistribute it and/or modify it - * under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or (at - * your option) any later version. - * - * Bisq is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public - * License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with Bisq. If not, see . - */ - -syntax = "proto3"; -package io.bisq.protobuffer; - -import "pb.proto"; - -option java_package = "bisq.proto.grpc"; -option java_multiple_files = true; - -/////////////////////////////////////////////////////////////////////////////////////////// -// DisputeAgents -/////////////////////////////////////////////////////////////////////////////////////////// - -service DisputeAgents { - rpc RegisterDisputeAgent (RegisterDisputeAgentRequest) returns (RegisterDisputeAgentReply) { - } -} - -message RegisterDisputeAgentRequest { - string dispute_agent_type = 1; - string registration_key = 2; -} - -message RegisterDisputeAgentReply { -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// Help -/////////////////////////////////////////////////////////////////////////////////////////// - -service Help { - rpc GetMethodHelp (GetMethodHelpRequest) returns (GetMethodHelpReply) { - } -} - -message GetMethodHelpRequest { - string method_name = 1; -} - -message GetMethodHelpReply { - string method_help = 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 { - string direction = 1; - string currency_code = 2; -} - -message GetOffersReply { - repeated OfferInfo offers = 1; -} - -message GetMyOffersRequest { - string direction = 1; - string currency_code = 2; -} - -message GetMyOffersReply { - repeated OfferInfo offers = 1; -} - -message CreateOfferRequest { - string currency_code = 1; - string direction = 2; - string price = 3; - bool use_market_based_price = 4; - double market_price_margin = 5; - uint64 amount = 6 [jstype = JS_STRING]; - uint64 min_amount = 7 [jstype = JS_STRING]; - double buyer_security_deposit = 8; - uint64 trigger_price = 9 [jstype = JS_STRING]; - string payment_account_id = 10; -} - -message CreateOfferReply { - OfferInfo offer = 1; -} - -message CancelOfferRequest { - string id = 1; -} - -message CancelOfferReply { -} - -message OfferInfo { - string id = 1; - string direction = 2; - uint64 price = 3; - bool use_market_based_price = 4; - double market_price_margin = 5; - uint64 amount = 6; - uint64 min_amount = 7; - uint64 volume = 8; - uint64 min_volume = 9; - uint64 buyer_security_deposit = 10; - uint64 trigger_price = 11; - string payment_account_id = 12; - string payment_method_id = 13; - string payment_method_short_name = 14; - string base_currency_code = 15; - string counter_currency_code = 16; - uint64 date = 17; - string state = 18; - uint64 seller_security_deposit = 19; - string offer_fee_payment_tx_id = 20; - uint64 tx_fee = 21; - uint64 maker_fee = 22; -} - -message AvailabilityResultWithDescription { - AvailabilityResult availability_result = 1; - string description = 2; -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// PaymentAccounts -/////////////////////////////////////////////////////////////////////////////////////////// - -service PaymentAccounts { - rpc CreatePaymentAccount (CreatePaymentAccountRequest) returns (CreatePaymentAccountReply) { - } - 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 payment_account_form = 1; -} - -message CreatePaymentAccountReply { - PaymentAccount payment_account = 1; -} - -message GetPaymentAccountsRequest { -} - -message GetPaymentAccountsReply { - repeated PaymentAccount payment_accounts = 1; -} - -message GetPaymentMethodsRequest { -} - -message GetPaymentMethodsReply { - repeated PaymentMethod payment_methods = 1; -} - -message GetPaymentAccountFormRequest { - string payment_method_id = 1; -} - -message GetPaymentAccountFormReply { - string payment_account_form_json = 1; -} - -message CreateCryptoCurrencyPaymentAccountRequest { - string account_name = 1; - string currency_code = 2; - string address = 3; - bool trade_instant = 4; -} - -message CreateCryptoCurrencyPaymentAccountReply { - PaymentAccount payment_account = 1; -} - -message GetCryptoCurrencyPaymentMethodsRequest { -} - -message GetCryptoCurrencyPaymentMethodsReply { - repeated PaymentMethod payment_methods = 1; -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// Price -/////////////////////////////////////////////////////////////////////////////////////////// - -service Price { - rpc GetMarketPrice (MarketPriceRequest) returns (MarketPriceReply) { - } - rpc GetMarketPrices (MarketPricesRequest) returns (MarketPricesReply) { - } -} - -message MarketPriceRequest { - string currency_code = 1; -} - -message MarketPriceReply { - double price = 1; -} - -message MarketPricesRequest { -} - -message MarketPricesReply { - repeated MarketPriceInfo market_price = 1; -} - -message MarketPriceInfo { - string currency_code = 1; - double price = 2; -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// GetTradeStatistics -/////////////////////////////////////////////////////////////////////////////////////////// - -service GetTradeStatistics { - rpc GetTradeStatistics (GetTradeStatisticsRequest) returns (GetTradeStatisticsReply) { - } -} - -message GetTradeStatisticsRequest { -} - -message GetTradeStatisticsReply { - repeated TradeStatistics3 trade_statistics = 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 offer_id = 1; - string payment_account_id = 2; -} - -message TakeOfferReply { - TradeInfo trade = 1; - AvailabilityResultWithDescription failure_reason = 2; -} - -message ConfirmPaymentStartedRequest { - string trade_id = 1; -} - -message ConfirmPaymentStartedReply { -} - -message ConfirmPaymentReceivedRequest { - string trade_id = 1; -} - -message ConfirmPaymentReceivedReply { -} - -message GetTradeRequest { - string trade_id = 1; -} - -message GetTradeReply { - TradeInfo trade = 1; -} - -message KeepFundsRequest { - string trade_id = 1; -} - -message KeepFundsReply { -} - -message WithdrawFundsRequest { - string trade_id = 1; - string address = 2; - string memo = 3; -} - -message WithdrawFundsReply { -} - -message TradeInfo { - OfferInfo offer = 1; - string trade_id = 2; - string short_id = 3; - uint64 date = 4; - string role = 5; - uint64 tx_fee_as_long = 7; - uint64 taker_fee_as_long = 8; - string taker_fee_tx_id = 9; - reserved 10; // was depositTxId - string payout_tx_id = 11; - uint64 trade_amount_as_long = 12; - uint64 trade_price = 13; - string trading_peer_node_address = 14; - string state = 15; - string phase = 16; - string trade_period_state = 17; - bool is_deposit_published = 18; - bool is_deposit_confirmed = 19; - bool is_fiat_sent = 20; - bool is_fiat_received = 21; - bool is_payout_published = 22; - bool is_withdrawn = 23; - string contract_as_json = 24; - ContractInfo contract = 25; - - string maker_deposit_tx_id = 100; - string taker_deposit_tx_id = 101; -} - -message ContractInfo { - string buyer_node_address = 1; - string seller_node_address = 2; - reserved 3; // was mediator_node_address - reserved 4; // was refund_agent_node_address - bool is_buyer_maker_and_seller_taker = 5; - string maker_account_id = 6; - string taker_account_id = 7; - PaymentAccountPayloadInfo maker_payment_account_payload = 8; - PaymentAccountPayloadInfo taker_payment_account_payload = 9; - string maker_payout_address_string = 10; - string taker_payout_address_string = 11; - uint64 lock_time = 12; - - string arbitrator_node_address = 100; -} - -message PaymentAccountPayloadInfo { - string id = 1; - string payment_method_id = 2; - string address = 3; -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// Transactions -/////////////////////////////////////////////////////////////////////////////////////////// - -message TxFeeRateInfo { - bool use_custom_tx_fee_rate = 1; - uint64 custom_tx_fee_rate = 2; - uint64 fee_service_rate = 3; - uint64 last_fee_service_request_ts = 4; - uint64 min_fee_service_rate = 5; -} - -message TxInfo { - string tx_id = 1; - uint64 input_sum = 2; - uint64 output_sum = 3; - uint64 fee = 4; - int32 size = 5; - bool is_pending = 6; - string memo = 7; -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// Wallets -/////////////////////////////////////////////////////////////////////////////////////////// - -service Wallets { - rpc GetBalances (GetBalancesRequest) returns (GetBalancesReply) { - } - rpc GetNewDepositSubaddress (GetNewDepositSubaddressRequest) returns (GetNewDepositSubaddressReply) { - } - rpc GetAddressBalance (GetAddressBalanceRequest) returns (GetAddressBalanceReply) { - } - rpc SendBtc (SendBtcRequest) returns (SendBtcReply) { - } - 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) { - } - rpc RemoveWalletPassword (RemoveWalletPasswordRequest) returns (RemoveWalletPasswordReply) { - } - rpc LockWallet (LockWalletRequest) returns (LockWalletReply) { - } - rpc UnlockWallet (UnlockWalletRequest) returns (UnlockWalletReply) { - } -} - -message GetBalancesRequest { - string currency_code = 1; -} - -message GetBalancesReply { - BalancesInfo balances = 1; -} - -message GetNewDepositSubaddressRequest { -} - -message GetNewDepositSubaddressReply { - string subaddress = 1; -} - -message GetAddressBalanceRequest { - string address = 1; -} - -message GetAddressBalanceReply { - AddressBalanceInfo address_balance_info = 1; -} - -message SendBtcRequest { - string address = 1; - string amount = 2; - string tx_fee_rate = 3; - string memo = 4; -} - -message SendBtcReply { - TxInfo tx_info = 1; -} - -message GetTxFeeRateRequest { -} - -message GetTxFeeRateReply { - TxFeeRateInfo tx_fee_rate_info = 1; -} - -message SetTxFeeRatePreferenceRequest { - uint64 tx_fee_rate_preference = 1; -} - -message SetTxFeeRatePreferenceReply { - TxFeeRateInfo tx_fee_rate_info = 1; -} - -message UnsetTxFeeRatePreferenceRequest { -} - -message UnsetTxFeeRatePreferenceReply { - TxFeeRateInfo tx_fee_rate_info = 1; -} - -message GetTransactionRequest { - string tx_id = 1; -} - -message GetTransactionReply { - TxInfo tx_info = 1; -} - -message GetFundingAddressesRequest { -} - -message GetFundingAddressesReply { - repeated AddressBalanceInfo address_balance_info = 1; -} - -message SetWalletPasswordRequest { - string password = 1; - string new_password = 2; -} - -message SetWalletPasswordReply { -} - -message RemoveWalletPasswordRequest { - string password = 1; -} - -message RemoveWalletPasswordReply { -} - -message LockWalletRequest { -} - -message LockWalletReply { -} - -message UnlockWalletRequest { - string password = 1; - uint64 timeout = 2; -} - -message UnlockWalletReply { -} - -message BalancesInfo { - // Field names are shortened for readability's sake, i.e., - // balancesInfo.getBtc().getAvailableBalance() is cleaner than - // balancesInfo.getBtcBalanceInfo().getAvailableBalance(). - BtcBalanceInfo btc = 1; - XmrBalanceInfo xmr = 2; -} - -message BtcBalanceInfo { - uint64 available_balance = 1; - uint64 reserved_balance = 2; - uint64 total_available_balance = 3; - uint64 locked_balance = 4; -} - -message XmrBalanceInfo { - uint64 balance = 1 [jstype = JS_STRING]; - uint64 unlocked_balance = 2 [jstype = JS_STRING]; - uint64 locked_balance = 3 [jstype = JS_STRING]; - uint64 reserved_offer_balance = 4 [jstype = JS_STRING]; - uint64 reserved_trade_balance = 5 [jstype = JS_STRING]; -} - -message AddressBalanceInfo { - string address = 1; - int64 balance = 2; - int64 num_confirmations = 3; - bool is_address_unused = 4; -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// Version -/////////////////////////////////////////////////////////////////////////////////////////// - -service GetVersion { - rpc GetVersion (GetVersionRequest) returns (GetVersionReply) { - } -} - -message GetVersionRequest { -} - -message GetVersionReply { - string version = 1; -} diff --git a/config/pb.proto b/config/pb.proto deleted file mode 100644 index 563e3e0b..00000000 --- a/config/pb.proto +++ /dev/null @@ -1,1919 +0,0 @@ -syntax = "proto3"; -package io.bisq.protobuffer; - -// -// Protobuffer v3 definitions of network messages and persisted objects. -// - - -option java_package = "protobuf"; -option java_multiple_files = true; -/////////////////////////////////////////////////////////////////////////////////////////// -// Network messages -/////////////////////////////////////////////////////////////////////////////////////////// - -// Those are messages sent over wire -message NetworkEnvelope { - int32 message_version = 1; - oneof message { - PreliminaryGetDataRequest preliminary_get_data_request = 2; - GetDataResponse get_data_response = 3; - GetUpdatedDataRequest get_updated_data_request = 4; - - GetPeersRequest get_peers_request = 5; - GetPeersResponse get_peers_response = 6; - Ping ping = 7; - Pong pong = 8; - - OfferAvailabilityRequest offer_availability_request = 9; - OfferAvailabilityResponse offer_availability_response = 10; - RefreshOfferMessage refresh_offer_message = 11; - - AddDataMessage add_data_message = 12; - RemoveDataMessage remove_data_message = 13; - RemoveMailboxDataMessage remove_mailbox_data_message = 14; - - CloseConnectionMessage close_connection_message = 15; - PrefixedSealedAndSignedMessage prefixed_sealed_and_signed_message = 16; - - InputsForDepositTxRequest inputs_for_deposit_tx_request = 17; - InputsForDepositTxResponse inputs_for_deposit_tx_response = 18; - DepositTxMessage deposit_tx_message = 19; - CounterCurrencyTransferStartedMessage counter_currency_transfer_started_message = 20; - PayoutTxPublishedMessage payout_tx_published_message = 21; - - OpenNewDisputeMessage open_new_dispute_message = 22; - PeerOpenedDisputeMessage peer_opened_dispute_message = 23; - ChatMessage chat_message = 24; - DisputeResultMessage dispute_result_message = 25; - PeerPublishedDisputePayoutTxMessage peer_published_dispute_payout_tx_message = 26; - - PrivateNotificationMessage private_notification_message = 27; - - AddPersistableNetworkPayloadMessage add_persistable_network_payload_message = 28; - AckMessage ack_message = 29; - - BundleOfEnvelopes bundle_of_envelopes = 30; - MediatedPayoutTxSignatureMessage mediated_payout_tx_signature_message = 31; - MediatedPayoutTxPublishedMessage mediated_payout_tx_published_message = 32; - - DelayedPayoutTxSignatureRequest delayed_payout_tx_signature_request = 33; - DelayedPayoutTxSignatureResponse delayed_payout_tx_signature_response = 34; - DepositTxAndDelayedPayoutTxMessage deposit_tx_and_delayed_payout_tx_message = 35; - PeerPublishedDelayedPayoutTxMessage peer_published_delayed_payout_tx_message = 36; - - RefreshTradeStateRequest refresh_trade_state_request = 37 [deprecated = true]; - TraderSignedWitnessMessage trader_signed_witness_message = 38 [deprecated = true]; - - GetInventoryRequest get_inventory_request = 39; - GetInventoryResponse get_inventory_response = 40; - - SignOfferRequest sign_offer_request = 1001; - SignOfferResponse sign_offer_response = 1002; - InitTradeRequest init_trade_request = 1003; - InitMultisigRequest init_multisig_request = 1004; - SignContractRequest sign_contract_request = 1005; - SignContractResponse sign_contract_response = 1006; - DepositRequest deposit_request = 1007; - DepositResponse deposit_response = 1008; - PaymentAccountPayloadRequest payment_account_payload_request = 1009; - UpdateMultisigRequest update_multisig_request = 1010; - UpdateMultisigResponse update_multisig_response = 1011; - ArbitratorPayoutTxRequest arbitrator_payout_tx_request = 1012; - ArbitratorPayoutTxResponse arbitrator_payout_tx_response = 1013; - } -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// Implementations of NetworkEnvelope -/////////////////////////////////////////////////////////////////////////////////////////// - -message BundleOfEnvelopes { - repeated NetworkEnvelope envelopes = 1; -} - -// get data - -message PreliminaryGetDataRequest { - int32 nonce = 21; // This was set to 21 instead of 1 in some old commit so we cannot change it. - repeated bytes excluded_keys = 2; - repeated int32 supported_capabilities = 3; - string version = 4; -} - -message GetDataResponse { - int32 request_nonce = 1; - bool is_get_updated_data_response = 2; - repeated StorageEntryWrapper data_set = 3; - repeated int32 supported_capabilities = 4; - repeated PersistableNetworkPayload persistable_network_payload_items = 5; -} - -message GetUpdatedDataRequest { - NodeAddress sender_node_address = 1; - int32 nonce = 2; - repeated bytes excluded_keys = 3; - string version = 4; -} - -// peers - -message GetPeersRequest { - NodeAddress sender_node_address = 1; - int32 nonce = 2; - repeated int32 supported_capabilities = 3; - repeated Peer reported_peers = 4; -} - -message GetPeersResponse { - int32 request_nonce = 1; - repeated Peer reported_peers = 2; - repeated int32 supported_capabilities = 3; -} - -message Ping { - int32 nonce = 1; - int32 last_round_trip_time = 2; -} - -message Pong { - int32 request_nonce = 1; -} - -// Inventory - -message GetInventoryRequest { - string version = 1; -} - -message GetInventoryResponse { - map inventory = 1; -} - -// offer - -message SignOfferRequest { - string offer_id = 1; - NodeAddress sender_node_address = 2; - PubKeyRing pub_key_ring = 3; - string sender_account_id = 4; - OfferPayload offer_payload = 5; - string uid = 6; - int64 current_date = 7; - string reserve_tx_hash = 8; - string reserve_tx_hex = 9; - string reserve_tx_key = 10; - repeated string reserve_tx_key_images = 11; - string payout_address = 12; -} - -message SignOfferResponse { - string offer_id = 1; - string uid = 2; - OfferPayload signed_offer_payload = 3; -} - -message OfferAvailabilityRequest { - string offer_id = 1; - PubKeyRing pub_key_ring = 2; - int64 takers_trade_price = 3; - repeated int32 supported_capabilities = 4; - string uid = 5; - bool is_taker_api_user = 6; - InitTradeRequest trade_request = 7; -} - -message OfferAvailabilityResponse { - string offer_id = 1; - AvailabilityResult availability_result = 2; - repeated int32 supported_capabilities = 3; - string uid = 4; - string maker_signature = 5; - NodeAddress backup_arbitrator = 6; -} - -message RefreshOfferMessage { - bytes hash_of_data_and_seq_nr = 1; - bytes signature = 2; - bytes hash_of_payload = 3; - int32 sequence_number = 4; -} - -// storage - -message AddDataMessage { - StorageEntryWrapper entry = 1; -} - -message RemoveDataMessage { - ProtectedStorageEntry protected_storage_entry = 1; -} - -message RemoveMailboxDataMessage { - ProtectedMailboxStorageEntry protected_storage_entry = 1; -} - -message AddPersistableNetworkPayloadMessage { - PersistableNetworkPayload payload = 1; -} - -// misc - -message CloseConnectionMessage { - string reason = 1; -} - -message AckMessage { - string uid = 1; - NodeAddress sender_node_address = 2; - string source_type = 3; // enum name. e.g. TradeMessage, DisputeMessage,... - string source_msg_class_name = 4; - string source_uid = 5; // uid of source (TradeMessage) - string source_id = 6; // id of source (tradeId, disputeId) - bool success = 7; // true if source message was processed successfully - string error_message = 8; // optional error message if source message processing failed -} - -message PrefixedSealedAndSignedMessage { - NodeAddress node_address = 1; - SealedAndSigned sealed_and_signed = 2; - bytes address_prefix_hash = 3; - string uid = 4; -} - -// trade - -message InputsForDepositTxRequest { - string trade_id = 1; - NodeAddress sender_node_address = 2; - int64 trade_amount = 3; - int64 trade_price = 4; - int64 tx_fee = 5; - int64 taker_fee = 6; - repeated RawTransactionInput raw_transaction_inputs = 7; - int64 change_output_value = 8; - string change_output_address = 9; - bytes taker_multi_sig_pub_key = 10; - string taker_payout_address_string = 11; - PubKeyRing taker_pub_key_ring = 12; - PaymentAccountPayload taker_payment_account_payload = 13; - string taker_account_id = 14; - string taker_fee_tx_id = 15; - repeated NodeAddress accepted_arbitrator_node_addresses = 16; - repeated NodeAddress accepted_mediator_node_addresses = 17; - NodeAddress arbitrator_node_address = 18; - NodeAddress mediator_node_address = 29; - string uid = 20; - bytes account_age_witness_signature_of_offer_id = 21; - int64 current_date = 22; - repeated NodeAddress accepted_refund_agent_node_addresses = 23; - NodeAddress refund_agent_node_address = 24; -} - -message InputsForDepositTxResponse { - string trade_id = 1; - PaymentAccountPayload maker_payment_account_payload = 2; - string maker_account_id = 3; - string maker_contract_as_json = 4; - string maker_contract_signature = 5; - string maker_payout_address_string = 6; - bytes prepared_deposit_tx = 7; - repeated RawTransactionInput maker_inputs = 8; - bytes maker_multi_sig_pub_key = 9; - NodeAddress sender_node_address = 10; - string uid = 11; - bytes account_age_witness_signature_of_prepared_deposit_tx = 12; - int64 current_date = 13; - int64 lock_time = 14; -} - -message InitTradeRequest { - string trade_id = 1; - NodeAddress sender_node_address = 2; - PubKeyRing pub_key_ring = 3; - int64 trade_amount = 4; - int64 trade_price = 5; - int64 trade_fee = 6; - string account_id = 7; - string payment_account_id = 8; - string payment_method_id = 9; - string uid = 10; - bytes account_age_witness_signature_of_offer_id = 11; - int64 current_date = 12; - NodeAddress maker_node_address = 13; - NodeAddress taker_node_address = 14; - NodeAddress arbitrator_node_address = 15; - string reserve_tx_hash = 16; - string reserve_tx_hex = 17; - string reserve_tx_key = 18; - string payout_address = 19; - string maker_signature = 20; -} - -message InitMultisigRequest { - string trade_id = 1; - NodeAddress sender_node_address = 2; - PubKeyRing pub_key_ring = 3; - string uid = 4; - int64 current_date = 5; - string prepared_multisig_hex = 6; - string made_multisig_hex = 7; -} - -message SignContractRequest { - string trade_id = 1; - NodeAddress sender_node_address = 2; - PubKeyRing pub_key_ring = 3; - string uid = 4; - int64 current_date = 5; - string account_id = 6; - bytes payment_account_payload_hash = 7; - string payout_address = 8;; - string deposit_tx_hash = 9; -} - -message SignContractResponse { - string trade_id = 1; - NodeAddress sender_node_address = 2; - PubKeyRing pub_key_ring = 3; - string uid = 4; - int64 current_date = 5; - string contract_signature = 6; -} - -message DepositRequest { - string trade_id = 1; - NodeAddress sender_node_address = 2; - PubKeyRing pub_key_ring = 3; - string uid = 4; - int64 current_date = 5; - string contract_signature = 6; - string deposit_tx_hex = 7; - string deposit_tx_key = 8; -} - -message DepositResponse { - string trade_id = 1; - NodeAddress sender_node_address = 2; - PubKeyRing pub_key_ring = 3; - string uid = 4; - int64 current_date = 5; -} - -message PaymentAccountPayloadRequest { - string trade_id = 1; - NodeAddress sender_node_address = 2; - PubKeyRing pub_key_ring = 3; - string uid = 4; - int64 current_date = 5; - PaymentAccountPayload payment_account_payload = 6; -} - -message UpdateMultisigRequest { - string trade_id = 1; - NodeAddress sender_node_address = 2; - PubKeyRing pub_key_ring = 3; - string uid = 4; - int64 current_date = 5; - string updated_multisig_hex = 6; -} - -message UpdateMultisigResponse { - string trade_id = 1; - NodeAddress sender_node_address = 2; - PubKeyRing pub_key_ring = 3; - string uid = 4; - int64 current_date = 5; - string updated_multisig_hex = 6; -} - -message DelayedPayoutTxSignatureRequest { - string uid = 1; - 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_buyer_signature = 4; - bytes deposit_tx = 5; -} - -message DepositTxAndDelayedPayoutTxMessage { - string uid = 1; - string trade_id = 2; - NodeAddress sender_node_address = 3; - bytes deposit_tx = 4; - bytes delayed_payout_tx = 5; -} - -message DepositTxMessage { - string uid = 1; - string trade_id = 2; - NodeAddress sender_node_address = 3; - 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 { - string uid = 1; - string trade_id = 2; - NodeAddress sender_node_address = 3; -} - -message CounterCurrencyTransferStartedMessage { - string trade_id = 1; - string buyer_payout_address = 2; - NodeAddress sender_node_address = 3; - string buyer_payout_tx_signed = 4; - string counter_currency_tx_id = 5; - string uid = 6; - string counter_currency_extra_data = 7; -} - -message FinalizePayoutTxRequest { - string trade_id = 1; - bytes seller_signature = 2; - string seller_payout_address = 3; - NodeAddress sender_node_address = 4; - string uid = 5; -} - -message ArbitratorPayoutTxRequest { - Dispute dispute = 1; // TODO (woodser): replace with trade id - NodeAddress sender_node_address = 2; - string uid = 3; - SupportType type = 4; - string updated_multisig_hex = 5; -} - -message ArbitratorPayoutTxResponse { - string trade_id = 1; - NodeAddress sender_node_address = 2; - string uid = 3; - SupportType type = 4; - string arbitrator_signed_payout_tx_hex = 5; -} - -message PayoutTxPublishedMessage { - string trade_id = 1; - string signed_multisig_tx_hex = 2; - NodeAddress sender_node_address = 3; - string uid = 4; - SignedWitness signed_witness = 5; // Added in v1.4.0 -} - -message MediatedPayoutTxPublishedMessage { - string trade_id = 1; - bytes payout_tx = 2; - NodeAddress sender_node_address = 3; - string uid = 4; -} - -message MediatedPayoutTxSignatureMessage { - string uid = 1; - string trade_id = 3; - bytes tx_signature = 2; - NodeAddress sender_node_address = 4; -} - -// Deprecated since 1.4.0 -message RefreshTradeStateRequest { - string uid = 1 [deprecated = true]; - string trade_id = 2 [deprecated = true]; - NodeAddress sender_node_address = 3 [deprecated = true]; -} - -// Deprecated since 1.4.0 -message TraderSignedWitnessMessage { - string uid = 1 [deprecated = true]; - string trade_id = 2 [deprecated = true]; - NodeAddress sender_node_address = 3 [deprecated = true]; - SignedWitness signed_witness = 4 [deprecated = true]; -} - -// dispute - -enum SupportType { - ARBITRATION = 0; - MEDIATION = 1; - TRADE = 2; - REFUND = 3; -} - -message OpenNewDisputeMessage { - Dispute dispute = 1; - NodeAddress sender_node_address = 2; - string uid = 3; - SupportType type = 4; - string updated_multisig_hex = 5; -} - -message PeerOpenedDisputeMessage { - Dispute dispute = 1; - NodeAddress sender_node_address = 2; - string uid = 3; - SupportType type = 4; -} - -message ChatMessage { - int64 date = 1; - string trade_id = 2; - int32 trader_id = 3; - bool sender_is_trader = 4; - string message = 5; - repeated Attachment attachments = 6; - bool arrived = 7; - bool stored_in_mailbox = 8; - bool is_system_message = 9; - NodeAddress sender_node_address = 10; - string uid = 11; - string send_message_error = 12; - bool acknowledged = 13; - string ack_error = 14; - SupportType type = 15; - bool was_displayed = 16; -} - -message DisputeResultMessage { - string uid = 1; - DisputeResult dispute_result = 2; - NodeAddress sender_node_address = 3; - SupportType type = 4; -} - -message PeerPublishedDisputePayoutTxMessage { - string uid = 1; - reserved 2; // was bytes transaction = 2; - string trade_id = 3; - NodeAddress sender_node_address = 4; - SupportType type = 5; - string updated_multisig_hex = 6; - string payout_tx_hex = 7; -} - -message PrivateNotificationMessage { - string uid = 1; - NodeAddress sender_node_address = 2; - PrivateNotificationPayload private_notification_payload = 3; -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// Payload -/////////////////////////////////////////////////////////////////////////////////////////// - -// core - -message NodeAddress { - string host_name = 1; - int32 port = 2; -} - -message Peer { - NodeAddress node_address = 1; - int64 date = 2; - repeated int32 supported_capabilities = 3; -} - -message PubKeyRing { - bytes signature_pub_key_bytes = 1; - bytes encryption_pub_key_bytes = 2; - reserved 3; // WAS: string pgp_pub_key_as_pem = 3; -} - -message SealedAndSigned { - bytes encrypted_secret_key = 1; - bytes encrypted_payload_with_hmac = 2; - bytes signature = 3; - bytes sig_public_key_bytes = 4; -} - -// storage - -message StoragePayload { - oneof message { - Alert alert = 1; - Arbitrator arbitrator = 2; - Mediator mediator = 3; - Filter filter = 4; - - // TradeStatistics trade_statistics = 5 [deprecated = true]; Removed in v.1.4.0 - - MailboxStoragePayload mailbox_storage_payload = 6; - OfferPayload offer_payload = 7; - RefundAgent refund_agent = 8; - } -} - -message PersistableNetworkPayload { - oneof message { - AccountAgeWitness account_age_witness = 1; - TradeStatistics2 trade_statistics2 = 2 [deprecated = true]; - SignedWitness signed_witness = 3; - TradeStatistics3 trade_statistics3 = 4; - } -} - -message ProtectedStorageEntry { - StoragePayload storagePayload = 1; - bytes owner_pub_key_bytes = 2; - int32 sequence_number = 3; - bytes signature = 4; - int64 creation_time_stamp = 5; -} - -// mailbox - -message StorageEntryWrapper { - oneof message { - ProtectedStorageEntry protected_storage_entry = 1; - ProtectedMailboxStorageEntry protected_mailbox_storage_entry = 2; - } -} - -message ProtectedMailboxStorageEntry { - ProtectedStorageEntry entry = 1; - bytes receivers_pub_key_bytes = 2; -} - -message DataAndSeqNrPair { - StoragePayload payload = 1; - 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 { - string message = 1; - string signature_as_base64 = 2; - bytes sig_public_key_bytes = 3; -} - -message PaymentAccountFilter { - string payment_method_id = 1; - string get_method_name = 2; - string value = 3; -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// Storage payload -/////////////////////////////////////////////////////////////////////////////////////////// - -message Alert { - string message = 1; - string version = 2; - bool is_update_info = 3; - string signature_as_base64 = 4; - bytes owner_pub_key_bytes = 5; - map extra_data = 6; - bool is_pre_release_info = 7; -} - -message Arbitrator { - NodeAddress node_address = 1; - repeated string language_codes = 2; - int64 registration_date = 3; - string registration_signature = 4; - bytes registration_pub_key = 5; - PubKeyRing pub_key_ring = 6; - bytes btc_pub_key = 7; - string btc_address = 8; - string email_address = 9; - string info = 10; - map extra_data = 11; -} - -message Mediator { - NodeAddress node_address = 1; - repeated string language_codes = 2; - int64 registration_date = 3; - string registration_signature = 4; - bytes registration_pub_key = 5; - PubKeyRing pub_key_ring = 6; - string email_address = 7; - string info = 8; - map extra_data = 9; -} - -message RefundAgent { - NodeAddress node_address = 1; - repeated string language_codes = 2; - int64 registration_date = 3; - string registration_signature = 4; - bytes registration_pub_key = 5; - PubKeyRing pub_key_ring = 6; - string email_address = 7; - string info = 8; - map extra_data = 9; -} - -message Filter { - 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; - bytes owner_pub_key_bytes = 5; - map extra_data = 6; - repeated string banned_currencies = 7; - repeated string banned_payment_methods = 8; - repeated string arbitrators = 9; - repeated string seed_nodes = 10; - repeated string price_relay_nodes = 11; - bool prevent_public_btc_network = 12; - repeated string btc_nodes = 13; - string disable_trade_below_version = 14; - repeated string mediators = 15; - repeated string refundAgents = 16; - repeated string bannedSignerPubKeys = 17; - repeated string btc_fee_receiver_addresses = 18; - int64 creation_date = 19; - string signer_pub_key_as_hex = 20; - repeated string bannedPrivilegedDevPubKeys = 21; - bool disable_auto_conf = 22; - repeated string banned_auto_conf_explorers = 23; - repeated string node_addresses_banned_from_network = 24; - bool disable_api = 25; - bool disable_mempool_validation = 26; -} - -// Deprecated -message TradeStatistics2 { - 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 { - PrefixedSealedAndSignedMessage prefixed_sealed_and_signed_message = 1; - bytes sender_pub_key_for_add_operation_bytes = 2; - bytes owner_pub_key_bytes = 3; - map extra_data = 4; -} - -message OfferPayload { - enum Direction { - PB_ERROR = 0; - BUY = 1; - SELL = 2; - } - - string id = 1; - int64 date = 2; - NodeAddress owner_node_address = 3; - PubKeyRing pub_key_ring = 4; - Direction direction = 5; - int64 price = 6; - double market_price_margin = 7; - bool use_market_based_price = 8; - int64 amount = 9; - int64 min_amount = 10; - string base_currency_code = 11; - string counter_currency_code = 12; - string payment_method_id = 13; - string maker_payment_account_id = 14; - string offer_fee_payment_tx_id = 15; - string country_code = 16; - repeated string accepted_country_codes = 17; - string bank_id = 18; - repeated string accepted_bank_ids = 19; - string version_nr = 20; - int64 block_height_at_offer_creation = 21; - int64 tx_fee = 22; - int64 maker_fee = 23; - int64 buyer_security_deposit = 24; - int64 seller_security_deposit = 25; - int64 max_trade_limit = 26; - int64 max_trade_period = 27; - bool use_auto_close = 28; - bool use_re_open_after_auto_close = 29; - int64 lower_close_price = 30; - int64 upper_close_price = 31; - bool is_private_offer = 32; - string hash_of_challenge = 33; - map extra_data = 34; - int32 protocol_version = 35; - - NodeAddress arbitrator_signer = 1001; - string arbitrator_signature = 1002; - repeated string reserve_tx_key_images = 1003; -} - -message AccountAgeWitness { - bytes hash = 1; - int64 date = 2; -} - -message SignedWitness { - enum VerificationMethod { - PB_ERROR = 0; - ARBITRATOR = 1; - TRADE = 2; - } - - VerificationMethod verification_method = 1; - bytes account_age_witness_hash = 2; - bytes signature = 3; - bytes signer_pub_key = 4; - bytes witness_owner_pub_key = 5; - int64 date = 6; - int64 trade_amount = 7; -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// Dispute payload -/////////////////////////////////////////////////////////////////////////////////////////// - - -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; - bool is_opener = 4; - bool dispute_opener_is_buyer = 5; - bool dispute_opener_is_maker = 6; - int64 opening_date = 7; - PubKeyRing trader_pub_key_ring = 8; - int64 trade_date = 9; - Contract contract = 10; - bytes contract_hash = 11; - bytes deposit_tx_serialized = 12; - bytes payout_tx_serialized = 13; - string deposit_tx_id = 14; - string payout_tx_id = 15; - string contract_as_json = 16; - string maker_contract_signature = 17; - string taker_contract_signature = 18; - PaymentAccountPayload maker_payment_account_payload = 19; - PaymentAccountPayload taker_payment_account_payload = 20; - PubKeyRing agent_pub_key_ring = 21; - bool is_support_ticket = 22; - repeated ChatMessage chat_message = 23; - bool is_closed = 24; - DisputeResult dispute_result = 25; - string dispute_payout_tx_id = 26; - SupportType support_type = 27; - string mediators_dispute_result = 28; - string delayed_payout_tx_id = 29; - string donation_address_of_delayed_payout_tx = 30; - State state = 31; - int64 trade_period_end = 32; - map extra_data = 33; -} - -message Attachment { - string file_name = 1; - bytes bytes = 2; -} - -message DisputeResult { - enum Winner { - PB_ERROR_WINNER = 0; - BUYER = 1; - SELLER = 2; - } - - enum Reason { - PB_ERROR_REASON = 0; - OTHER = 1; - BUG = 2; - USABILITY = 3; - SCAM = 4; - PROTOCOL_VIOLATION = 5; - NO_REPLY = 6; - BANK_PROBLEMS = 7; - OPTION_TRADE = 8; - SELLER_NOT_RESPONDING = 9; - WRONG_SENDER_ACCOUNT = 10; - TRADE_ALREADY_SETTLED = 11; - PEER_WAS_LATE = 12; - } - - string trade_id = 1; - int32 trader_id = 2; - Winner winner = 3; - int32 reason_ordinal = 4; - bool tamper_proof_evidence = 5; - bool id_verification = 6; - bool screen_cast = 7; - string summary_notes = 8; - ChatMessage chat_message = 9; - bytes arbitrator_signature = 10; - int64 buyer_payout_amount = 11; - int64 seller_payout_amount = 12; - bytes arbitrator_pub_key = 13; - int64 close_date = 14; - bool is_loser_publisher = 15; - string arbitrator_signed_payout_tx_hex = 16; - string arbitrator_updated_multisig_hex = 17; -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// Trade payload -/////////////////////////////////////////////////////////////////////////////////////////// - -message Contract { - OfferPayload offer_payload = 1; - int64 trade_amount = 2; - int64 trade_price = 3; - reserved 4; // WAS: taker_fee_tx_id - reserved 5; // WAS: arbitrator_node_address - bool is_buyer_maker_and_seller_taker = 6; - string maker_account_id = 7; - string taker_account_id = 8; - string maker_payment_method_id = 9; - string taker_payment_method_id = 10; - bytes maker_payment_account_payload_hash = 11; - bytes taker_payment_account_payload_hash = 12; - PubKeyRing maker_pub_key_ring = 13; - PubKeyRing taker_pub_key_ring = 14; - NodeAddress buyer_node_address = 15; - NodeAddress seller_node_address = 16; - string maker_payout_address_string = 17; - string taker_payout_address_string = 18; - NodeAddress arbitrator_node_address = 19; - int64 lock_time = 20; - string maker_deposit_tx_hash = 21; - string taker_deposit_tx_hash = 22; -} - -message RawTransactionInput { - int64 index = 1; - bytes parent_transaction = 2; - int64 value = 3; -} - -enum AvailabilityResult { - PB_ERROR = 0; - UNKNOWN_FAILURE = 1; - AVAILABLE = 2; - OFFER_TAKEN = 3; - PRICE_OUT_OF_TOLERANCE = 4; - MARKET_PRICE_NOT_AVAILABLE = 5; - NO_ARBITRATORS = 6; - NO_MEDIATORS = 7; - 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; - MAKER_DENIED_TAKER = 14; -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// PaymentAccount payload -/////////////////////////////////////////////////////////////////////////////////////////// - - -message PaymentAccountPayload { - string id = 1; - string payment_method_id = 2; - int64 max_trade_period = 3 [deprecated = true]; // not used anymore but we need to keep it in PB for backward compatibility - oneof message { - AliPayAccountPayload ali_pay_account_payload = 4; - ChaseQuickPayAccountPayload chase_quick_pay_account_payload = 5; - ClearXchangeAccountPayload clear_xchange_account_payload = 6; - CountryBasedPaymentAccountPayload country_based_payment_account_payload = 7; - CryptoCurrencyAccountPayload crypto_currency_account_payload = 8; - FasterPaymentsAccountPayload faster_payments_account_payload = 9; - InteracETransferAccountPayload interac_e_transfer_account_payload = 10; - OKPayAccountPayload o_k_pay_account_payload = 11 [deprecated = true]; - PerfectMoneyAccountPayload perfect_money_account_payload = 12; - SwishAccountPayload swish_account_payload = 13; - USPostalMoneyOrderAccountPayload u_s_postal_money_order_account_payload = 14; - UpholdAccountPayload uphold_account_payload = 16; - CashAppAccountPayload cash_app_account_payload = 17 [deprecated = true]; - MoneyBeamAccountPayload money_beam_account_payload = 18; - VenmoAccountPayload venmo_account_payload = 19 [deprecated = true]; - PopmoneyAccountPayload popmoney_account_payload = 20; - RevolutAccountPayload revolut_account_payload = 21; - WeChatPayAccountPayload we_chat_pay_account_payload = 22; - MoneyGramAccountPayload money_gram_account_payload = 23; - HalCashAccountPayload hal_cash_account_payload = 24; - PromptPayAccountPayload prompt_pay_account_payload = 25; - 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; -} - -message AliPayAccountPayload { - string account_nr = 1; -} - -message WeChatPayAccountPayload { - string account_nr = 1; -} - -message ChaseQuickPayAccountPayload { - string email = 1; - string holder_name = 2; -} - -message ClearXchangeAccountPayload { - string holder_name = 1; - string email_or_mobile_nr = 2; -} - -message CountryBasedPaymentAccountPayload { - string countryCode = 1; - oneof message { - BankAccountPayload bank_account_payload = 2; - CashDepositAccountPayload cash_deposit_account_payload = 3; - SepaAccountPayload sepa_account_payload = 4; - WesternUnionAccountPayload western_union_account_payload = 5; - SepaInstantAccountPayload sepa_instant_account_payload = 6; - F2FAccountPayload f2f_account_payload = 7; - } -} - -message BankAccountPayload { - string holder_name = 1; - string bank_name = 2; - string bank_id = 3; - string branch_id = 4; - string account_nr = 5; - string account_type = 6; - string holder_tax_id = 7; - string email = 8 [deprecated = true]; - oneof message { - NationalBankAccountPayload national_bank_account_payload = 9; - SameBankAccountPayload same_bank_accont_payload = 10; - SpecificBanksAccountPayload specific_banks_account_payload = 11; - } - string national_account_id = 12; -} - -message NationalBankAccountPayload { -} - -message SameBankAccountPayload { -} - -message JapanBankAccountPayload { - string bank_name = 1; - string bank_code = 2; - string bank_branch_name = 3; - string bank_branch_code = 4; - string bank_account_type = 5; - string bank_account_name = 6; - string bank_account_number = 7; -} - -message AustraliaPayidPayload { - string bank_account_name = 1; - string payid = 2; -} - -message SpecificBanksAccountPayload { - repeated string accepted_banks = 1; -} - -message CashDepositAccountPayload { - string holder_name = 1; - string holder_email = 2; - string bank_name = 3; - string bank_id = 4; - string branch_id = 5; - string account_nr = 6; - string account_type = 7; - string requirements = 8; - string holder_tax_id = 9; - string national_account_id = 10; -} - -message MoneyGramAccountPayload { - string holder_name = 1; - string country_code = 2; - string state = 3; - string email = 4; -} - -message HalCashAccountPayload { - string mobile_nr = 1; -} - -message WesternUnionAccountPayload { - string holder_name = 1; - string city = 2; - string state = 3; - string email = 4; -} - -message AmazonGiftCardAccountPayload { - string email_or_mobile_nr = 1; - string country_code = 2; -} - -message SepaAccountPayload { - string holder_name = 1; - string iban = 2; - string bic = 3; - string email = 4 [deprecated = true]; - repeated string accepted_country_codes = 5; -} - -message SepaInstantAccountPayload { - string holder_name = 1; - string iban = 2; - string bic = 3; - repeated string accepted_country_codes = 4; -} - -message CryptoCurrencyAccountPayload { - string address = 1; -} - -message InstantCryptoCurrencyAccountPayload { - string address = 1; -} - -message FasterPaymentsAccountPayload { - string sort_code = 1; - string account_nr = 2; - string email = 3 [deprecated = true]; -} - -message InteracETransferAccountPayload { - string email = 1; - string holder_name = 2; - string question = 3; - string answer = 4; -} - -// Deprecated, not used anymore -message OKPayAccountPayload { - string account_nr = 1; -} - -message UpholdAccountPayload { - string account_id = 1; -} - -// Deprecated, not used anymore -message CashAppAccountPayload { - string cash_tag = 1; -} - -message MoneyBeamAccountPayload { - string account_id = 1; -} - -// Deprecated, not used anymore -message VenmoAccountPayload { - string venmo_user_name = 1; - string holder_name = 2; -} - -message PopmoneyAccountPayload { - string account_id = 1; - string holder_name = 2; -} - -message RevolutAccountPayload { - string account_id = 1; - string user_name = 2; -} - -message PerfectMoneyAccountPayload { - string account_nr = 1; -} - -message SwishAccountPayload { - string mobile_nr = 1; - string holder_name = 2; -} - -message USPostalMoneyOrderAccountPayload { - string postal_address = 1; - string holder_name = 2; -} - -message F2FAccountPayload { - string contact = 1; - string city = 2; - string extra_info = 3; -} - -message CashByMailAccountPayload { - string postal_address = 1; - string contact = 2; - string extra_info = 3; -} - -message PromptPayAccountPayload { - string prompt_pay_id = 1; -} - -message AdvancedCashAccountPayload { - string account_nr = 1; -} - -message TransferwiseAccountPayload { - string email = 1; -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// PersistableEnvelope -/////////////////////////////////////////////////////////////////////////////////////////// - -// Those are persisted to disc -message PersistableEnvelope { - oneof message { - SequenceNumberMap sequence_number_map = 1; - PersistedEntryMap persisted_entry_map = 2 [deprecated = true]; - PeerList peer_list = 3; - AddressEntryList address_entry_list = 4; - NavigationPath navigation_path = 5; - - TradableList tradable_list = 6; - // TradeStatisticsList trade_statistics_list = 7; // Was used in pre v0.6.0 version. Not used anymore. - ArbitrationDisputeList arbitration_dispute_list = 8; - - PreferencesPayload preferences_payload = 9; - UserPayload user_payload = 10; - PaymentAccountList payment_account_list = 11; - - AccountAgeWitnessStore account_age_witness_store = 12; - TradeStatistics2Store trade_statistics2_store = 13 [deprecated = true]; - - // PersistableNetworkPayloadList persistable_network_payload_list = 14; // long deprecated & migration away from it is already done - - SignedWitnessStore signed_witness_store = 15; - MediationDisputeList mediation_dispute_list = 16; - RefundDisputeList refund_dispute_list = 17; - TradeStatistics3Store trade_statistics3_store = 18; - MailboxMessageList mailbox_message_list = 19; - IgnoredMailboxMap ignored_mailbox_map = 20; - RemovedPayloadsMap removed_payloads_map = 21; - - XmrAddressEntryList xmr_address_entry_list = 1001; - SignedOfferList signed_offer_list = 1002; - } -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// Collections -/////////////////////////////////////////////////////////////////////////////////////////// - -message SequenceNumberMap { - repeated SequenceNumberEntry sequence_number_entries = 1; -} - -message SequenceNumberEntry { - ByteArray bytes = 1; - MapValue map_value = 2; -} - -message ByteArray { - bytes bytes = 1; -} - -message MapValue { - int32 sequence_nr = 1; - int64 time_stamp = 2; -} - -// deprecated. Not used anymore. -message PersistedEntryMap { - map persisted_entry_map = 1; -} - -// We use a list not a hash map to save disc space. The hash can be calculated from the payload anyway -message AccountAgeWitnessStore { - repeated AccountAgeWitness items = 1; -} - -message SignedWitnessStore { - repeated SignedWitness items = 1; -} - -// 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 [deprecated = true]; -} - -message TradeStatistics3Store { - repeated TradeStatistics3 items = 1; -} - -message PeerList { - repeated Peer peer = 1; -} - -message AddressEntryList { - repeated AddressEntry address_entry = 1; -} - -message AddressEntry { - enum Context { - PB_ERROR = 0; - ARBITRATOR = 1; - AVAILABLE = 2; - OFFER_FUNDING = 3; - RESERVED_FOR_TRADE = 4; - MULTI_SIG = 5; - TRADE_PAYOUT = 6; - } - - string offer_id = 7; - Context context = 8; - bytes pub_key = 9; - bytes pub_key_hash = 10; - int64 coin_locked_in_multi_sig = 11; - bool segwit = 12; -} - -message XmrAddressEntryList { - repeated XmrAddressEntry xmr_address_entry = 1; -} - -message XmrAddressEntry { - enum Context { - PB_ERROR = 0; - ARBITRATOR = 1; - AVAILABLE = 2; - OFFER_FUNDING = 3; - RESERVED_FOR_TRADE = 4; - MULTI_SIG = 5; - TRADE_PAYOUT = 6; - } - - int32 subaddress_index = 7; - string address_string = 8; - string offer_id = 9; - Context context = 10; - int64 coin_locked_in_multi_sig = 11; -} - -message NavigationPath { - repeated string path = 1; -} - -message PaymentAccountList { - repeated PaymentAccount payment_account = 1; -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// Offer/Trade -/////////////////////////////////////////////////////////////////////////////////////////// - -message TradableList { - repeated Tradable tradable = 1; -} - -message Offer { - enum State { - PB_ERROR = 0; - UNKNOWN = 1; - OFFER_FEE_PAID = 2; - AVAILABLE = 3; - NOT_AVAILABLE = 4; - REMOVED = 5; - MAKER_OFFLINE = 6; - } - - OfferPayload offer_payload = 1; -} - -message SignedOfferList { - repeated SignedOffer signed_offer = 1; -} - -message SignedOffer { - string offer_id = 1; - string reserve_tx_hash = 2; - string reserve_tx_hex = 3; - string arbitrator_signature = 4; -} - -message OpenOffer { - enum State { - PB_ERROR = 0; - AVAILABLE = 1; - RESERVED = 2; - CLOSED = 3; - CANCELED = 4; - DEACTIVATED = 5; - } - - Offer offer = 1; - State state = 2; - NodeAddress backup_arbitrator = 3; - int64 trigger_price = 4; - string reserve_tx_hash = 5; - string reserve_tx_hex = 6; - string reserve_tx_key = 7; -} - -message Tradable { - oneof message { - OpenOffer open_offer = 1; - BuyerAsMakerTrade buyer_as_maker_trade = 2; - BuyerAsTakerTrade buyer_as_taker_trade = 3; - SellerAsMakerTrade seller_as_maker_trade = 4; - SellerAsTakerTrade seller_as_taker_trade = 5; - ArbitratorTrade arbitrator_trade = 6; - - SignedOffer signed_offer = 1001; - } -} - -message Trade { - enum State { - PB_ERROR_STATE = 0; - PREPARATION = 1; - TAKER_PUBLISHED_TAKER_FEE_TX = 2; - MAKER_SENT_PUBLISH_DEPOSIT_TX_REQUEST = 3; - MAKER_SAW_ARRIVED_PUBLISH_DEPOSIT_TX_REQUEST = 4; - MAKER_STORED_IN_MAILBOX_PUBLISH_DEPOSIT_TX_REQUEST = 5; - MAKER_SEND_FAILED_PUBLISH_DEPOSIT_TX_REQUEST = 6; - TAKER_RECEIVED_PUBLISH_DEPOSIT_TX_REQUEST = 7; - TAKER_PUBLISHED_DEPOSIT_TX = 8; - TAKER_SAW_DEPOSIT_TX_IN_NETWORK = 9; - TAKER_SENT_DEPOSIT_TX_PUBLISHED_MSG = 10; - TAKER_SAW_ARRIVED_DEPOSIT_TX_PUBLISHED_MSG = 11; - TAKER_STORED_IN_MAILBOX_DEPOSIT_TX_PUBLISHED_MSG = 12; - TAKER_SEND_FAILED_DEPOSIT_TX_PUBLISHED_MSG = 13; - MAKER_RECEIVED_DEPOSIT_TX_PUBLISHED_MSG = 14; - MAKER_SAW_DEPOSIT_TX_IN_NETWORK = 15; - DEPOSIT_CONFIRMED_IN_BLOCK_CHAIN = 16; - BUYER_CONFIRMED_IN_UI_FIAT_PAYMENT_INITIATED = 17; - BUYER_SENT_FIAT_PAYMENT_INITIATED_MSG = 18; - BUYER_SAW_ARRIVED_FIAT_PAYMENT_INITIATED_MSG = 19; - BUYER_STORED_IN_MAILBOX_FIAT_PAYMENT_INITIATED_MSG = 20; - BUYER_SEND_FAILED_FIAT_PAYMENT_INITIATED_MSG = 21; - SELLER_RECEIVED_FIAT_PAYMENT_INITIATED_MSG = 22; - SELLER_CONFIRMED_IN_UI_FIAT_PAYMENT_RECEIPT = 23; - SELLER_PUBLISHED_PAYOUT_TX = 24; - SELLER_SENT_PAYOUT_TX_PUBLISHED_MSG = 25; - SELLER_SAW_ARRIVED_PAYOUT_TX_PUBLISHED_MSG = 26; - SELLER_STORED_IN_MAILBOX_PAYOUT_TX_PUBLISHED_MSG = 27; - SELLER_SEND_FAILED_PAYOUT_TX_PUBLISHED_MSG = 28; - BUYER_RECEIVED_PAYOUT_TX_PUBLISHED_MSG = 29; - BUYER_SAW_PAYOUT_TX_IN_NETWORK = 30; - WITHDRAW_COMPLETED = 31; - } - - enum Phase { - PB_ERROR_PHASE = 0; - INIT = 1; - TAKER_FEE_PUBLISHED = 2; - DEPOSIT_PUBLISHED = 3; - DEPOSIT_CONFIRMED = 4; - FIAT_SENT = 5; - FIAT_RECEIVED = 6; - PAYOUT_PUBLISHED = 7; - WITHDRAWN = 8; - } - - enum DisputeState { - PB_ERROR_DISPUTE_STATE = 0; - NO_DISPUTE = 1; - DISPUTE_REQUESTED = 2; // arbitration We use the enum name for resolving enums so it cannot be renamed - DISPUTE_STARTED_BY_PEER = 3; // arbitration We use the enum name for resolving enums so it cannot be renamed - DISPUTE_CLOSED = 4; // arbitration We use the enum name for resolving enums so it cannot be renamed - MEDIATION_REQUESTED = 5; - MEDIATION_STARTED_BY_PEER = 6; - MEDIATION_CLOSED = 7; - REFUND_REQUESTED = 8; - REFUND_REQUEST_STARTED_BY_PEER = 9; - REFUND_REQUEST_CLOSED = 10; - } - - enum TradePeriodState { - PB_ERROR_TRADE_PERIOD_STATE = 0; - FIRST_HALF = 1; - SECOND_HALF = 2; - TRADE_PERIOD_OVER = 3; - } - - Offer offer = 1; - ProcessModel process_model = 2; - string taker_fee_tx_id = 3; - reserved 4; - string payout_tx_id = 5; - int64 trade_amount_as_long = 6; - int64 tx_fee_as_long = 7; - int64 taker_fee_as_long = 8; - int64 take_offer_date = 9; - int64 trade_price = 10; - State state = 11; - DisputeState dispute_state = 12; - TradePeriodState trade_period_state = 13; - Contract contract = 14; - string contract_as_json = 15; - bytes contract_hash = 16; - NodeAddress arbitrator_node_address = 17; - NodeAddress mediator_node_address = 18; - bytes arbitrator_btc_pub_key = 19; - string taker_payment_account_id = 20; - string error_message = 21; - PubKeyRing arbitrator_pub_key_ring = 22; - PubKeyRing mediator_pub_key_ring = 23; - string counter_currency_tx_id = 24; - repeated ChatMessage chat_message = 25; - MediationResultState mediation_result_state = 26; - int64 lock_time = 27; - bytes delayed_payout_tx_bytes = 28; - NodeAddress refund_agent_node_address = 29; - PubKeyRing refund_agent_pub_key_ring = 30; - RefundResultState refund_result_state = 31; - int64 last_refresh_request_date = 32 [deprecated = true]; - string counter_currency_extra_data = 33; - string asset_tx_proof_result = 34; // name of AssetTxProofResult enum - string uid = 35; - - NodeAddress maker_node_address = 100; // TODO (woodser): move these into TradingPeer - NodeAddress taker_node_address = 101; - PubKeyRing taker_pub_key_ring = 102; - PubKeyRing maker_pub_key_ring = 103; -} - -message BuyerAsMakerTrade { - Trade trade = 1; -} - -message BuyerAsTakerTrade { - Trade trade = 1; -} - -message SellerAsMakerTrade { - Trade trade = 1; -} - -message SellerAsTakerTrade { - Trade trade = 1; -} - -message ArbitratorTrade { - Trade trade = 1; -} - -message ProcessModel { - reserved 1; // Not used anymore - string offer_id = 2; - string account_id = 3; - PubKeyRing pub_key_ring = 4; - string take_offer_fee_tx_id = 5; - bytes payout_tx_signature = 6; - reserved 7; // Not used anymore - reserved 8; // Not used anymore - reserved 9; // Not used anymore - repeated RawTransactionInput raw_transaction_inputs = 10; - int64 change_output_value = 11; - string change_output_address = 12; - bool use_savings_wallet = 13; - int64 funds_needed_for_trade_as_long = 14; - bytes my_multi_sig_pub_key = 15; - reserved 16; // Not used anymore - string payment_started_message_state = 17; - bytes mediated_payout_tx_signature = 18; - int64 buyer_payout_amount_from_mediation = 19; - int64 seller_payout_amount_from_mediation = 20; - - string maker_signature = 1001; - NodeAddress backup_arbitrator = 1002; - TradingPeer maker = 1003; - TradingPeer taker = 1004; - TradingPeer arbitrator = 1005; - NodeAddress temp_trading_peer_node_address = 1006; - string prepared_multisig_hex = 1007; - string made_multisig_hex = 1008; - bool multisig_setup_complete = 1009; - bool maker_ready_to_fund_multisig = 1010; - bool multisig_deposit_initiated = 1011; -} - -message TradingPeer { - string account_id = 1; - string payment_account_id = 2; - string payment_method_id = 3; - bytes payment_account_payload_hash = 4; - PaymentAccountPayload payment_account_payload = 5; - string payout_address_string = 6; - string contract_as_json = 7; - string contract_signature = 8; - bytes signature = 9; // TODO (woodser): remove unused fields? this was buyer-signed payout tx as bytes - PubKeyRing pub_key_ring = 10; - bytes multi_sig_pub_key = 11; - repeated RawTransactionInput raw_transaction_inputs = 12; - int64 change_output_value = 13; - string change_output_address = 14; - bytes account_age_witness_nonce = 15; - bytes account_age_witness_signature = 16; - int64 current_date = 17; - bytes mediated_payout_tx_signature = 18; - - string reserve_tx_hash = 1001; - string reserve_tx_hex = 1002; - string reserve_tx_key = 1003; - repeated string reserve_tx_key_images = 1004; - string prepared_multisig_hex = 1005; - string made_multisig_hex = 1006; - string signed_payout_tx_hex = 1007; - string deposit_tx_hash = 1008; - string deposit_tx_hex = 1009; - string deposit_tx_key = 1010; -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// Dispute -/////////////////////////////////////////////////////////////////////////////////////////// - -message ArbitrationDisputeList { - repeated Dispute dispute = 1; -} - -message MediationDisputeList { - repeated Dispute dispute = 1; -} - -message RefundDisputeList { - repeated Dispute dispute = 1; -} - -enum MediationResultState { - PB_ERROR_MEDIATION_RESULT = 0; - UNDEFINED_MEDIATION_RESULT = 1; - MEDIATION_RESULT_ACCEPTED = 2; - MEDIATION_RESULT_REJECTED = 3; - SIG_MSG_SENT = 4; - SIG_MSG_ARRIVED = 5; - SIG_MSG_IN_MAILBOX = 6; - SIG_MSG_SEND_FAILED = 7; - RECEIVED_SIG_MSG = 8; - PAYOUT_TX_PUBLISHED = 9; - PAYOUT_TX_PUBLISHED_MSG_SENT = 10; - PAYOUT_TX_PUBLISHED_MSG_ARRIVED = 11; - PAYOUT_TX_PUBLISHED_MSG_IN_MAILBOX = 12; - PAYOUT_TX_PUBLISHED_MSG_SEND_FAILED = 13; - RECEIVED_PAYOUT_TX_PUBLISHED_MSG = 14; - PAYOUT_TX_SEEN_IN_NETWORK = 15; -} - -//todo -enum RefundResultState { - PB_ERROR_REFUND_RESULT = 0; - UNDEFINED_REFUND_RESULT = 1; -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// Preferences -/////////////////////////////////////////////////////////////////////////////////////////// - -message PreferencesPayload { - string user_language = 1; - Country user_country = 2; - repeated TradeCurrency fiat_currencies = 3; - repeated TradeCurrency crypto_currencies = 4; - BlockChainExplorer block_chain_explorer_main_net = 5; - BlockChainExplorer block_chain_explorer_test_net = 6; - string backup_directory = 7; - bool auto_select_arbitrators = 8; - map dont_show_again_map = 9; - bool tac_accepted = 10; - bool use_tor_for_bitcoin_j = 11; - bool show_own_offers_in_offer_book = 12; - TradeCurrency preferred_trade_currency = 13; - int64 withdrawal_tx_fee_in_vbytes = 14; - bool use_custom_withdrawal_tx_fee = 15; - double max_price_distance_in_percent = 16; - string offer_book_chart_screen_currency_code = 17; - string trade_charts_screen_currency_code = 18; - string buy_screen_currency_code = 19; - string sell_screen_currency_code = 20; - int32 trade_statistics_tick_unit_index = 21; - bool resync_Spv_requested = 22; - bool sort_market_currencies_numerically = 23; - bool use_percentage_based_price = 24; - map peer_tag_map = 25; - string bitcoin_nodes = 26; - repeated string ignore_traders_list = 27; - string directory_chooser_path = 28; - int64 buyer_security_deposit_as_long = 29 [deprecated = true]; // Superseded by buyerSecurityDepositAsPercent - bool use_animations = 30; - PaymentAccount selectedPayment_account_for_createOffer = 31; - repeated string bridge_addresses = 32; - int32 bridge_option_ordinal = 33; - int32 tor_transport_ordinal = 34; - string custom_bridges = 35; - int32 bitcoin_nodes_option_ordinal = 36; - string referral_id = 37; - string phone_key_and_token = 38; - bool use_sound_for_mobile_notifications = 39; - bool use_trade_notifications = 40; - bool use_market_notifications = 41; - bool use_price_notifications = 42; - bool use_standby_mode = 43; - string rpc_user = 44; - string rpc_pw = 45; - string take_offer_selected_payment_account_id = 46; - double buyer_security_deposit_as_percent = 47; - int32 ignore_dust_threshold = 48; - double buyer_security_deposit_as_percent_for_crypto = 49; - int32 block_notify_port = 50; - int32 css_theme = 51; - bool tac_accepted_v120 = 52; - repeated AutoConfirmSettings auto_confirm_settings = 53; - bool hide_non_account_payment_methods = 54; - bool show_offers_matching_my_accounts = 55; - bool deny_api_taker = 56; - bool notify_on_pre_release = 57; -} - -message AutoConfirmSettings { - bool enabled = 1; - int32 required_confirmations = 2; - int64 trade_limit = 3; - repeated string service_addresses = 4; - string currency_code = 5; -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// UserPayload -/////////////////////////////////////////////////////////////////////////////////////////// - -message UserPayload { - string account_id = 1; - repeated PaymentAccount payment_accounts = 2; - PaymentAccount current_payment_account = 3; - repeated string accepted_language_locale_codes = 4; - Alert developers_alert = 5; - Alert displayed_alert = 6; - Filter developers_filter = 7; - repeated Arbitrator accepted_arbitrators = 8; - repeated Mediator accepted_mediators = 9; - Arbitrator registered_arbitrator = 10; - Mediator registered_mediator = 11; - PriceAlertFilter price_alert_filter = 12; - repeated MarketAlertFilter market_alert_filters = 13; - repeated RefundAgent accepted_refund_agents = 14; - RefundAgent registered_refund_agent = 15; - map cookie = 16; -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// Misc -/////////////////////////////////////////////////////////////////////////////////////////// - -message BlockChainExplorer { - string name = 1; - string tx_url = 2; - string address_url = 3; -} - -message PaymentAccount { - string id = 1; - int64 creation_date = 2 [jstype = JS_STRING]; - PaymentMethod payment_method = 3; - string account_name = 4; - repeated TradeCurrency trade_currencies = 5; - TradeCurrency selected_trade_currency = 6; - PaymentAccountPayload payment_account_payload = 7; -} - -message PaymentMethod { - string id = 1; - int64 max_trade_period = 2 [jstype = JS_STRING]; - int64 max_trade_limit = 3 [jstype = JS_STRING]; -} - -// Currency - -message Currency { - string currency_code = 1; -} - -message TradeCurrency { - string code = 1; - string name = 2; - oneof message { - CryptoCurrency crypto_currency = 3; - FiatCurrency fiat_currency = 4; - } -} - -message CryptoCurrency { - bool is_asset = 1; -} - -message FiatCurrency { - Currency currency = 1; -} - -message Country { - string code = 1; - string name = 2; - Region region = 3; -} - -message Region { - string code = 1; - string name = 2; -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// Notifications -/////////////////////////////////////////////////////////////////////////////////////////// - -message PriceAlertFilter { - string currencyCode = 1; - int64 high = 2; - int64 low = 3; -} - -message MarketAlertFilter { - PaymentAccount payment_account = 1; - int32 trigger_value = 2; - bool is_buy_offer = 3; - repeated string alert_ids = 4; -} - -/////////////////////////////////////////////////////////////////////////////////////////// -// Mock -/////////////////////////////////////////////////////////////////////////////////////////// - -message MockMailboxPayload { - string message = 1; - NodeAddress sender_node_address = 2; - string uid = 3; -} - -message MockPayload { - string message_version = 1; - string message = 2; -} diff --git a/package.json b/package.json index e27f82eb..ac0d41a2 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,9 @@ "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test --runInBand", - "eject": "react-scripts eject" + "eject": "react-scripts eject", + "prepare": "bin/build_protobuf.sh", + "pretest": "bin/build_protobuf.sh" }, "eslintConfig": { "extends": [ diff --git a/src/protobuf/GrpcServiceClientPb.ts b/src/protobuf/GrpcServiceClientPb.ts deleted file mode 100644 index 59c1430c..00000000 --- a/src/protobuf/GrpcServiceClientPb.ts +++ /dev/null @@ -1,1862 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for io.bisq.protobuffer - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - - -/* eslint-disable */ -// @ts-nocheck - - -import * as grpcWeb from 'grpc-web'; - -import * as grpc_pb from './grpc_pb'; - - -export class DisputeAgentsClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string; }; - options_: null | { [index: string]: any; }; - - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options['format'] = 'text'; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodInfoRegisterDisputeAgent = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.DisputeAgents/RegisterDisputeAgent', - grpcWeb.MethodType.UNARY, - grpc_pb.RegisterDisputeAgentRequest, - grpc_pb.RegisterDisputeAgentReply, - (request: grpc_pb.RegisterDisputeAgentRequest) => { - return request.serializeBinary(); - }, - grpc_pb.RegisterDisputeAgentReply.deserializeBinary - ); - - registerDisputeAgent( - request: grpc_pb.RegisterDisputeAgentRequest, - metadata: grpcWeb.Metadata | null): Promise; - - registerDisputeAgent( - request: grpc_pb.RegisterDisputeAgentRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.RegisterDisputeAgentReply) => void): grpcWeb.ClientReadableStream; - - registerDisputeAgent( - request: grpc_pb.RegisterDisputeAgentRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.RegisterDisputeAgentReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.DisputeAgents/RegisterDisputeAgent', - request, - metadata || {}, - this.methodInfoRegisterDisputeAgent, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.DisputeAgents/RegisterDisputeAgent', - request, - metadata || {}, - this.methodInfoRegisterDisputeAgent); - } - -} - -export class HelpClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string; }; - options_: null | { [index: string]: any; }; - - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options['format'] = 'text'; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodInfoGetMethodHelp = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Help/GetMethodHelp', - grpcWeb.MethodType.UNARY, - grpc_pb.GetMethodHelpRequest, - grpc_pb.GetMethodHelpReply, - (request: grpc_pb.GetMethodHelpRequest) => { - return request.serializeBinary(); - }, - grpc_pb.GetMethodHelpReply.deserializeBinary - ); - - getMethodHelp( - request: grpc_pb.GetMethodHelpRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getMethodHelp( - request: grpc_pb.GetMethodHelpRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.GetMethodHelpReply) => void): grpcWeb.ClientReadableStream; - - getMethodHelp( - request: grpc_pb.GetMethodHelpRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.GetMethodHelpReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Help/GetMethodHelp', - request, - metadata || {}, - this.methodInfoGetMethodHelp, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Help/GetMethodHelp', - request, - metadata || {}, - this.methodInfoGetMethodHelp); - } - -} - -export class OffersClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string; }; - options_: null | { [index: string]: any; }; - - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options['format'] = 'text'; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodInfoGetOffer = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Offers/GetOffer', - grpcWeb.MethodType.UNARY, - grpc_pb.GetOfferRequest, - grpc_pb.GetOfferReply, - (request: grpc_pb.GetOfferRequest) => { - return request.serializeBinary(); - }, - grpc_pb.GetOfferReply.deserializeBinary - ); - - getOffer( - request: grpc_pb.GetOfferRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getOffer( - request: grpc_pb.GetOfferRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.GetOfferReply) => void): grpcWeb.ClientReadableStream; - - getOffer( - request: grpc_pb.GetOfferRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.GetOfferReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Offers/GetOffer', - request, - metadata || {}, - this.methodInfoGetOffer, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Offers/GetOffer', - request, - metadata || {}, - this.methodInfoGetOffer); - } - - methodInfoGetMyOffer = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Offers/GetMyOffer', - grpcWeb.MethodType.UNARY, - grpc_pb.GetMyOfferRequest, - grpc_pb.GetMyOfferReply, - (request: grpc_pb.GetMyOfferRequest) => { - return request.serializeBinary(); - }, - grpc_pb.GetMyOfferReply.deserializeBinary - ); - - getMyOffer( - request: grpc_pb.GetMyOfferRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getMyOffer( - request: grpc_pb.GetMyOfferRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.GetMyOfferReply) => void): grpcWeb.ClientReadableStream; - - getMyOffer( - request: grpc_pb.GetMyOfferRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.GetMyOfferReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Offers/GetMyOffer', - request, - metadata || {}, - this.methodInfoGetMyOffer, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Offers/GetMyOffer', - request, - metadata || {}, - this.methodInfoGetMyOffer); - } - - methodInfoGetOffers = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Offers/GetOffers', - grpcWeb.MethodType.UNARY, - grpc_pb.GetOffersRequest, - grpc_pb.GetOffersReply, - (request: grpc_pb.GetOffersRequest) => { - return request.serializeBinary(); - }, - grpc_pb.GetOffersReply.deserializeBinary - ); - - getOffers( - request: grpc_pb.GetOffersRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getOffers( - request: grpc_pb.GetOffersRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.GetOffersReply) => void): grpcWeb.ClientReadableStream; - - getOffers( - request: grpc_pb.GetOffersRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.GetOffersReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Offers/GetOffers', - request, - metadata || {}, - this.methodInfoGetOffers, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Offers/GetOffers', - request, - metadata || {}, - this.methodInfoGetOffers); - } - - methodInfoGetMyOffers = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Offers/GetMyOffers', - grpcWeb.MethodType.UNARY, - grpc_pb.GetMyOffersRequest, - grpc_pb.GetMyOffersReply, - (request: grpc_pb.GetMyOffersRequest) => { - return request.serializeBinary(); - }, - grpc_pb.GetMyOffersReply.deserializeBinary - ); - - getMyOffers( - request: grpc_pb.GetMyOffersRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getMyOffers( - request: grpc_pb.GetMyOffersRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.GetMyOffersReply) => void): grpcWeb.ClientReadableStream; - - getMyOffers( - request: grpc_pb.GetMyOffersRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.GetMyOffersReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Offers/GetMyOffers', - request, - metadata || {}, - this.methodInfoGetMyOffers, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Offers/GetMyOffers', - request, - metadata || {}, - this.methodInfoGetMyOffers); - } - - methodInfoCreateOffer = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Offers/CreateOffer', - grpcWeb.MethodType.UNARY, - grpc_pb.CreateOfferRequest, - grpc_pb.CreateOfferReply, - (request: grpc_pb.CreateOfferRequest) => { - return request.serializeBinary(); - }, - grpc_pb.CreateOfferReply.deserializeBinary - ); - - createOffer( - request: grpc_pb.CreateOfferRequest, - metadata: grpcWeb.Metadata | null): Promise; - - createOffer( - request: grpc_pb.CreateOfferRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.CreateOfferReply) => void): grpcWeb.ClientReadableStream; - - createOffer( - request: grpc_pb.CreateOfferRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.CreateOfferReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Offers/CreateOffer', - request, - metadata || {}, - this.methodInfoCreateOffer, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Offers/CreateOffer', - request, - metadata || {}, - this.methodInfoCreateOffer); - } - - methodInfoCancelOffer = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Offers/CancelOffer', - grpcWeb.MethodType.UNARY, - grpc_pb.CancelOfferRequest, - grpc_pb.CancelOfferReply, - (request: grpc_pb.CancelOfferRequest) => { - return request.serializeBinary(); - }, - grpc_pb.CancelOfferReply.deserializeBinary - ); - - cancelOffer( - request: grpc_pb.CancelOfferRequest, - metadata: grpcWeb.Metadata | null): Promise; - - cancelOffer( - request: grpc_pb.CancelOfferRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.CancelOfferReply) => void): grpcWeb.ClientReadableStream; - - cancelOffer( - request: grpc_pb.CancelOfferRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.CancelOfferReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Offers/CancelOffer', - request, - metadata || {}, - this.methodInfoCancelOffer, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Offers/CancelOffer', - request, - metadata || {}, - this.methodInfoCancelOffer); - } - -} - -export class PaymentAccountsClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string; }; - options_: null | { [index: string]: any; }; - - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options['format'] = 'text'; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodInfoCreatePaymentAccount = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.PaymentAccounts/CreatePaymentAccount', - grpcWeb.MethodType.UNARY, - grpc_pb.CreatePaymentAccountRequest, - grpc_pb.CreatePaymentAccountReply, - (request: grpc_pb.CreatePaymentAccountRequest) => { - return request.serializeBinary(); - }, - grpc_pb.CreatePaymentAccountReply.deserializeBinary - ); - - createPaymentAccount( - request: grpc_pb.CreatePaymentAccountRequest, - metadata: grpcWeb.Metadata | null): Promise; - - createPaymentAccount( - request: grpc_pb.CreatePaymentAccountRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.CreatePaymentAccountReply) => void): grpcWeb.ClientReadableStream; - - createPaymentAccount( - request: grpc_pb.CreatePaymentAccountRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.CreatePaymentAccountReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/CreatePaymentAccount', - request, - metadata || {}, - this.methodInfoCreatePaymentAccount, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/CreatePaymentAccount', - request, - metadata || {}, - this.methodInfoCreatePaymentAccount); - } - - methodInfoGetPaymentAccounts = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccounts', - grpcWeb.MethodType.UNARY, - grpc_pb.GetPaymentAccountsRequest, - grpc_pb.GetPaymentAccountsReply, - (request: grpc_pb.GetPaymentAccountsRequest) => { - return request.serializeBinary(); - }, - grpc_pb.GetPaymentAccountsReply.deserializeBinary - ); - - getPaymentAccounts( - request: grpc_pb.GetPaymentAccountsRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getPaymentAccounts( - request: grpc_pb.GetPaymentAccountsRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.GetPaymentAccountsReply) => void): grpcWeb.ClientReadableStream; - - getPaymentAccounts( - request: grpc_pb.GetPaymentAccountsRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.GetPaymentAccountsReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccounts', - request, - metadata || {}, - this.methodInfoGetPaymentAccounts, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccounts', - request, - metadata || {}, - this.methodInfoGetPaymentAccounts); - } - - methodInfoGetPaymentMethods = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.PaymentAccounts/GetPaymentMethods', - grpcWeb.MethodType.UNARY, - grpc_pb.GetPaymentMethodsRequest, - grpc_pb.GetPaymentMethodsReply, - (request: grpc_pb.GetPaymentMethodsRequest) => { - return request.serializeBinary(); - }, - grpc_pb.GetPaymentMethodsReply.deserializeBinary - ); - - getPaymentMethods( - request: grpc_pb.GetPaymentMethodsRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getPaymentMethods( - request: grpc_pb.GetPaymentMethodsRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.GetPaymentMethodsReply) => void): grpcWeb.ClientReadableStream; - - getPaymentMethods( - request: grpc_pb.GetPaymentMethodsRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.GetPaymentMethodsReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/GetPaymentMethods', - request, - metadata || {}, - this.methodInfoGetPaymentMethods, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/GetPaymentMethods', - request, - metadata || {}, - this.methodInfoGetPaymentMethods); - } - - methodInfoGetPaymentAccountForm = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccountForm', - grpcWeb.MethodType.UNARY, - grpc_pb.GetPaymentAccountFormRequest, - grpc_pb.GetPaymentAccountFormReply, - (request: grpc_pb.GetPaymentAccountFormRequest) => { - return request.serializeBinary(); - }, - grpc_pb.GetPaymentAccountFormReply.deserializeBinary - ); - - getPaymentAccountForm( - request: grpc_pb.GetPaymentAccountFormRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getPaymentAccountForm( - request: grpc_pb.GetPaymentAccountFormRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.GetPaymentAccountFormReply) => void): grpcWeb.ClientReadableStream; - - getPaymentAccountForm( - request: grpc_pb.GetPaymentAccountFormRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.GetPaymentAccountFormReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccountForm', - request, - metadata || {}, - this.methodInfoGetPaymentAccountForm, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccountForm', - request, - metadata || {}, - this.methodInfoGetPaymentAccountForm); - } - - methodInfoCreateCryptoCurrencyPaymentAccount = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.PaymentAccounts/CreateCryptoCurrencyPaymentAccount', - grpcWeb.MethodType.UNARY, - grpc_pb.CreateCryptoCurrencyPaymentAccountRequest, - grpc_pb.CreateCryptoCurrencyPaymentAccountReply, - (request: grpc_pb.CreateCryptoCurrencyPaymentAccountRequest) => { - return request.serializeBinary(); - }, - grpc_pb.CreateCryptoCurrencyPaymentAccountReply.deserializeBinary - ); - - createCryptoCurrencyPaymentAccount( - request: grpc_pb.CreateCryptoCurrencyPaymentAccountRequest, - metadata: grpcWeb.Metadata | null): Promise; - - createCryptoCurrencyPaymentAccount( - request: grpc_pb.CreateCryptoCurrencyPaymentAccountRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.CreateCryptoCurrencyPaymentAccountReply) => void): grpcWeb.ClientReadableStream; - - createCryptoCurrencyPaymentAccount( - request: grpc_pb.CreateCryptoCurrencyPaymentAccountRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.CreateCryptoCurrencyPaymentAccountReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/CreateCryptoCurrencyPaymentAccount', - request, - metadata || {}, - this.methodInfoCreateCryptoCurrencyPaymentAccount, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/CreateCryptoCurrencyPaymentAccount', - request, - metadata || {}, - this.methodInfoCreateCryptoCurrencyPaymentAccount); - } - - methodInfoGetCryptoCurrencyPaymentMethods = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.PaymentAccounts/GetCryptoCurrencyPaymentMethods', - grpcWeb.MethodType.UNARY, - grpc_pb.GetCryptoCurrencyPaymentMethodsRequest, - grpc_pb.GetCryptoCurrencyPaymentMethodsReply, - (request: grpc_pb.GetCryptoCurrencyPaymentMethodsRequest) => { - return request.serializeBinary(); - }, - grpc_pb.GetCryptoCurrencyPaymentMethodsReply.deserializeBinary - ); - - getCryptoCurrencyPaymentMethods( - request: grpc_pb.GetCryptoCurrencyPaymentMethodsRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getCryptoCurrencyPaymentMethods( - request: grpc_pb.GetCryptoCurrencyPaymentMethodsRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.GetCryptoCurrencyPaymentMethodsReply) => void): grpcWeb.ClientReadableStream; - - getCryptoCurrencyPaymentMethods( - request: grpc_pb.GetCryptoCurrencyPaymentMethodsRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.GetCryptoCurrencyPaymentMethodsReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/GetCryptoCurrencyPaymentMethods', - request, - metadata || {}, - this.methodInfoGetCryptoCurrencyPaymentMethods, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/GetCryptoCurrencyPaymentMethods', - request, - metadata || {}, - this.methodInfoGetCryptoCurrencyPaymentMethods); - } - -} - -export class PriceClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string; }; - options_: null | { [index: string]: any; }; - - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options['format'] = 'text'; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodInfoGetMarketPrice = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Price/GetMarketPrice', - grpcWeb.MethodType.UNARY, - grpc_pb.MarketPriceRequest, - grpc_pb.MarketPriceReply, - (request: grpc_pb.MarketPriceRequest) => { - return request.serializeBinary(); - }, - grpc_pb.MarketPriceReply.deserializeBinary - ); - - getMarketPrice( - request: grpc_pb.MarketPriceRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getMarketPrice( - request: grpc_pb.MarketPriceRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.MarketPriceReply) => void): grpcWeb.ClientReadableStream; - - getMarketPrice( - request: grpc_pb.MarketPriceRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.MarketPriceReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Price/GetMarketPrice', - request, - metadata || {}, - this.methodInfoGetMarketPrice, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Price/GetMarketPrice', - request, - metadata || {}, - this.methodInfoGetMarketPrice); - } - - methodInfoGetMarketPrices = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Price/GetMarketPrices', - grpcWeb.MethodType.UNARY, - grpc_pb.MarketPricesRequest, - grpc_pb.MarketPricesReply, - (request: grpc_pb.MarketPricesRequest) => { - return request.serializeBinary(); - }, - grpc_pb.MarketPricesReply.deserializeBinary - ); - - getMarketPrices( - request: grpc_pb.MarketPricesRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getMarketPrices( - request: grpc_pb.MarketPricesRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.MarketPricesReply) => void): grpcWeb.ClientReadableStream; - - getMarketPrices( - request: grpc_pb.MarketPricesRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.MarketPricesReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Price/GetMarketPrices', - request, - metadata || {}, - this.methodInfoGetMarketPrices, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Price/GetMarketPrices', - request, - metadata || {}, - this.methodInfoGetMarketPrices); - } - -} - -export class GetTradeStatisticsClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string; }; - options_: null | { [index: string]: any; }; - - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options['format'] = 'text'; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodInfoGetTradeStatistics = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.GetTradeStatistics/GetTradeStatistics', - grpcWeb.MethodType.UNARY, - grpc_pb.GetTradeStatisticsRequest, - grpc_pb.GetTradeStatisticsReply, - (request: grpc_pb.GetTradeStatisticsRequest) => { - return request.serializeBinary(); - }, - grpc_pb.GetTradeStatisticsReply.deserializeBinary - ); - - getTradeStatistics( - request: grpc_pb.GetTradeStatisticsRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getTradeStatistics( - request: grpc_pb.GetTradeStatisticsRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.GetTradeStatisticsReply) => void): grpcWeb.ClientReadableStream; - - getTradeStatistics( - request: grpc_pb.GetTradeStatisticsRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.GetTradeStatisticsReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.GetTradeStatistics/GetTradeStatistics', - request, - metadata || {}, - this.methodInfoGetTradeStatistics, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.GetTradeStatistics/GetTradeStatistics', - request, - metadata || {}, - this.methodInfoGetTradeStatistics); - } - -} - -export class ShutdownServerClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string; }; - options_: null | { [index: string]: any; }; - - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options['format'] = 'text'; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodInfoStop = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.ShutdownServer/Stop', - grpcWeb.MethodType.UNARY, - grpc_pb.StopRequest, - grpc_pb.StopReply, - (request: grpc_pb.StopRequest) => { - return request.serializeBinary(); - }, - grpc_pb.StopReply.deserializeBinary - ); - - stop( - request: grpc_pb.StopRequest, - metadata: grpcWeb.Metadata | null): Promise; - - stop( - request: grpc_pb.StopRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.StopReply) => void): grpcWeb.ClientReadableStream; - - stop( - request: grpc_pb.StopRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.StopReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.ShutdownServer/Stop', - request, - metadata || {}, - this.methodInfoStop, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.ShutdownServer/Stop', - request, - metadata || {}, - this.methodInfoStop); - } - -} - -export class TradesClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string; }; - options_: null | { [index: string]: any; }; - - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options['format'] = 'text'; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodInfoGetTrade = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Trades/GetTrade', - grpcWeb.MethodType.UNARY, - grpc_pb.GetTradeRequest, - grpc_pb.GetTradeReply, - (request: grpc_pb.GetTradeRequest) => { - return request.serializeBinary(); - }, - grpc_pb.GetTradeReply.deserializeBinary - ); - - getTrade( - request: grpc_pb.GetTradeRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getTrade( - request: grpc_pb.GetTradeRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.GetTradeReply) => void): grpcWeb.ClientReadableStream; - - getTrade( - request: grpc_pb.GetTradeRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.GetTradeReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Trades/GetTrade', - request, - metadata || {}, - this.methodInfoGetTrade, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Trades/GetTrade', - request, - metadata || {}, - this.methodInfoGetTrade); - } - - methodInfoTakeOffer = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Trades/TakeOffer', - grpcWeb.MethodType.UNARY, - grpc_pb.TakeOfferRequest, - grpc_pb.TakeOfferReply, - (request: grpc_pb.TakeOfferRequest) => { - return request.serializeBinary(); - }, - grpc_pb.TakeOfferReply.deserializeBinary - ); - - takeOffer( - request: grpc_pb.TakeOfferRequest, - metadata: grpcWeb.Metadata | null): Promise; - - takeOffer( - request: grpc_pb.TakeOfferRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.TakeOfferReply) => void): grpcWeb.ClientReadableStream; - - takeOffer( - request: grpc_pb.TakeOfferRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.TakeOfferReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Trades/TakeOffer', - request, - metadata || {}, - this.methodInfoTakeOffer, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Trades/TakeOffer', - request, - metadata || {}, - this.methodInfoTakeOffer); - } - - methodInfoConfirmPaymentStarted = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Trades/ConfirmPaymentStarted', - grpcWeb.MethodType.UNARY, - grpc_pb.ConfirmPaymentStartedRequest, - grpc_pb.ConfirmPaymentStartedReply, - (request: grpc_pb.ConfirmPaymentStartedRequest) => { - return request.serializeBinary(); - }, - grpc_pb.ConfirmPaymentStartedReply.deserializeBinary - ); - - confirmPaymentStarted( - request: grpc_pb.ConfirmPaymentStartedRequest, - metadata: grpcWeb.Metadata | null): Promise; - - confirmPaymentStarted( - request: grpc_pb.ConfirmPaymentStartedRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.ConfirmPaymentStartedReply) => void): grpcWeb.ClientReadableStream; - - confirmPaymentStarted( - request: grpc_pb.ConfirmPaymentStartedRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.ConfirmPaymentStartedReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Trades/ConfirmPaymentStarted', - request, - metadata || {}, - this.methodInfoConfirmPaymentStarted, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Trades/ConfirmPaymentStarted', - request, - metadata || {}, - this.methodInfoConfirmPaymentStarted); - } - - methodInfoConfirmPaymentReceived = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Trades/ConfirmPaymentReceived', - grpcWeb.MethodType.UNARY, - grpc_pb.ConfirmPaymentReceivedRequest, - grpc_pb.ConfirmPaymentReceivedReply, - (request: grpc_pb.ConfirmPaymentReceivedRequest) => { - return request.serializeBinary(); - }, - grpc_pb.ConfirmPaymentReceivedReply.deserializeBinary - ); - - confirmPaymentReceived( - request: grpc_pb.ConfirmPaymentReceivedRequest, - metadata: grpcWeb.Metadata | null): Promise; - - confirmPaymentReceived( - request: grpc_pb.ConfirmPaymentReceivedRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.ConfirmPaymentReceivedReply) => void): grpcWeb.ClientReadableStream; - - confirmPaymentReceived( - request: grpc_pb.ConfirmPaymentReceivedRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.ConfirmPaymentReceivedReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Trades/ConfirmPaymentReceived', - request, - metadata || {}, - this.methodInfoConfirmPaymentReceived, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Trades/ConfirmPaymentReceived', - request, - metadata || {}, - this.methodInfoConfirmPaymentReceived); - } - - methodInfoKeepFunds = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Trades/KeepFunds', - grpcWeb.MethodType.UNARY, - grpc_pb.KeepFundsRequest, - grpc_pb.KeepFundsReply, - (request: grpc_pb.KeepFundsRequest) => { - return request.serializeBinary(); - }, - grpc_pb.KeepFundsReply.deserializeBinary - ); - - keepFunds( - request: grpc_pb.KeepFundsRequest, - metadata: grpcWeb.Metadata | null): Promise; - - keepFunds( - request: grpc_pb.KeepFundsRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.KeepFundsReply) => void): grpcWeb.ClientReadableStream; - - keepFunds( - request: grpc_pb.KeepFundsRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.KeepFundsReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Trades/KeepFunds', - request, - metadata || {}, - this.methodInfoKeepFunds, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Trades/KeepFunds', - request, - metadata || {}, - this.methodInfoKeepFunds); - } - - methodInfoWithdrawFunds = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Trades/WithdrawFunds', - grpcWeb.MethodType.UNARY, - grpc_pb.WithdrawFundsRequest, - grpc_pb.WithdrawFundsReply, - (request: grpc_pb.WithdrawFundsRequest) => { - return request.serializeBinary(); - }, - grpc_pb.WithdrawFundsReply.deserializeBinary - ); - - withdrawFunds( - request: grpc_pb.WithdrawFundsRequest, - metadata: grpcWeb.Metadata | null): Promise; - - withdrawFunds( - request: grpc_pb.WithdrawFundsRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.WithdrawFundsReply) => void): grpcWeb.ClientReadableStream; - - withdrawFunds( - request: grpc_pb.WithdrawFundsRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.WithdrawFundsReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Trades/WithdrawFunds', - request, - metadata || {}, - this.methodInfoWithdrawFunds, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Trades/WithdrawFunds', - request, - metadata || {}, - this.methodInfoWithdrawFunds); - } - -} - -export class WalletsClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string; }; - options_: null | { [index: string]: any; }; - - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options['format'] = 'text'; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodInfoGetBalances = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/GetBalances', - grpcWeb.MethodType.UNARY, - grpc_pb.GetBalancesRequest, - grpc_pb.GetBalancesReply, - (request: grpc_pb.GetBalancesRequest) => { - return request.serializeBinary(); - }, - grpc_pb.GetBalancesReply.deserializeBinary - ); - - getBalances( - request: grpc_pb.GetBalancesRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getBalances( - request: grpc_pb.GetBalancesRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.GetBalancesReply) => void): grpcWeb.ClientReadableStream; - - getBalances( - request: grpc_pb.GetBalancesRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.GetBalancesReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetBalances', - request, - metadata || {}, - this.methodInfoGetBalances, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetBalances', - request, - metadata || {}, - this.methodInfoGetBalances); - } - - methodInfoGetNewDepositSubaddress = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/GetNewDepositSubaddress', - grpcWeb.MethodType.UNARY, - grpc_pb.GetNewDepositSubaddressRequest, - grpc_pb.GetNewDepositSubaddressReply, - (request: grpc_pb.GetNewDepositSubaddressRequest) => { - return request.serializeBinary(); - }, - grpc_pb.GetNewDepositSubaddressReply.deserializeBinary - ); - - getNewDepositSubaddress( - request: grpc_pb.GetNewDepositSubaddressRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getNewDepositSubaddress( - request: grpc_pb.GetNewDepositSubaddressRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.GetNewDepositSubaddressReply) => void): grpcWeb.ClientReadableStream; - - getNewDepositSubaddress( - request: grpc_pb.GetNewDepositSubaddressRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.GetNewDepositSubaddressReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetNewDepositSubaddress', - request, - metadata || {}, - this.methodInfoGetNewDepositSubaddress, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetNewDepositSubaddress', - request, - metadata || {}, - this.methodInfoGetNewDepositSubaddress); - } - - methodInfoGetAddressBalance = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/GetAddressBalance', - grpcWeb.MethodType.UNARY, - grpc_pb.GetAddressBalanceRequest, - grpc_pb.GetAddressBalanceReply, - (request: grpc_pb.GetAddressBalanceRequest) => { - return request.serializeBinary(); - }, - grpc_pb.GetAddressBalanceReply.deserializeBinary - ); - - getAddressBalance( - request: grpc_pb.GetAddressBalanceRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getAddressBalance( - request: grpc_pb.GetAddressBalanceRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.GetAddressBalanceReply) => void): grpcWeb.ClientReadableStream; - - getAddressBalance( - request: grpc_pb.GetAddressBalanceRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.GetAddressBalanceReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetAddressBalance', - request, - metadata || {}, - this.methodInfoGetAddressBalance, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetAddressBalance', - request, - metadata || {}, - this.methodInfoGetAddressBalance); - } - - methodInfoSendBtc = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/SendBtc', - grpcWeb.MethodType.UNARY, - grpc_pb.SendBtcRequest, - grpc_pb.SendBtcReply, - (request: grpc_pb.SendBtcRequest) => { - return request.serializeBinary(); - }, - grpc_pb.SendBtcReply.deserializeBinary - ); - - sendBtc( - request: grpc_pb.SendBtcRequest, - metadata: grpcWeb.Metadata | null): Promise; - - sendBtc( - request: grpc_pb.SendBtcRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.SendBtcReply) => void): grpcWeb.ClientReadableStream; - - sendBtc( - request: grpc_pb.SendBtcRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.SendBtcReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/SendBtc', - request, - metadata || {}, - this.methodInfoSendBtc, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/SendBtc', - request, - metadata || {}, - this.methodInfoSendBtc); - } - - methodInfoGetTxFeeRate = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/GetTxFeeRate', - grpcWeb.MethodType.UNARY, - grpc_pb.GetTxFeeRateRequest, - grpc_pb.GetTxFeeRateReply, - (request: grpc_pb.GetTxFeeRateRequest) => { - return request.serializeBinary(); - }, - grpc_pb.GetTxFeeRateReply.deserializeBinary - ); - - getTxFeeRate( - request: grpc_pb.GetTxFeeRateRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getTxFeeRate( - request: grpc_pb.GetTxFeeRateRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.GetTxFeeRateReply) => void): grpcWeb.ClientReadableStream; - - getTxFeeRate( - request: grpc_pb.GetTxFeeRateRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.GetTxFeeRateReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetTxFeeRate', - request, - metadata || {}, - this.methodInfoGetTxFeeRate, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetTxFeeRate', - request, - metadata || {}, - this.methodInfoGetTxFeeRate); - } - - methodInfoSetTxFeeRatePreference = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/SetTxFeeRatePreference', - grpcWeb.MethodType.UNARY, - grpc_pb.SetTxFeeRatePreferenceRequest, - grpc_pb.SetTxFeeRatePreferenceReply, - (request: grpc_pb.SetTxFeeRatePreferenceRequest) => { - return request.serializeBinary(); - }, - grpc_pb.SetTxFeeRatePreferenceReply.deserializeBinary - ); - - setTxFeeRatePreference( - request: grpc_pb.SetTxFeeRatePreferenceRequest, - metadata: grpcWeb.Metadata | null): Promise; - - setTxFeeRatePreference( - request: grpc_pb.SetTxFeeRatePreferenceRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.SetTxFeeRatePreferenceReply) => void): grpcWeb.ClientReadableStream; - - setTxFeeRatePreference( - request: grpc_pb.SetTxFeeRatePreferenceRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.SetTxFeeRatePreferenceReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/SetTxFeeRatePreference', - request, - metadata || {}, - this.methodInfoSetTxFeeRatePreference, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/SetTxFeeRatePreference', - request, - metadata || {}, - this.methodInfoSetTxFeeRatePreference); - } - - methodInfoUnsetTxFeeRatePreference = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/UnsetTxFeeRatePreference', - grpcWeb.MethodType.UNARY, - grpc_pb.UnsetTxFeeRatePreferenceRequest, - grpc_pb.UnsetTxFeeRatePreferenceReply, - (request: grpc_pb.UnsetTxFeeRatePreferenceRequest) => { - return request.serializeBinary(); - }, - grpc_pb.UnsetTxFeeRatePreferenceReply.deserializeBinary - ); - - unsetTxFeeRatePreference( - request: grpc_pb.UnsetTxFeeRatePreferenceRequest, - metadata: grpcWeb.Metadata | null): Promise; - - unsetTxFeeRatePreference( - request: grpc_pb.UnsetTxFeeRatePreferenceRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.UnsetTxFeeRatePreferenceReply) => void): grpcWeb.ClientReadableStream; - - unsetTxFeeRatePreference( - request: grpc_pb.UnsetTxFeeRatePreferenceRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.UnsetTxFeeRatePreferenceReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/UnsetTxFeeRatePreference', - request, - metadata || {}, - this.methodInfoUnsetTxFeeRatePreference, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/UnsetTxFeeRatePreference', - request, - metadata || {}, - this.methodInfoUnsetTxFeeRatePreference); - } - - methodInfoGetTransaction = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/GetTransaction', - grpcWeb.MethodType.UNARY, - grpc_pb.GetTransactionRequest, - grpc_pb.GetTransactionReply, - (request: grpc_pb.GetTransactionRequest) => { - return request.serializeBinary(); - }, - grpc_pb.GetTransactionReply.deserializeBinary - ); - - getTransaction( - request: grpc_pb.GetTransactionRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getTransaction( - request: grpc_pb.GetTransactionRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.GetTransactionReply) => void): grpcWeb.ClientReadableStream; - - getTransaction( - request: grpc_pb.GetTransactionRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.GetTransactionReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetTransaction', - request, - metadata || {}, - this.methodInfoGetTransaction, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetTransaction', - request, - metadata || {}, - this.methodInfoGetTransaction); - } - - methodInfoGetFundingAddresses = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/GetFundingAddresses', - grpcWeb.MethodType.UNARY, - grpc_pb.GetFundingAddressesRequest, - grpc_pb.GetFundingAddressesReply, - (request: grpc_pb.GetFundingAddressesRequest) => { - return request.serializeBinary(); - }, - grpc_pb.GetFundingAddressesReply.deserializeBinary - ); - - getFundingAddresses( - request: grpc_pb.GetFundingAddressesRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getFundingAddresses( - request: grpc_pb.GetFundingAddressesRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.GetFundingAddressesReply) => void): grpcWeb.ClientReadableStream; - - getFundingAddresses( - request: grpc_pb.GetFundingAddressesRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.GetFundingAddressesReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetFundingAddresses', - request, - metadata || {}, - this.methodInfoGetFundingAddresses, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetFundingAddresses', - request, - metadata || {}, - this.methodInfoGetFundingAddresses); - } - - methodInfoSetWalletPassword = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/SetWalletPassword', - grpcWeb.MethodType.UNARY, - grpc_pb.SetWalletPasswordRequest, - grpc_pb.SetWalletPasswordReply, - (request: grpc_pb.SetWalletPasswordRequest) => { - return request.serializeBinary(); - }, - grpc_pb.SetWalletPasswordReply.deserializeBinary - ); - - setWalletPassword( - request: grpc_pb.SetWalletPasswordRequest, - metadata: grpcWeb.Metadata | null): Promise; - - setWalletPassword( - request: grpc_pb.SetWalletPasswordRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.SetWalletPasswordReply) => void): grpcWeb.ClientReadableStream; - - setWalletPassword( - request: grpc_pb.SetWalletPasswordRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.SetWalletPasswordReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/SetWalletPassword', - request, - metadata || {}, - this.methodInfoSetWalletPassword, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/SetWalletPassword', - request, - metadata || {}, - this.methodInfoSetWalletPassword); - } - - methodInfoRemoveWalletPassword = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/RemoveWalletPassword', - grpcWeb.MethodType.UNARY, - grpc_pb.RemoveWalletPasswordRequest, - grpc_pb.RemoveWalletPasswordReply, - (request: grpc_pb.RemoveWalletPasswordRequest) => { - return request.serializeBinary(); - }, - grpc_pb.RemoveWalletPasswordReply.deserializeBinary - ); - - removeWalletPassword( - request: grpc_pb.RemoveWalletPasswordRequest, - metadata: grpcWeb.Metadata | null): Promise; - - removeWalletPassword( - request: grpc_pb.RemoveWalletPasswordRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.RemoveWalletPasswordReply) => void): grpcWeb.ClientReadableStream; - - removeWalletPassword( - request: grpc_pb.RemoveWalletPasswordRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.RemoveWalletPasswordReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/RemoveWalletPassword', - request, - metadata || {}, - this.methodInfoRemoveWalletPassword, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/RemoveWalletPassword', - request, - metadata || {}, - this.methodInfoRemoveWalletPassword); - } - - methodInfoLockWallet = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/LockWallet', - grpcWeb.MethodType.UNARY, - grpc_pb.LockWalletRequest, - grpc_pb.LockWalletReply, - (request: grpc_pb.LockWalletRequest) => { - return request.serializeBinary(); - }, - grpc_pb.LockWalletReply.deserializeBinary - ); - - lockWallet( - request: grpc_pb.LockWalletRequest, - metadata: grpcWeb.Metadata | null): Promise; - - lockWallet( - request: grpc_pb.LockWalletRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.LockWalletReply) => void): grpcWeb.ClientReadableStream; - - lockWallet( - request: grpc_pb.LockWalletRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.LockWalletReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/LockWallet', - request, - metadata || {}, - this.methodInfoLockWallet, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/LockWallet', - request, - metadata || {}, - this.methodInfoLockWallet); - } - - methodInfoUnlockWallet = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/UnlockWallet', - grpcWeb.MethodType.UNARY, - grpc_pb.UnlockWalletRequest, - grpc_pb.UnlockWalletReply, - (request: grpc_pb.UnlockWalletRequest) => { - return request.serializeBinary(); - }, - grpc_pb.UnlockWalletReply.deserializeBinary - ); - - unlockWallet( - request: grpc_pb.UnlockWalletRequest, - metadata: grpcWeb.Metadata | null): Promise; - - unlockWallet( - request: grpc_pb.UnlockWalletRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.UnlockWalletReply) => void): grpcWeb.ClientReadableStream; - - unlockWallet( - request: grpc_pb.UnlockWalletRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.UnlockWalletReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/UnlockWallet', - request, - metadata || {}, - this.methodInfoUnlockWallet, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.Wallets/UnlockWallet', - request, - metadata || {}, - this.methodInfoUnlockWallet); - } - -} - -export class GetVersionClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string; }; - options_: null | { [index: string]: any; }; - - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options['format'] = 'text'; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodInfoGetVersion = new grpcWeb.MethodDescriptor( - '/io.bisq.protobuffer.GetVersion/GetVersion', - grpcWeb.MethodType.UNARY, - grpc_pb.GetVersionRequest, - grpc_pb.GetVersionReply, - (request: grpc_pb.GetVersionRequest) => { - return request.serializeBinary(); - }, - grpc_pb.GetVersionReply.deserializeBinary - ); - - getVersion( - request: grpc_pb.GetVersionRequest, - metadata: grpcWeb.Metadata | null): Promise; - - getVersion( - request: grpc_pb.GetVersionRequest, - metadata: grpcWeb.Metadata | null, - callback: (err: grpcWeb.RpcError, - response: grpc_pb.GetVersionReply) => void): grpcWeb.ClientReadableStream; - - getVersion( - request: grpc_pb.GetVersionRequest, - metadata: grpcWeb.Metadata | null, - callback?: (err: grpcWeb.RpcError, - response: grpc_pb.GetVersionReply) => void) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - '/io.bisq.protobuffer.GetVersion/GetVersion', - request, - metadata || {}, - this.methodInfoGetVersion, - callback); - } - return this.client_.unaryCall( - this.hostname_ + - '/io.bisq.protobuffer.GetVersion/GetVersion', - request, - metadata || {}, - this.methodInfoGetVersion); - } - -} - diff --git a/src/protobuf/grpc_pb.d.ts b/src/protobuf/grpc_pb.d.ts deleted file mode 100644 index 31b3cc95..00000000 --- a/src/protobuf/grpc_pb.d.ts +++ /dev/null @@ -1,1971 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as pb_pb from './pb_pb'; - - -export class RegisterDisputeAgentRequest extends jspb.Message { - getDisputeAgentType(): string; - setDisputeAgentType(value: string): RegisterDisputeAgentRequest; - - getRegistrationKey(): string; - setRegistrationKey(value: string): RegisterDisputeAgentRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RegisterDisputeAgentRequest.AsObject; - static toObject(includeInstance: boolean, msg: RegisterDisputeAgentRequest): RegisterDisputeAgentRequest.AsObject; - static serializeBinaryToWriter(message: RegisterDisputeAgentRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RegisterDisputeAgentRequest; - static deserializeBinaryFromReader(message: RegisterDisputeAgentRequest, reader: jspb.BinaryReader): RegisterDisputeAgentRequest; -} - -export namespace RegisterDisputeAgentRequest { - export type AsObject = { - disputeAgentType: string, - registrationKey: string, - } -} - -export class RegisterDisputeAgentReply extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RegisterDisputeAgentReply.AsObject; - static toObject(includeInstance: boolean, msg: RegisterDisputeAgentReply): RegisterDisputeAgentReply.AsObject; - static serializeBinaryToWriter(message: RegisterDisputeAgentReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RegisterDisputeAgentReply; - static deserializeBinaryFromReader(message: RegisterDisputeAgentReply, reader: jspb.BinaryReader): RegisterDisputeAgentReply; -} - -export namespace RegisterDisputeAgentReply { - export type AsObject = { - } -} - -export class GetMethodHelpRequest extends jspb.Message { - getMethodName(): string; - setMethodName(value: string): GetMethodHelpRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetMethodHelpRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetMethodHelpRequest): GetMethodHelpRequest.AsObject; - static serializeBinaryToWriter(message: GetMethodHelpRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetMethodHelpRequest; - static deserializeBinaryFromReader(message: GetMethodHelpRequest, reader: jspb.BinaryReader): GetMethodHelpRequest; -} - -export namespace GetMethodHelpRequest { - export type AsObject = { - methodName: string, - } -} - -export class GetMethodHelpReply extends jspb.Message { - getMethodHelp(): string; - setMethodHelp(value: string): GetMethodHelpReply; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetMethodHelpReply.AsObject; - static toObject(includeInstance: boolean, msg: GetMethodHelpReply): GetMethodHelpReply.AsObject; - static serializeBinaryToWriter(message: GetMethodHelpReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetMethodHelpReply; - static deserializeBinaryFromReader(message: GetMethodHelpReply, reader: jspb.BinaryReader): GetMethodHelpReply; -} - -export namespace GetMethodHelpReply { - export type AsObject = { - methodHelp: string, - } -} - -export class GetOfferRequest extends jspb.Message { - getId(): string; - setId(value: string): GetOfferRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetOfferRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetOfferRequest): GetOfferRequest.AsObject; - static serializeBinaryToWriter(message: GetOfferRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetOfferRequest; - static deserializeBinaryFromReader(message: GetOfferRequest, reader: jspb.BinaryReader): GetOfferRequest; -} - -export namespace GetOfferRequest { - export type AsObject = { - id: string, - } -} - -export class GetOfferReply extends jspb.Message { - getOffer(): OfferInfo | undefined; - setOffer(value?: OfferInfo): GetOfferReply; - hasOffer(): boolean; - clearOffer(): GetOfferReply; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetOfferReply.AsObject; - static toObject(includeInstance: boolean, msg: GetOfferReply): GetOfferReply.AsObject; - static serializeBinaryToWriter(message: GetOfferReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetOfferReply; - static deserializeBinaryFromReader(message: GetOfferReply, reader: jspb.BinaryReader): GetOfferReply; -} - -export namespace GetOfferReply { - export type AsObject = { - offer?: OfferInfo.AsObject, - } -} - -export class GetMyOfferRequest extends jspb.Message { - getId(): string; - setId(value: string): GetMyOfferRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetMyOfferRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetMyOfferRequest): GetMyOfferRequest.AsObject; - static serializeBinaryToWriter(message: GetMyOfferRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetMyOfferRequest; - static deserializeBinaryFromReader(message: GetMyOfferRequest, reader: jspb.BinaryReader): GetMyOfferRequest; -} - -export namespace GetMyOfferRequest { - export type AsObject = { - id: string, - } -} - -export class GetMyOfferReply extends jspb.Message { - getOffer(): OfferInfo | undefined; - setOffer(value?: OfferInfo): GetMyOfferReply; - hasOffer(): boolean; - clearOffer(): GetMyOfferReply; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetMyOfferReply.AsObject; - static toObject(includeInstance: boolean, msg: GetMyOfferReply): GetMyOfferReply.AsObject; - static serializeBinaryToWriter(message: GetMyOfferReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetMyOfferReply; - static deserializeBinaryFromReader(message: GetMyOfferReply, reader: jspb.BinaryReader): GetMyOfferReply; -} - -export namespace GetMyOfferReply { - export type AsObject = { - offer?: OfferInfo.AsObject, - } -} - -export class GetOffersRequest extends jspb.Message { - getDirection(): string; - setDirection(value: string): GetOffersRequest; - - getCurrencyCode(): string; - setCurrencyCode(value: string): GetOffersRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetOffersRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetOffersRequest): GetOffersRequest.AsObject; - static serializeBinaryToWriter(message: GetOffersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetOffersRequest; - static deserializeBinaryFromReader(message: GetOffersRequest, reader: jspb.BinaryReader): GetOffersRequest; -} - -export namespace GetOffersRequest { - export type AsObject = { - direction: string, - currencyCode: string, - } -} - -export class GetOffersReply extends jspb.Message { - getOffersList(): Array; - setOffersList(value: Array): GetOffersReply; - clearOffersList(): GetOffersReply; - addOffers(value?: OfferInfo, index?: number): OfferInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetOffersReply.AsObject; - static toObject(includeInstance: boolean, msg: GetOffersReply): GetOffersReply.AsObject; - static serializeBinaryToWriter(message: GetOffersReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetOffersReply; - static deserializeBinaryFromReader(message: GetOffersReply, reader: jspb.BinaryReader): GetOffersReply; -} - -export namespace GetOffersReply { - export type AsObject = { - offersList: Array, - } -} - -export class GetMyOffersRequest extends jspb.Message { - getDirection(): string; - setDirection(value: string): GetMyOffersRequest; - - getCurrencyCode(): string; - setCurrencyCode(value: string): GetMyOffersRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetMyOffersRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetMyOffersRequest): GetMyOffersRequest.AsObject; - static serializeBinaryToWriter(message: GetMyOffersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetMyOffersRequest; - static deserializeBinaryFromReader(message: GetMyOffersRequest, reader: jspb.BinaryReader): GetMyOffersRequest; -} - -export namespace GetMyOffersRequest { - export type AsObject = { - direction: string, - currencyCode: string, - } -} - -export class GetMyOffersReply extends jspb.Message { - getOffersList(): Array; - setOffersList(value: Array): GetMyOffersReply; - clearOffersList(): GetMyOffersReply; - addOffers(value?: OfferInfo, index?: number): OfferInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetMyOffersReply.AsObject; - static toObject(includeInstance: boolean, msg: GetMyOffersReply): GetMyOffersReply.AsObject; - static serializeBinaryToWriter(message: GetMyOffersReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetMyOffersReply; - static deserializeBinaryFromReader(message: GetMyOffersReply, reader: jspb.BinaryReader): GetMyOffersReply; -} - -export namespace GetMyOffersReply { - export type AsObject = { - offersList: Array, - } -} - -export class CreateOfferRequest extends jspb.Message { - getCurrencyCode(): string; - setCurrencyCode(value: string): CreateOfferRequest; - - getDirection(): string; - setDirection(value: string): CreateOfferRequest; - - getPrice(): string; - setPrice(value: string): CreateOfferRequest; - - getUseMarketBasedPrice(): boolean; - setUseMarketBasedPrice(value: boolean): CreateOfferRequest; - - getMarketPriceMargin(): number; - setMarketPriceMargin(value: number): CreateOfferRequest; - - getAmount(): string; - setAmount(value: string): CreateOfferRequest; - - getMinAmount(): string; - setMinAmount(value: string): CreateOfferRequest; - - getBuyerSecurityDeposit(): number; - setBuyerSecurityDeposit(value: number): CreateOfferRequest; - - getTriggerPrice(): string; - setTriggerPrice(value: string): CreateOfferRequest; - - getPaymentAccountId(): string; - setPaymentAccountId(value: string): CreateOfferRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateOfferRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateOfferRequest): CreateOfferRequest.AsObject; - static serializeBinaryToWriter(message: CreateOfferRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateOfferRequest; - static deserializeBinaryFromReader(message: CreateOfferRequest, reader: jspb.BinaryReader): CreateOfferRequest; -} - -export namespace CreateOfferRequest { - export type AsObject = { - currencyCode: string, - direction: string, - price: string, - useMarketBasedPrice: boolean, - marketPriceMargin: number, - amount: string, - minAmount: string, - buyerSecurityDeposit: number, - triggerPrice: string, - paymentAccountId: string, - } -} - -export class CreateOfferReply extends jspb.Message { - getOffer(): OfferInfo | undefined; - setOffer(value?: OfferInfo): CreateOfferReply; - hasOffer(): boolean; - clearOffer(): CreateOfferReply; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateOfferReply.AsObject; - static toObject(includeInstance: boolean, msg: CreateOfferReply): CreateOfferReply.AsObject; - static serializeBinaryToWriter(message: CreateOfferReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateOfferReply; - static deserializeBinaryFromReader(message: CreateOfferReply, reader: jspb.BinaryReader): CreateOfferReply; -} - -export namespace CreateOfferReply { - export type AsObject = { - offer?: OfferInfo.AsObject, - } -} - -export class CancelOfferRequest extends jspb.Message { - getId(): string; - setId(value: string): CancelOfferRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CancelOfferRequest.AsObject; - static toObject(includeInstance: boolean, msg: CancelOfferRequest): CancelOfferRequest.AsObject; - static serializeBinaryToWriter(message: CancelOfferRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CancelOfferRequest; - static deserializeBinaryFromReader(message: CancelOfferRequest, reader: jspb.BinaryReader): CancelOfferRequest; -} - -export namespace CancelOfferRequest { - export type AsObject = { - id: string, - } -} - -export class CancelOfferReply extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CancelOfferReply.AsObject; - static toObject(includeInstance: boolean, msg: CancelOfferReply): CancelOfferReply.AsObject; - static serializeBinaryToWriter(message: CancelOfferReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CancelOfferReply; - static deserializeBinaryFromReader(message: CancelOfferReply, reader: jspb.BinaryReader): CancelOfferReply; -} - -export namespace CancelOfferReply { - export type AsObject = { - } -} - -export class OfferInfo extends jspb.Message { - getId(): string; - setId(value: string): OfferInfo; - - getDirection(): string; - setDirection(value: string): OfferInfo; - - getPrice(): number; - setPrice(value: number): OfferInfo; - - getUseMarketBasedPrice(): boolean; - setUseMarketBasedPrice(value: boolean): OfferInfo; - - getMarketPriceMargin(): number; - setMarketPriceMargin(value: number): OfferInfo; - - getAmount(): number; - setAmount(value: number): OfferInfo; - - getMinAmount(): number; - setMinAmount(value: number): OfferInfo; - - getVolume(): number; - setVolume(value: number): OfferInfo; - - getMinVolume(): number; - setMinVolume(value: number): OfferInfo; - - getBuyerSecurityDeposit(): number; - setBuyerSecurityDeposit(value: number): OfferInfo; - - getTriggerPrice(): number; - setTriggerPrice(value: number): OfferInfo; - - getPaymentAccountId(): string; - setPaymentAccountId(value: string): OfferInfo; - - getPaymentMethodId(): string; - setPaymentMethodId(value: string): OfferInfo; - - getPaymentMethodShortName(): string; - setPaymentMethodShortName(value: string): OfferInfo; - - getBaseCurrencyCode(): string; - setBaseCurrencyCode(value: string): OfferInfo; - - getCounterCurrencyCode(): string; - setCounterCurrencyCode(value: string): OfferInfo; - - getDate(): number; - setDate(value: number): OfferInfo; - - getState(): string; - setState(value: string): OfferInfo; - - getSellerSecurityDeposit(): number; - setSellerSecurityDeposit(value: number): OfferInfo; - - getOfferFeePaymentTxId(): string; - setOfferFeePaymentTxId(value: string): OfferInfo; - - getTxFee(): number; - setTxFee(value: number): OfferInfo; - - getMakerFee(): number; - setMakerFee(value: number): OfferInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OfferInfo.AsObject; - static toObject(includeInstance: boolean, msg: OfferInfo): OfferInfo.AsObject; - static serializeBinaryToWriter(message: OfferInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OfferInfo; - static deserializeBinaryFromReader(message: OfferInfo, reader: jspb.BinaryReader): OfferInfo; -} - -export namespace OfferInfo { - export type AsObject = { - id: string, - direction: string, - price: number, - useMarketBasedPrice: boolean, - marketPriceMargin: number, - amount: number, - minAmount: number, - volume: number, - minVolume: number, - buyerSecurityDeposit: number, - triggerPrice: number, - paymentAccountId: string, - paymentMethodId: string, - paymentMethodShortName: string, - baseCurrencyCode: string, - counterCurrencyCode: string, - date: number, - state: string, - sellerSecurityDeposit: number, - offerFeePaymentTxId: string, - txFee: number, - makerFee: number, - } -} - -export class AvailabilityResultWithDescription extends jspb.Message { - getAvailabilityResult(): pb_pb.AvailabilityResult; - setAvailabilityResult(value: pb_pb.AvailabilityResult): AvailabilityResultWithDescription; - - getDescription(): string; - setDescription(value: string): AvailabilityResultWithDescription; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AvailabilityResultWithDescription.AsObject; - static toObject(includeInstance: boolean, msg: AvailabilityResultWithDescription): AvailabilityResultWithDescription.AsObject; - static serializeBinaryToWriter(message: AvailabilityResultWithDescription, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AvailabilityResultWithDescription; - static deserializeBinaryFromReader(message: AvailabilityResultWithDescription, reader: jspb.BinaryReader): AvailabilityResultWithDescription; -} - -export namespace AvailabilityResultWithDescription { - export type AsObject = { - availabilityResult: pb_pb.AvailabilityResult, - description: string, - } -} - -export class CreatePaymentAccountRequest extends jspb.Message { - getPaymentAccountForm(): string; - setPaymentAccountForm(value: string): CreatePaymentAccountRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreatePaymentAccountRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreatePaymentAccountRequest): CreatePaymentAccountRequest.AsObject; - static serializeBinaryToWriter(message: CreatePaymentAccountRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreatePaymentAccountRequest; - static deserializeBinaryFromReader(message: CreatePaymentAccountRequest, reader: jspb.BinaryReader): CreatePaymentAccountRequest; -} - -export namespace CreatePaymentAccountRequest { - export type AsObject = { - paymentAccountForm: string, - } -} - -export class CreatePaymentAccountReply extends jspb.Message { - getPaymentAccount(): pb_pb.PaymentAccount | undefined; - setPaymentAccount(value?: pb_pb.PaymentAccount): CreatePaymentAccountReply; - hasPaymentAccount(): boolean; - clearPaymentAccount(): CreatePaymentAccountReply; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreatePaymentAccountReply.AsObject; - static toObject(includeInstance: boolean, msg: CreatePaymentAccountReply): CreatePaymentAccountReply.AsObject; - static serializeBinaryToWriter(message: CreatePaymentAccountReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreatePaymentAccountReply; - static deserializeBinaryFromReader(message: CreatePaymentAccountReply, reader: jspb.BinaryReader): CreatePaymentAccountReply; -} - -export namespace CreatePaymentAccountReply { - export type AsObject = { - paymentAccount?: pb_pb.PaymentAccount.AsObject, - } -} - -export class GetPaymentAccountsRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetPaymentAccountsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetPaymentAccountsRequest): GetPaymentAccountsRequest.AsObject; - static serializeBinaryToWriter(message: GetPaymentAccountsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetPaymentAccountsRequest; - static deserializeBinaryFromReader(message: GetPaymentAccountsRequest, reader: jspb.BinaryReader): GetPaymentAccountsRequest; -} - -export namespace GetPaymentAccountsRequest { - export type AsObject = { - } -} - -export class GetPaymentAccountsReply extends jspb.Message { - getPaymentAccountsList(): Array; - setPaymentAccountsList(value: Array): GetPaymentAccountsReply; - clearPaymentAccountsList(): GetPaymentAccountsReply; - addPaymentAccounts(value?: pb_pb.PaymentAccount, index?: number): pb_pb.PaymentAccount; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetPaymentAccountsReply.AsObject; - static toObject(includeInstance: boolean, msg: GetPaymentAccountsReply): GetPaymentAccountsReply.AsObject; - static serializeBinaryToWriter(message: GetPaymentAccountsReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetPaymentAccountsReply; - static deserializeBinaryFromReader(message: GetPaymentAccountsReply, reader: jspb.BinaryReader): GetPaymentAccountsReply; -} - -export namespace GetPaymentAccountsReply { - export type AsObject = { - paymentAccountsList: Array, - } -} - -export class GetPaymentMethodsRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetPaymentMethodsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetPaymentMethodsRequest): GetPaymentMethodsRequest.AsObject; - static serializeBinaryToWriter(message: GetPaymentMethodsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetPaymentMethodsRequest; - static deserializeBinaryFromReader(message: GetPaymentMethodsRequest, reader: jspb.BinaryReader): GetPaymentMethodsRequest; -} - -export namespace GetPaymentMethodsRequest { - export type AsObject = { - } -} - -export class GetPaymentMethodsReply extends jspb.Message { - getPaymentMethodsList(): Array; - setPaymentMethodsList(value: Array): GetPaymentMethodsReply; - clearPaymentMethodsList(): GetPaymentMethodsReply; - addPaymentMethods(value?: pb_pb.PaymentMethod, index?: number): pb_pb.PaymentMethod; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetPaymentMethodsReply.AsObject; - static toObject(includeInstance: boolean, msg: GetPaymentMethodsReply): GetPaymentMethodsReply.AsObject; - static serializeBinaryToWriter(message: GetPaymentMethodsReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetPaymentMethodsReply; - static deserializeBinaryFromReader(message: GetPaymentMethodsReply, reader: jspb.BinaryReader): GetPaymentMethodsReply; -} - -export namespace GetPaymentMethodsReply { - export type AsObject = { - paymentMethodsList: Array, - } -} - -export class GetPaymentAccountFormRequest extends jspb.Message { - getPaymentMethodId(): string; - setPaymentMethodId(value: string): GetPaymentAccountFormRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetPaymentAccountFormRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetPaymentAccountFormRequest): GetPaymentAccountFormRequest.AsObject; - static serializeBinaryToWriter(message: GetPaymentAccountFormRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetPaymentAccountFormRequest; - static deserializeBinaryFromReader(message: GetPaymentAccountFormRequest, reader: jspb.BinaryReader): GetPaymentAccountFormRequest; -} - -export namespace GetPaymentAccountFormRequest { - export type AsObject = { - paymentMethodId: string, - } -} - -export class GetPaymentAccountFormReply extends jspb.Message { - getPaymentAccountFormJson(): string; - setPaymentAccountFormJson(value: string): GetPaymentAccountFormReply; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetPaymentAccountFormReply.AsObject; - static toObject(includeInstance: boolean, msg: GetPaymentAccountFormReply): GetPaymentAccountFormReply.AsObject; - static serializeBinaryToWriter(message: GetPaymentAccountFormReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetPaymentAccountFormReply; - static deserializeBinaryFromReader(message: GetPaymentAccountFormReply, reader: jspb.BinaryReader): GetPaymentAccountFormReply; -} - -export namespace GetPaymentAccountFormReply { - export type AsObject = { - paymentAccountFormJson: string, - } -} - -export class CreateCryptoCurrencyPaymentAccountRequest extends jspb.Message { - getAccountName(): string; - setAccountName(value: string): CreateCryptoCurrencyPaymentAccountRequest; - - getCurrencyCode(): string; - setCurrencyCode(value: string): CreateCryptoCurrencyPaymentAccountRequest; - - getAddress(): string; - setAddress(value: string): CreateCryptoCurrencyPaymentAccountRequest; - - getTradeInstant(): boolean; - setTradeInstant(value: boolean): CreateCryptoCurrencyPaymentAccountRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateCryptoCurrencyPaymentAccountRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateCryptoCurrencyPaymentAccountRequest): CreateCryptoCurrencyPaymentAccountRequest.AsObject; - static serializeBinaryToWriter(message: CreateCryptoCurrencyPaymentAccountRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateCryptoCurrencyPaymentAccountRequest; - static deserializeBinaryFromReader(message: CreateCryptoCurrencyPaymentAccountRequest, reader: jspb.BinaryReader): CreateCryptoCurrencyPaymentAccountRequest; -} - -export namespace CreateCryptoCurrencyPaymentAccountRequest { - export type AsObject = { - accountName: string, - currencyCode: string, - address: string, - tradeInstant: boolean, - } -} - -export class CreateCryptoCurrencyPaymentAccountReply extends jspb.Message { - getPaymentAccount(): pb_pb.PaymentAccount | undefined; - setPaymentAccount(value?: pb_pb.PaymentAccount): CreateCryptoCurrencyPaymentAccountReply; - hasPaymentAccount(): boolean; - clearPaymentAccount(): CreateCryptoCurrencyPaymentAccountReply; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateCryptoCurrencyPaymentAccountReply.AsObject; - static toObject(includeInstance: boolean, msg: CreateCryptoCurrencyPaymentAccountReply): CreateCryptoCurrencyPaymentAccountReply.AsObject; - static serializeBinaryToWriter(message: CreateCryptoCurrencyPaymentAccountReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateCryptoCurrencyPaymentAccountReply; - static deserializeBinaryFromReader(message: CreateCryptoCurrencyPaymentAccountReply, reader: jspb.BinaryReader): CreateCryptoCurrencyPaymentAccountReply; -} - -export namespace CreateCryptoCurrencyPaymentAccountReply { - export type AsObject = { - paymentAccount?: pb_pb.PaymentAccount.AsObject, - } -} - -export class GetCryptoCurrencyPaymentMethodsRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetCryptoCurrencyPaymentMethodsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetCryptoCurrencyPaymentMethodsRequest): GetCryptoCurrencyPaymentMethodsRequest.AsObject; - static serializeBinaryToWriter(message: GetCryptoCurrencyPaymentMethodsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetCryptoCurrencyPaymentMethodsRequest; - static deserializeBinaryFromReader(message: GetCryptoCurrencyPaymentMethodsRequest, reader: jspb.BinaryReader): GetCryptoCurrencyPaymentMethodsRequest; -} - -export namespace GetCryptoCurrencyPaymentMethodsRequest { - export type AsObject = { - } -} - -export class GetCryptoCurrencyPaymentMethodsReply extends jspb.Message { - getPaymentMethodsList(): Array; - setPaymentMethodsList(value: Array): GetCryptoCurrencyPaymentMethodsReply; - clearPaymentMethodsList(): GetCryptoCurrencyPaymentMethodsReply; - addPaymentMethods(value?: pb_pb.PaymentMethod, index?: number): pb_pb.PaymentMethod; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetCryptoCurrencyPaymentMethodsReply.AsObject; - static toObject(includeInstance: boolean, msg: GetCryptoCurrencyPaymentMethodsReply): GetCryptoCurrencyPaymentMethodsReply.AsObject; - static serializeBinaryToWriter(message: GetCryptoCurrencyPaymentMethodsReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetCryptoCurrencyPaymentMethodsReply; - static deserializeBinaryFromReader(message: GetCryptoCurrencyPaymentMethodsReply, reader: jspb.BinaryReader): GetCryptoCurrencyPaymentMethodsReply; -} - -export namespace GetCryptoCurrencyPaymentMethodsReply { - export type AsObject = { - paymentMethodsList: Array, - } -} - -export class MarketPriceRequest extends jspb.Message { - getCurrencyCode(): string; - setCurrencyCode(value: string): MarketPriceRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketPriceRequest.AsObject; - static toObject(includeInstance: boolean, msg: MarketPriceRequest): MarketPriceRequest.AsObject; - static serializeBinaryToWriter(message: MarketPriceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketPriceRequest; - static deserializeBinaryFromReader(message: MarketPriceRequest, reader: jspb.BinaryReader): MarketPriceRequest; -} - -export namespace MarketPriceRequest { - export type AsObject = { - currencyCode: string, - } -} - -export class MarketPriceReply extends jspb.Message { - getPrice(): number; - setPrice(value: number): MarketPriceReply; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketPriceReply.AsObject; - static toObject(includeInstance: boolean, msg: MarketPriceReply): MarketPriceReply.AsObject; - static serializeBinaryToWriter(message: MarketPriceReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketPriceReply; - static deserializeBinaryFromReader(message: MarketPriceReply, reader: jspb.BinaryReader): MarketPriceReply; -} - -export namespace MarketPriceReply { - export type AsObject = { - price: number, - } -} - -export class MarketPricesRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketPricesRequest.AsObject; - static toObject(includeInstance: boolean, msg: MarketPricesRequest): MarketPricesRequest.AsObject; - static serializeBinaryToWriter(message: MarketPricesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketPricesRequest; - static deserializeBinaryFromReader(message: MarketPricesRequest, reader: jspb.BinaryReader): MarketPricesRequest; -} - -export namespace MarketPricesRequest { - export type AsObject = { - } -} - -export class MarketPricesReply extends jspb.Message { - getMarketPriceList(): Array; - setMarketPriceList(value: Array): MarketPricesReply; - clearMarketPriceList(): MarketPricesReply; - addMarketPrice(value?: MarketPriceInfo, index?: number): MarketPriceInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketPricesReply.AsObject; - static toObject(includeInstance: boolean, msg: MarketPricesReply): MarketPricesReply.AsObject; - static serializeBinaryToWriter(message: MarketPricesReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketPricesReply; - static deserializeBinaryFromReader(message: MarketPricesReply, reader: jspb.BinaryReader): MarketPricesReply; -} - -export namespace MarketPricesReply { - export type AsObject = { - marketPriceList: Array, - } -} - -export class MarketPriceInfo extends jspb.Message { - getCurrencyCode(): string; - setCurrencyCode(value: string): MarketPriceInfo; - - getPrice(): number; - setPrice(value: number): MarketPriceInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketPriceInfo.AsObject; - static toObject(includeInstance: boolean, msg: MarketPriceInfo): MarketPriceInfo.AsObject; - static serializeBinaryToWriter(message: MarketPriceInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketPriceInfo; - static deserializeBinaryFromReader(message: MarketPriceInfo, reader: jspb.BinaryReader): MarketPriceInfo; -} - -export namespace MarketPriceInfo { - export type AsObject = { - currencyCode: string, - price: number, - } -} - -export class GetTradeStatisticsRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetTradeStatisticsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetTradeStatisticsRequest): GetTradeStatisticsRequest.AsObject; - static serializeBinaryToWriter(message: GetTradeStatisticsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetTradeStatisticsRequest; - static deserializeBinaryFromReader(message: GetTradeStatisticsRequest, reader: jspb.BinaryReader): GetTradeStatisticsRequest; -} - -export namespace GetTradeStatisticsRequest { - export type AsObject = { - } -} - -export class GetTradeStatisticsReply extends jspb.Message { - getTradeStatisticsList(): Array; - setTradeStatisticsList(value: Array): GetTradeStatisticsReply; - clearTradeStatisticsList(): GetTradeStatisticsReply; - addTradeStatistics(value?: pb_pb.TradeStatistics3, index?: number): pb_pb.TradeStatistics3; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetTradeStatisticsReply.AsObject; - static toObject(includeInstance: boolean, msg: GetTradeStatisticsReply): GetTradeStatisticsReply.AsObject; - static serializeBinaryToWriter(message: GetTradeStatisticsReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetTradeStatisticsReply; - static deserializeBinaryFromReader(message: GetTradeStatisticsReply, reader: jspb.BinaryReader): GetTradeStatisticsReply; -} - -export namespace GetTradeStatisticsReply { - export type AsObject = { - tradeStatisticsList: Array, - } -} - -export class StopRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StopRequest.AsObject; - static toObject(includeInstance: boolean, msg: StopRequest): StopRequest.AsObject; - static serializeBinaryToWriter(message: StopRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StopRequest; - static deserializeBinaryFromReader(message: StopRequest, reader: jspb.BinaryReader): StopRequest; -} - -export namespace StopRequest { - export type AsObject = { - } -} - -export class StopReply extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StopReply.AsObject; - static toObject(includeInstance: boolean, msg: StopReply): StopReply.AsObject; - static serializeBinaryToWriter(message: StopReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StopReply; - static deserializeBinaryFromReader(message: StopReply, reader: jspb.BinaryReader): StopReply; -} - -export namespace StopReply { - export type AsObject = { - } -} - -export class TakeOfferRequest extends jspb.Message { - getOfferId(): string; - setOfferId(value: string): TakeOfferRequest; - - getPaymentAccountId(): string; - setPaymentAccountId(value: string): TakeOfferRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TakeOfferRequest.AsObject; - static toObject(includeInstance: boolean, msg: TakeOfferRequest): TakeOfferRequest.AsObject; - static serializeBinaryToWriter(message: TakeOfferRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TakeOfferRequest; - static deserializeBinaryFromReader(message: TakeOfferRequest, reader: jspb.BinaryReader): TakeOfferRequest; -} - -export namespace TakeOfferRequest { - export type AsObject = { - offerId: string, - paymentAccountId: string, - } -} - -export class TakeOfferReply extends jspb.Message { - getTrade(): TradeInfo | undefined; - setTrade(value?: TradeInfo): TakeOfferReply; - hasTrade(): boolean; - clearTrade(): TakeOfferReply; - - getFailureReason(): AvailabilityResultWithDescription | undefined; - setFailureReason(value?: AvailabilityResultWithDescription): TakeOfferReply; - hasFailureReason(): boolean; - clearFailureReason(): TakeOfferReply; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TakeOfferReply.AsObject; - static toObject(includeInstance: boolean, msg: TakeOfferReply): TakeOfferReply.AsObject; - static serializeBinaryToWriter(message: TakeOfferReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TakeOfferReply; - static deserializeBinaryFromReader(message: TakeOfferReply, reader: jspb.BinaryReader): TakeOfferReply; -} - -export namespace TakeOfferReply { - export type AsObject = { - trade?: TradeInfo.AsObject, - failureReason?: AvailabilityResultWithDescription.AsObject, - } -} - -export class ConfirmPaymentStartedRequest extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): ConfirmPaymentStartedRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConfirmPaymentStartedRequest.AsObject; - static toObject(includeInstance: boolean, msg: ConfirmPaymentStartedRequest): ConfirmPaymentStartedRequest.AsObject; - static serializeBinaryToWriter(message: ConfirmPaymentStartedRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConfirmPaymentStartedRequest; - static deserializeBinaryFromReader(message: ConfirmPaymentStartedRequest, reader: jspb.BinaryReader): ConfirmPaymentStartedRequest; -} - -export namespace ConfirmPaymentStartedRequest { - export type AsObject = { - tradeId: string, - } -} - -export class ConfirmPaymentStartedReply extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConfirmPaymentStartedReply.AsObject; - static toObject(includeInstance: boolean, msg: ConfirmPaymentStartedReply): ConfirmPaymentStartedReply.AsObject; - static serializeBinaryToWriter(message: ConfirmPaymentStartedReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConfirmPaymentStartedReply; - static deserializeBinaryFromReader(message: ConfirmPaymentStartedReply, reader: jspb.BinaryReader): ConfirmPaymentStartedReply; -} - -export namespace ConfirmPaymentStartedReply { - export type AsObject = { - } -} - -export class ConfirmPaymentReceivedRequest extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): ConfirmPaymentReceivedRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConfirmPaymentReceivedRequest.AsObject; - static toObject(includeInstance: boolean, msg: ConfirmPaymentReceivedRequest): ConfirmPaymentReceivedRequest.AsObject; - static serializeBinaryToWriter(message: ConfirmPaymentReceivedRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConfirmPaymentReceivedRequest; - static deserializeBinaryFromReader(message: ConfirmPaymentReceivedRequest, reader: jspb.BinaryReader): ConfirmPaymentReceivedRequest; -} - -export namespace ConfirmPaymentReceivedRequest { - export type AsObject = { - tradeId: string, - } -} - -export class ConfirmPaymentReceivedReply extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConfirmPaymentReceivedReply.AsObject; - static toObject(includeInstance: boolean, msg: ConfirmPaymentReceivedReply): ConfirmPaymentReceivedReply.AsObject; - static serializeBinaryToWriter(message: ConfirmPaymentReceivedReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConfirmPaymentReceivedReply; - static deserializeBinaryFromReader(message: ConfirmPaymentReceivedReply, reader: jspb.BinaryReader): ConfirmPaymentReceivedReply; -} - -export namespace ConfirmPaymentReceivedReply { - export type AsObject = { - } -} - -export class GetTradeRequest extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): GetTradeRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetTradeRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetTradeRequest): GetTradeRequest.AsObject; - static serializeBinaryToWriter(message: GetTradeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetTradeRequest; - static deserializeBinaryFromReader(message: GetTradeRequest, reader: jspb.BinaryReader): GetTradeRequest; -} - -export namespace GetTradeRequest { - export type AsObject = { - tradeId: string, - } -} - -export class GetTradeReply extends jspb.Message { - getTrade(): TradeInfo | undefined; - setTrade(value?: TradeInfo): GetTradeReply; - hasTrade(): boolean; - clearTrade(): GetTradeReply; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetTradeReply.AsObject; - static toObject(includeInstance: boolean, msg: GetTradeReply): GetTradeReply.AsObject; - static serializeBinaryToWriter(message: GetTradeReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetTradeReply; - static deserializeBinaryFromReader(message: GetTradeReply, reader: jspb.BinaryReader): GetTradeReply; -} - -export namespace GetTradeReply { - export type AsObject = { - trade?: TradeInfo.AsObject, - } -} - -export class KeepFundsRequest extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): KeepFundsRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): KeepFundsRequest.AsObject; - static toObject(includeInstance: boolean, msg: KeepFundsRequest): KeepFundsRequest.AsObject; - static serializeBinaryToWriter(message: KeepFundsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): KeepFundsRequest; - static deserializeBinaryFromReader(message: KeepFundsRequest, reader: jspb.BinaryReader): KeepFundsRequest; -} - -export namespace KeepFundsRequest { - export type AsObject = { - tradeId: string, - } -} - -export class KeepFundsReply extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): KeepFundsReply.AsObject; - static toObject(includeInstance: boolean, msg: KeepFundsReply): KeepFundsReply.AsObject; - static serializeBinaryToWriter(message: KeepFundsReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): KeepFundsReply; - static deserializeBinaryFromReader(message: KeepFundsReply, reader: jspb.BinaryReader): KeepFundsReply; -} - -export namespace KeepFundsReply { - export type AsObject = { - } -} - -export class WithdrawFundsRequest extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): WithdrawFundsRequest; - - getAddress(): string; - setAddress(value: string): WithdrawFundsRequest; - - getMemo(): string; - setMemo(value: string): WithdrawFundsRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WithdrawFundsRequest.AsObject; - static toObject(includeInstance: boolean, msg: WithdrawFundsRequest): WithdrawFundsRequest.AsObject; - static serializeBinaryToWriter(message: WithdrawFundsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WithdrawFundsRequest; - static deserializeBinaryFromReader(message: WithdrawFundsRequest, reader: jspb.BinaryReader): WithdrawFundsRequest; -} - -export namespace WithdrawFundsRequest { - export type AsObject = { - tradeId: string, - address: string, - memo: string, - } -} - -export class WithdrawFundsReply extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WithdrawFundsReply.AsObject; - static toObject(includeInstance: boolean, msg: WithdrawFundsReply): WithdrawFundsReply.AsObject; - static serializeBinaryToWriter(message: WithdrawFundsReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WithdrawFundsReply; - static deserializeBinaryFromReader(message: WithdrawFundsReply, reader: jspb.BinaryReader): WithdrawFundsReply; -} - -export namespace WithdrawFundsReply { - export type AsObject = { - } -} - -export class TradeInfo extends jspb.Message { - getOffer(): OfferInfo | undefined; - setOffer(value?: OfferInfo): TradeInfo; - hasOffer(): boolean; - clearOffer(): TradeInfo; - - getTradeId(): string; - setTradeId(value: string): TradeInfo; - - getShortId(): string; - setShortId(value: string): TradeInfo; - - getDate(): number; - setDate(value: number): TradeInfo; - - getRole(): string; - setRole(value: string): TradeInfo; - - getTxFeeAsLong(): number; - setTxFeeAsLong(value: number): TradeInfo; - - getTakerFeeAsLong(): number; - setTakerFeeAsLong(value: number): TradeInfo; - - getTakerFeeTxId(): string; - setTakerFeeTxId(value: string): TradeInfo; - - getPayoutTxId(): string; - setPayoutTxId(value: string): TradeInfo; - - getTradeAmountAsLong(): number; - setTradeAmountAsLong(value: number): TradeInfo; - - getTradePrice(): number; - setTradePrice(value: number): TradeInfo; - - getTradingPeerNodeAddress(): string; - setTradingPeerNodeAddress(value: string): TradeInfo; - - getState(): string; - setState(value: string): TradeInfo; - - getPhase(): string; - setPhase(value: string): TradeInfo; - - getTradePeriodState(): string; - setTradePeriodState(value: string): TradeInfo; - - getIsDepositPublished(): boolean; - setIsDepositPublished(value: boolean): TradeInfo; - - getIsDepositConfirmed(): boolean; - setIsDepositConfirmed(value: boolean): TradeInfo; - - getIsFiatSent(): boolean; - setIsFiatSent(value: boolean): TradeInfo; - - getIsFiatReceived(): boolean; - setIsFiatReceived(value: boolean): TradeInfo; - - getIsPayoutPublished(): boolean; - setIsPayoutPublished(value: boolean): TradeInfo; - - getIsWithdrawn(): boolean; - setIsWithdrawn(value: boolean): TradeInfo; - - getContractAsJson(): string; - setContractAsJson(value: string): TradeInfo; - - getContract(): ContractInfo | undefined; - setContract(value?: ContractInfo): TradeInfo; - hasContract(): boolean; - clearContract(): TradeInfo; - - getMakerDepositTxId(): string; - setMakerDepositTxId(value: string): TradeInfo; - - getTakerDepositTxId(): string; - setTakerDepositTxId(value: string): TradeInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TradeInfo.AsObject; - static toObject(includeInstance: boolean, msg: TradeInfo): TradeInfo.AsObject; - static serializeBinaryToWriter(message: TradeInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TradeInfo; - static deserializeBinaryFromReader(message: TradeInfo, reader: jspb.BinaryReader): TradeInfo; -} - -export namespace TradeInfo { - export type AsObject = { - offer?: OfferInfo.AsObject, - tradeId: string, - shortId: string, - date: number, - role: string, - txFeeAsLong: number, - takerFeeAsLong: number, - takerFeeTxId: string, - payoutTxId: string, - tradeAmountAsLong: number, - tradePrice: number, - tradingPeerNodeAddress: string, - state: string, - phase: string, - tradePeriodState: string, - isDepositPublished: boolean, - isDepositConfirmed: boolean, - isFiatSent: boolean, - isFiatReceived: boolean, - isPayoutPublished: boolean, - isWithdrawn: boolean, - contractAsJson: string, - contract?: ContractInfo.AsObject, - makerDepositTxId: string, - takerDepositTxId: string, - } -} - -export class ContractInfo extends jspb.Message { - getBuyerNodeAddress(): string; - setBuyerNodeAddress(value: string): ContractInfo; - - getSellerNodeAddress(): string; - setSellerNodeAddress(value: string): ContractInfo; - - getIsBuyerMakerAndSellerTaker(): boolean; - setIsBuyerMakerAndSellerTaker(value: boolean): ContractInfo; - - getMakerAccountId(): string; - setMakerAccountId(value: string): ContractInfo; - - getTakerAccountId(): string; - setTakerAccountId(value: string): ContractInfo; - - getMakerPaymentAccountPayload(): PaymentAccountPayloadInfo | undefined; - setMakerPaymentAccountPayload(value?: PaymentAccountPayloadInfo): ContractInfo; - hasMakerPaymentAccountPayload(): boolean; - clearMakerPaymentAccountPayload(): ContractInfo; - - getTakerPaymentAccountPayload(): PaymentAccountPayloadInfo | undefined; - setTakerPaymentAccountPayload(value?: PaymentAccountPayloadInfo): ContractInfo; - hasTakerPaymentAccountPayload(): boolean; - clearTakerPaymentAccountPayload(): ContractInfo; - - getMakerPayoutAddressString(): string; - setMakerPayoutAddressString(value: string): ContractInfo; - - getTakerPayoutAddressString(): string; - setTakerPayoutAddressString(value: string): ContractInfo; - - getLockTime(): number; - setLockTime(value: number): ContractInfo; - - getArbitratorNodeAddress(): string; - setArbitratorNodeAddress(value: string): ContractInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ContractInfo.AsObject; - static toObject(includeInstance: boolean, msg: ContractInfo): ContractInfo.AsObject; - static serializeBinaryToWriter(message: ContractInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ContractInfo; - static deserializeBinaryFromReader(message: ContractInfo, reader: jspb.BinaryReader): ContractInfo; -} - -export namespace ContractInfo { - export type AsObject = { - buyerNodeAddress: string, - sellerNodeAddress: string, - isBuyerMakerAndSellerTaker: boolean, - makerAccountId: string, - takerAccountId: string, - makerPaymentAccountPayload?: PaymentAccountPayloadInfo.AsObject, - takerPaymentAccountPayload?: PaymentAccountPayloadInfo.AsObject, - makerPayoutAddressString: string, - takerPayoutAddressString: string, - lockTime: number, - arbitratorNodeAddress: string, - } -} - -export class PaymentAccountPayloadInfo extends jspb.Message { - getId(): string; - setId(value: string): PaymentAccountPayloadInfo; - - getPaymentMethodId(): string; - setPaymentMethodId(value: string): PaymentAccountPayloadInfo; - - getAddress(): string; - setAddress(value: string): PaymentAccountPayloadInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PaymentAccountPayloadInfo.AsObject; - static toObject(includeInstance: boolean, msg: PaymentAccountPayloadInfo): PaymentAccountPayloadInfo.AsObject; - static serializeBinaryToWriter(message: PaymentAccountPayloadInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PaymentAccountPayloadInfo; - static deserializeBinaryFromReader(message: PaymentAccountPayloadInfo, reader: jspb.BinaryReader): PaymentAccountPayloadInfo; -} - -export namespace PaymentAccountPayloadInfo { - export type AsObject = { - id: string, - paymentMethodId: string, - address: string, - } -} - -export class TxFeeRateInfo extends jspb.Message { - getUseCustomTxFeeRate(): boolean; - setUseCustomTxFeeRate(value: boolean): TxFeeRateInfo; - - getCustomTxFeeRate(): number; - setCustomTxFeeRate(value: number): TxFeeRateInfo; - - getFeeServiceRate(): number; - setFeeServiceRate(value: number): TxFeeRateInfo; - - getLastFeeServiceRequestTs(): number; - setLastFeeServiceRequestTs(value: number): TxFeeRateInfo; - - getMinFeeServiceRate(): number; - setMinFeeServiceRate(value: number): TxFeeRateInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TxFeeRateInfo.AsObject; - static toObject(includeInstance: boolean, msg: TxFeeRateInfo): TxFeeRateInfo.AsObject; - static serializeBinaryToWriter(message: TxFeeRateInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TxFeeRateInfo; - static deserializeBinaryFromReader(message: TxFeeRateInfo, reader: jspb.BinaryReader): TxFeeRateInfo; -} - -export namespace TxFeeRateInfo { - export type AsObject = { - useCustomTxFeeRate: boolean, - customTxFeeRate: number, - feeServiceRate: number, - lastFeeServiceRequestTs: number, - minFeeServiceRate: number, - } -} - -export class TxInfo extends jspb.Message { - getTxId(): string; - setTxId(value: string): TxInfo; - - getInputSum(): number; - setInputSum(value: number): TxInfo; - - getOutputSum(): number; - setOutputSum(value: number): TxInfo; - - getFee(): number; - setFee(value: number): TxInfo; - - getSize(): number; - setSize(value: number): TxInfo; - - getIsPending(): boolean; - setIsPending(value: boolean): TxInfo; - - getMemo(): string; - setMemo(value: string): TxInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TxInfo.AsObject; - static toObject(includeInstance: boolean, msg: TxInfo): TxInfo.AsObject; - static serializeBinaryToWriter(message: TxInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TxInfo; - static deserializeBinaryFromReader(message: TxInfo, reader: jspb.BinaryReader): TxInfo; -} - -export namespace TxInfo { - export type AsObject = { - txId: string, - inputSum: number, - outputSum: number, - fee: number, - size: number, - isPending: boolean, - memo: string, - } -} - -export class GetBalancesRequest extends jspb.Message { - getCurrencyCode(): string; - setCurrencyCode(value: string): GetBalancesRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetBalancesRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetBalancesRequest): GetBalancesRequest.AsObject; - static serializeBinaryToWriter(message: GetBalancesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetBalancesRequest; - static deserializeBinaryFromReader(message: GetBalancesRequest, reader: jspb.BinaryReader): GetBalancesRequest; -} - -export namespace GetBalancesRequest { - export type AsObject = { - currencyCode: string, - } -} - -export class GetBalancesReply extends jspb.Message { - getBalances(): BalancesInfo | undefined; - setBalances(value?: BalancesInfo): GetBalancesReply; - hasBalances(): boolean; - clearBalances(): GetBalancesReply; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetBalancesReply.AsObject; - static toObject(includeInstance: boolean, msg: GetBalancesReply): GetBalancesReply.AsObject; - static serializeBinaryToWriter(message: GetBalancesReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetBalancesReply; - static deserializeBinaryFromReader(message: GetBalancesReply, reader: jspb.BinaryReader): GetBalancesReply; -} - -export namespace GetBalancesReply { - export type AsObject = { - balances?: BalancesInfo.AsObject, - } -} - -export class GetNewDepositSubaddressRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetNewDepositSubaddressRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetNewDepositSubaddressRequest): GetNewDepositSubaddressRequest.AsObject; - static serializeBinaryToWriter(message: GetNewDepositSubaddressRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetNewDepositSubaddressRequest; - static deserializeBinaryFromReader(message: GetNewDepositSubaddressRequest, reader: jspb.BinaryReader): GetNewDepositSubaddressRequest; -} - -export namespace GetNewDepositSubaddressRequest { - export type AsObject = { - } -} - -export class GetNewDepositSubaddressReply extends jspb.Message { - getSubaddress(): string; - setSubaddress(value: string): GetNewDepositSubaddressReply; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetNewDepositSubaddressReply.AsObject; - static toObject(includeInstance: boolean, msg: GetNewDepositSubaddressReply): GetNewDepositSubaddressReply.AsObject; - static serializeBinaryToWriter(message: GetNewDepositSubaddressReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetNewDepositSubaddressReply; - static deserializeBinaryFromReader(message: GetNewDepositSubaddressReply, reader: jspb.BinaryReader): GetNewDepositSubaddressReply; -} - -export namespace GetNewDepositSubaddressReply { - export type AsObject = { - subaddress: string, - } -} - -export class GetAddressBalanceRequest extends jspb.Message { - getAddress(): string; - setAddress(value: string): GetAddressBalanceRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAddressBalanceRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetAddressBalanceRequest): GetAddressBalanceRequest.AsObject; - static serializeBinaryToWriter(message: GetAddressBalanceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAddressBalanceRequest; - static deserializeBinaryFromReader(message: GetAddressBalanceRequest, reader: jspb.BinaryReader): GetAddressBalanceRequest; -} - -export namespace GetAddressBalanceRequest { - export type AsObject = { - address: string, - } -} - -export class GetAddressBalanceReply extends jspb.Message { - getAddressBalanceInfo(): AddressBalanceInfo | undefined; - setAddressBalanceInfo(value?: AddressBalanceInfo): GetAddressBalanceReply; - hasAddressBalanceInfo(): boolean; - clearAddressBalanceInfo(): GetAddressBalanceReply; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAddressBalanceReply.AsObject; - static toObject(includeInstance: boolean, msg: GetAddressBalanceReply): GetAddressBalanceReply.AsObject; - static serializeBinaryToWriter(message: GetAddressBalanceReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAddressBalanceReply; - static deserializeBinaryFromReader(message: GetAddressBalanceReply, reader: jspb.BinaryReader): GetAddressBalanceReply; -} - -export namespace GetAddressBalanceReply { - export type AsObject = { - addressBalanceInfo?: AddressBalanceInfo.AsObject, - } -} - -export class SendBtcRequest extends jspb.Message { - getAddress(): string; - setAddress(value: string): SendBtcRequest; - - getAmount(): string; - setAmount(value: string): SendBtcRequest; - - getTxFeeRate(): string; - setTxFeeRate(value: string): SendBtcRequest; - - getMemo(): string; - setMemo(value: string): SendBtcRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SendBtcRequest.AsObject; - static toObject(includeInstance: boolean, msg: SendBtcRequest): SendBtcRequest.AsObject; - static serializeBinaryToWriter(message: SendBtcRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SendBtcRequest; - static deserializeBinaryFromReader(message: SendBtcRequest, reader: jspb.BinaryReader): SendBtcRequest; -} - -export namespace SendBtcRequest { - export type AsObject = { - address: string, - amount: string, - txFeeRate: string, - memo: string, - } -} - -export class SendBtcReply extends jspb.Message { - getTxInfo(): TxInfo | undefined; - setTxInfo(value?: TxInfo): SendBtcReply; - hasTxInfo(): boolean; - clearTxInfo(): SendBtcReply; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SendBtcReply.AsObject; - static toObject(includeInstance: boolean, msg: SendBtcReply): SendBtcReply.AsObject; - static serializeBinaryToWriter(message: SendBtcReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SendBtcReply; - static deserializeBinaryFromReader(message: SendBtcReply, reader: jspb.BinaryReader): SendBtcReply; -} - -export namespace SendBtcReply { - export type AsObject = { - txInfo?: TxInfo.AsObject, - } -} - -export class GetTxFeeRateRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetTxFeeRateRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetTxFeeRateRequest): GetTxFeeRateRequest.AsObject; - static serializeBinaryToWriter(message: GetTxFeeRateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetTxFeeRateRequest; - static deserializeBinaryFromReader(message: GetTxFeeRateRequest, reader: jspb.BinaryReader): GetTxFeeRateRequest; -} - -export namespace GetTxFeeRateRequest { - export type AsObject = { - } -} - -export class GetTxFeeRateReply extends jspb.Message { - getTxFeeRateInfo(): TxFeeRateInfo | undefined; - setTxFeeRateInfo(value?: TxFeeRateInfo): GetTxFeeRateReply; - hasTxFeeRateInfo(): boolean; - clearTxFeeRateInfo(): GetTxFeeRateReply; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetTxFeeRateReply.AsObject; - static toObject(includeInstance: boolean, msg: GetTxFeeRateReply): GetTxFeeRateReply.AsObject; - static serializeBinaryToWriter(message: GetTxFeeRateReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetTxFeeRateReply; - static deserializeBinaryFromReader(message: GetTxFeeRateReply, reader: jspb.BinaryReader): GetTxFeeRateReply; -} - -export namespace GetTxFeeRateReply { - export type AsObject = { - txFeeRateInfo?: TxFeeRateInfo.AsObject, - } -} - -export class SetTxFeeRatePreferenceRequest extends jspb.Message { - getTxFeeRatePreference(): number; - setTxFeeRatePreference(value: number): SetTxFeeRatePreferenceRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SetTxFeeRatePreferenceRequest.AsObject; - static toObject(includeInstance: boolean, msg: SetTxFeeRatePreferenceRequest): SetTxFeeRatePreferenceRequest.AsObject; - static serializeBinaryToWriter(message: SetTxFeeRatePreferenceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SetTxFeeRatePreferenceRequest; - static deserializeBinaryFromReader(message: SetTxFeeRatePreferenceRequest, reader: jspb.BinaryReader): SetTxFeeRatePreferenceRequest; -} - -export namespace SetTxFeeRatePreferenceRequest { - export type AsObject = { - txFeeRatePreference: number, - } -} - -export class SetTxFeeRatePreferenceReply extends jspb.Message { - getTxFeeRateInfo(): TxFeeRateInfo | undefined; - setTxFeeRateInfo(value?: TxFeeRateInfo): SetTxFeeRatePreferenceReply; - hasTxFeeRateInfo(): boolean; - clearTxFeeRateInfo(): SetTxFeeRatePreferenceReply; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SetTxFeeRatePreferenceReply.AsObject; - static toObject(includeInstance: boolean, msg: SetTxFeeRatePreferenceReply): SetTxFeeRatePreferenceReply.AsObject; - static serializeBinaryToWriter(message: SetTxFeeRatePreferenceReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SetTxFeeRatePreferenceReply; - static deserializeBinaryFromReader(message: SetTxFeeRatePreferenceReply, reader: jspb.BinaryReader): SetTxFeeRatePreferenceReply; -} - -export namespace SetTxFeeRatePreferenceReply { - export type AsObject = { - txFeeRateInfo?: TxFeeRateInfo.AsObject, - } -} - -export class UnsetTxFeeRatePreferenceRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UnsetTxFeeRatePreferenceRequest.AsObject; - static toObject(includeInstance: boolean, msg: UnsetTxFeeRatePreferenceRequest): UnsetTxFeeRatePreferenceRequest.AsObject; - static serializeBinaryToWriter(message: UnsetTxFeeRatePreferenceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UnsetTxFeeRatePreferenceRequest; - static deserializeBinaryFromReader(message: UnsetTxFeeRatePreferenceRequest, reader: jspb.BinaryReader): UnsetTxFeeRatePreferenceRequest; -} - -export namespace UnsetTxFeeRatePreferenceRequest { - export type AsObject = { - } -} - -export class UnsetTxFeeRatePreferenceReply extends jspb.Message { - getTxFeeRateInfo(): TxFeeRateInfo | undefined; - setTxFeeRateInfo(value?: TxFeeRateInfo): UnsetTxFeeRatePreferenceReply; - hasTxFeeRateInfo(): boolean; - clearTxFeeRateInfo(): UnsetTxFeeRatePreferenceReply; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UnsetTxFeeRatePreferenceReply.AsObject; - static toObject(includeInstance: boolean, msg: UnsetTxFeeRatePreferenceReply): UnsetTxFeeRatePreferenceReply.AsObject; - static serializeBinaryToWriter(message: UnsetTxFeeRatePreferenceReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UnsetTxFeeRatePreferenceReply; - static deserializeBinaryFromReader(message: UnsetTxFeeRatePreferenceReply, reader: jspb.BinaryReader): UnsetTxFeeRatePreferenceReply; -} - -export namespace UnsetTxFeeRatePreferenceReply { - export type AsObject = { - txFeeRateInfo?: TxFeeRateInfo.AsObject, - } -} - -export class GetTransactionRequest extends jspb.Message { - getTxId(): string; - setTxId(value: string): GetTransactionRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetTransactionRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetTransactionRequest): GetTransactionRequest.AsObject; - static serializeBinaryToWriter(message: GetTransactionRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetTransactionRequest; - static deserializeBinaryFromReader(message: GetTransactionRequest, reader: jspb.BinaryReader): GetTransactionRequest; -} - -export namespace GetTransactionRequest { - export type AsObject = { - txId: string, - } -} - -export class GetTransactionReply extends jspb.Message { - getTxInfo(): TxInfo | undefined; - setTxInfo(value?: TxInfo): GetTransactionReply; - hasTxInfo(): boolean; - clearTxInfo(): GetTransactionReply; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetTransactionReply.AsObject; - static toObject(includeInstance: boolean, msg: GetTransactionReply): GetTransactionReply.AsObject; - static serializeBinaryToWriter(message: GetTransactionReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetTransactionReply; - static deserializeBinaryFromReader(message: GetTransactionReply, reader: jspb.BinaryReader): GetTransactionReply; -} - -export namespace GetTransactionReply { - export type AsObject = { - txInfo?: TxInfo.AsObject, - } -} - -export class GetFundingAddressesRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetFundingAddressesRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetFundingAddressesRequest): GetFundingAddressesRequest.AsObject; - static serializeBinaryToWriter(message: GetFundingAddressesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetFundingAddressesRequest; - static deserializeBinaryFromReader(message: GetFundingAddressesRequest, reader: jspb.BinaryReader): GetFundingAddressesRequest; -} - -export namespace GetFundingAddressesRequest { - export type AsObject = { - } -} - -export class GetFundingAddressesReply extends jspb.Message { - getAddressBalanceInfoList(): Array; - setAddressBalanceInfoList(value: Array): GetFundingAddressesReply; - clearAddressBalanceInfoList(): GetFundingAddressesReply; - addAddressBalanceInfo(value?: AddressBalanceInfo, index?: number): AddressBalanceInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetFundingAddressesReply.AsObject; - static toObject(includeInstance: boolean, msg: GetFundingAddressesReply): GetFundingAddressesReply.AsObject; - static serializeBinaryToWriter(message: GetFundingAddressesReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetFundingAddressesReply; - static deserializeBinaryFromReader(message: GetFundingAddressesReply, reader: jspb.BinaryReader): GetFundingAddressesReply; -} - -export namespace GetFundingAddressesReply { - export type AsObject = { - addressBalanceInfoList: Array, - } -} - -export class SetWalletPasswordRequest extends jspb.Message { - getPassword(): string; - setPassword(value: string): SetWalletPasswordRequest; - - getNewPassword(): string; - setNewPassword(value: string): SetWalletPasswordRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SetWalletPasswordRequest.AsObject; - static toObject(includeInstance: boolean, msg: SetWalletPasswordRequest): SetWalletPasswordRequest.AsObject; - static serializeBinaryToWriter(message: SetWalletPasswordRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SetWalletPasswordRequest; - static deserializeBinaryFromReader(message: SetWalletPasswordRequest, reader: jspb.BinaryReader): SetWalletPasswordRequest; -} - -export namespace SetWalletPasswordRequest { - export type AsObject = { - password: string, - newPassword: string, - } -} - -export class SetWalletPasswordReply extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SetWalletPasswordReply.AsObject; - static toObject(includeInstance: boolean, msg: SetWalletPasswordReply): SetWalletPasswordReply.AsObject; - static serializeBinaryToWriter(message: SetWalletPasswordReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SetWalletPasswordReply; - static deserializeBinaryFromReader(message: SetWalletPasswordReply, reader: jspb.BinaryReader): SetWalletPasswordReply; -} - -export namespace SetWalletPasswordReply { - export type AsObject = { - } -} - -export class RemoveWalletPasswordRequest extends jspb.Message { - getPassword(): string; - setPassword(value: string): RemoveWalletPasswordRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemoveWalletPasswordRequest.AsObject; - static toObject(includeInstance: boolean, msg: RemoveWalletPasswordRequest): RemoveWalletPasswordRequest.AsObject; - static serializeBinaryToWriter(message: RemoveWalletPasswordRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemoveWalletPasswordRequest; - static deserializeBinaryFromReader(message: RemoveWalletPasswordRequest, reader: jspb.BinaryReader): RemoveWalletPasswordRequest; -} - -export namespace RemoveWalletPasswordRequest { - export type AsObject = { - password: string, - } -} - -export class RemoveWalletPasswordReply extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemoveWalletPasswordReply.AsObject; - static toObject(includeInstance: boolean, msg: RemoveWalletPasswordReply): RemoveWalletPasswordReply.AsObject; - static serializeBinaryToWriter(message: RemoveWalletPasswordReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemoveWalletPasswordReply; - static deserializeBinaryFromReader(message: RemoveWalletPasswordReply, reader: jspb.BinaryReader): RemoveWalletPasswordReply; -} - -export namespace RemoveWalletPasswordReply { - export type AsObject = { - } -} - -export class LockWalletRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LockWalletRequest.AsObject; - static toObject(includeInstance: boolean, msg: LockWalletRequest): LockWalletRequest.AsObject; - static serializeBinaryToWriter(message: LockWalletRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LockWalletRequest; - static deserializeBinaryFromReader(message: LockWalletRequest, reader: jspb.BinaryReader): LockWalletRequest; -} - -export namespace LockWalletRequest { - export type AsObject = { - } -} - -export class LockWalletReply extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LockWalletReply.AsObject; - static toObject(includeInstance: boolean, msg: LockWalletReply): LockWalletReply.AsObject; - static serializeBinaryToWriter(message: LockWalletReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LockWalletReply; - static deserializeBinaryFromReader(message: LockWalletReply, reader: jspb.BinaryReader): LockWalletReply; -} - -export namespace LockWalletReply { - export type AsObject = { - } -} - -export class UnlockWalletRequest extends jspb.Message { - getPassword(): string; - setPassword(value: string): UnlockWalletRequest; - - getTimeout(): number; - setTimeout(value: number): UnlockWalletRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UnlockWalletRequest.AsObject; - static toObject(includeInstance: boolean, msg: UnlockWalletRequest): UnlockWalletRequest.AsObject; - static serializeBinaryToWriter(message: UnlockWalletRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UnlockWalletRequest; - static deserializeBinaryFromReader(message: UnlockWalletRequest, reader: jspb.BinaryReader): UnlockWalletRequest; -} - -export namespace UnlockWalletRequest { - export type AsObject = { - password: string, - timeout: number, - } -} - -export class UnlockWalletReply extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UnlockWalletReply.AsObject; - static toObject(includeInstance: boolean, msg: UnlockWalletReply): UnlockWalletReply.AsObject; - static serializeBinaryToWriter(message: UnlockWalletReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UnlockWalletReply; - static deserializeBinaryFromReader(message: UnlockWalletReply, reader: jspb.BinaryReader): UnlockWalletReply; -} - -export namespace UnlockWalletReply { - export type AsObject = { - } -} - -export class BalancesInfo extends jspb.Message { - getBtc(): BtcBalanceInfo | undefined; - setBtc(value?: BtcBalanceInfo): BalancesInfo; - hasBtc(): boolean; - clearBtc(): BalancesInfo; - - getXmr(): XmrBalanceInfo | undefined; - setXmr(value?: XmrBalanceInfo): BalancesInfo; - hasXmr(): boolean; - clearXmr(): BalancesInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BalancesInfo.AsObject; - static toObject(includeInstance: boolean, msg: BalancesInfo): BalancesInfo.AsObject; - static serializeBinaryToWriter(message: BalancesInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BalancesInfo; - static deserializeBinaryFromReader(message: BalancesInfo, reader: jspb.BinaryReader): BalancesInfo; -} - -export namespace BalancesInfo { - export type AsObject = { - btc?: BtcBalanceInfo.AsObject, - xmr?: XmrBalanceInfo.AsObject, - } -} - -export class BtcBalanceInfo extends jspb.Message { - getAvailableBalance(): number; - setAvailableBalance(value: number): BtcBalanceInfo; - - getReservedBalance(): number; - setReservedBalance(value: number): BtcBalanceInfo; - - getTotalAvailableBalance(): number; - setTotalAvailableBalance(value: number): BtcBalanceInfo; - - getLockedBalance(): number; - setLockedBalance(value: number): BtcBalanceInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BtcBalanceInfo.AsObject; - static toObject(includeInstance: boolean, msg: BtcBalanceInfo): BtcBalanceInfo.AsObject; - static serializeBinaryToWriter(message: BtcBalanceInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BtcBalanceInfo; - static deserializeBinaryFromReader(message: BtcBalanceInfo, reader: jspb.BinaryReader): BtcBalanceInfo; -} - -export namespace BtcBalanceInfo { - export type AsObject = { - availableBalance: number, - reservedBalance: number, - totalAvailableBalance: number, - lockedBalance: number, - } -} - -export class XmrBalanceInfo extends jspb.Message { - getBalance(): string; - setBalance(value: string): XmrBalanceInfo; - - getUnlockedBalance(): string; - setUnlockedBalance(value: string): XmrBalanceInfo; - - getLockedBalance(): string; - setLockedBalance(value: string): XmrBalanceInfo; - - getReservedOfferBalance(): string; - setReservedOfferBalance(value: string): XmrBalanceInfo; - - getReservedTradeBalance(): string; - setReservedTradeBalance(value: string): XmrBalanceInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): XmrBalanceInfo.AsObject; - static toObject(includeInstance: boolean, msg: XmrBalanceInfo): XmrBalanceInfo.AsObject; - static serializeBinaryToWriter(message: XmrBalanceInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): XmrBalanceInfo; - static deserializeBinaryFromReader(message: XmrBalanceInfo, reader: jspb.BinaryReader): XmrBalanceInfo; -} - -export namespace XmrBalanceInfo { - export type AsObject = { - balance: string, - unlockedBalance: string, - lockedBalance: string, - reservedOfferBalance: string, - reservedTradeBalance: string, - } -} - -export class AddressBalanceInfo extends jspb.Message { - getAddress(): string; - setAddress(value: string): AddressBalanceInfo; - - getBalance(): number; - setBalance(value: number): AddressBalanceInfo; - - getNumConfirmations(): number; - setNumConfirmations(value: number): AddressBalanceInfo; - - getIsAddressUnused(): boolean; - setIsAddressUnused(value: boolean): AddressBalanceInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AddressBalanceInfo.AsObject; - static toObject(includeInstance: boolean, msg: AddressBalanceInfo): AddressBalanceInfo.AsObject; - static serializeBinaryToWriter(message: AddressBalanceInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AddressBalanceInfo; - static deserializeBinaryFromReader(message: AddressBalanceInfo, reader: jspb.BinaryReader): AddressBalanceInfo; -} - -export namespace AddressBalanceInfo { - export type AsObject = { - address: string, - balance: number, - numConfirmations: number, - isAddressUnused: boolean, - } -} - -export class GetVersionRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetVersionRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetVersionRequest): GetVersionRequest.AsObject; - static serializeBinaryToWriter(message: GetVersionRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetVersionRequest; - static deserializeBinaryFromReader(message: GetVersionRequest, reader: jspb.BinaryReader): GetVersionRequest; -} - -export namespace GetVersionRequest { - export type AsObject = { - } -} - -export class GetVersionReply extends jspb.Message { - getVersion(): string; - setVersion(value: string): GetVersionReply; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetVersionReply.AsObject; - static toObject(includeInstance: boolean, msg: GetVersionReply): GetVersionReply.AsObject; - static serializeBinaryToWriter(message: GetVersionReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetVersionReply; - static deserializeBinaryFromReader(message: GetVersionReply, reader: jspb.BinaryReader): GetVersionReply; -} - -export namespace GetVersionReply { - export type AsObject = { - version: string, - } -} - diff --git a/src/protobuf/grpc_pb.js b/src/protobuf/grpc_pb.js deleted file mode 100644 index 097fbc76..00000000 --- a/src/protobuf/grpc_pb.js +++ /dev/null @@ -1,16530 +0,0 @@ -// source: grpc.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -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.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.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.GetNewDepositSubaddressReply', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.GetNewDepositSubaddressRequest', 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.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.MarketPriceInfo', 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.MarketPricesReply', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.MarketPricesRequest', 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.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.WithdrawFundsReply', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.WithdrawFundsRequest', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.XmrBalanceInfo', null, global); -/** - * 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.RegisterDisputeAgentRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.RegisterDisputeAgentRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.RegisterDisputeAgentRequest.displayName = 'proto.io.bisq.protobuffer.RegisterDisputeAgentRequest'; -} -/** - * 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.RegisterDisputeAgentReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.RegisterDisputeAgentReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - 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 - * 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.GetOffersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.GetOffersRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.GetOffersRequest.displayName = 'proto.io.bisq.protobuffer.GetOffersRequest'; -} -/** - * 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.GetOffersReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.GetOffersReply.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.GetOffersReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - 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 - * 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.CreateOfferRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.CreateOfferRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.CreateOfferRequest.displayName = 'proto.io.bisq.protobuffer.CreateOfferRequest'; -} -/** - * 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.CreateOfferReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.CreateOfferReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - 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 - * 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.OfferInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.OfferInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - 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 - * 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.CreatePaymentAccountRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.CreatePaymentAccountRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.CreatePaymentAccountRequest.displayName = 'proto.io.bisq.protobuffer.CreatePaymentAccountRequest'; -} -/** - * 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.CreatePaymentAccountReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.CreatePaymentAccountReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.CreatePaymentAccountReply.displayName = 'proto.io.bisq.protobuffer.CreatePaymentAccountReply'; -} -/** - * 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.GetPaymentAccountsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.GetPaymentAccountsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.GetPaymentAccountsRequest.displayName = 'proto.io.bisq.protobuffer.GetPaymentAccountsRequest'; -} -/** - * 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.GetPaymentAccountsReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.GetPaymentAccountsReply.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.GetPaymentAccountsReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - 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 - * 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.MarketPriceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.MarketPriceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.MarketPriceRequest.displayName = 'proto.io.bisq.protobuffer.MarketPriceRequest'; -} -/** - * 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.MarketPriceReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.MarketPriceReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.MarketPriceReply.displayName = 'proto.io.bisq.protobuffer.MarketPriceReply'; -} -/** - * 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.MarketPricesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.MarketPricesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.MarketPricesRequest.displayName = 'proto.io.bisq.protobuffer.MarketPricesRequest'; -} -/** - * 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.MarketPricesReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.MarketPricesReply.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.MarketPricesReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.MarketPricesReply.displayName = 'proto.io.bisq.protobuffer.MarketPricesReply'; -} -/** - * 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.MarketPriceInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.MarketPriceInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.MarketPriceInfo.displayName = 'proto.io.bisq.protobuffer.MarketPriceInfo'; -} -/** - * 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.GetTradeStatisticsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.GetTradeStatisticsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.GetTradeStatisticsRequest.displayName = 'proto.io.bisq.protobuffer.GetTradeStatisticsRequest'; -} -/** - * 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.GetTradeStatisticsReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.GetTradeStatisticsReply.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.GetTradeStatisticsReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.GetTradeStatisticsReply.displayName = 'proto.io.bisq.protobuffer.GetTradeStatisticsReply'; -} -/** - * 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.StopRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.StopRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.StopRequest.displayName = 'proto.io.bisq.protobuffer.StopRequest'; -} -/** - * 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.StopReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.StopReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - 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. - * @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.GetNewDepositSubaddressRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.GetNewDepositSubaddressRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.GetNewDepositSubaddressRequest.displayName = 'proto.io.bisq.protobuffer.GetNewDepositSubaddressRequest'; -} -/** - * 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.GetNewDepositSubaddressReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.GetNewDepositSubaddressReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.GetNewDepositSubaddressReply.displayName = 'proto.io.bisq.protobuffer.GetNewDepositSubaddressReply'; -} -/** - * 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.GetAddressBalanceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.GetAddressBalanceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.GetAddressBalanceRequest.displayName = 'proto.io.bisq.protobuffer.GetAddressBalanceRequest'; -} -/** - * 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.GetAddressBalanceReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.GetAddressBalanceReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - 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.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.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 - * 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.GetFundingAddressesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.GetFundingAddressesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.GetFundingAddressesRequest.displayName = 'proto.io.bisq.protobuffer.GetFundingAddressesRequest'; -} -/** - * 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.GetFundingAddressesReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.GetFundingAddressesReply.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.GetFundingAddressesReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.GetFundingAddressesReply.displayName = 'proto.io.bisq.protobuffer.GetFundingAddressesReply'; -} -/** - * 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.SetWalletPasswordRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SetWalletPasswordRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SetWalletPasswordRequest.displayName = 'proto.io.bisq.protobuffer.SetWalletPasswordRequest'; -} -/** - * 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.SetWalletPasswordReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SetWalletPasswordReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SetWalletPasswordReply.displayName = 'proto.io.bisq.protobuffer.SetWalletPasswordReply'; -} -/** - * 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.RemoveWalletPasswordRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.RemoveWalletPasswordRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.RemoveWalletPasswordRequest.displayName = 'proto.io.bisq.protobuffer.RemoveWalletPasswordRequest'; -} -/** - * 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.RemoveWalletPasswordReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.RemoveWalletPasswordReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.RemoveWalletPasswordReply.displayName = 'proto.io.bisq.protobuffer.RemoveWalletPasswordReply'; -} -/** - * 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.LockWalletRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.LockWalletRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.LockWalletRequest.displayName = 'proto.io.bisq.protobuffer.LockWalletRequest'; -} -/** - * 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.LockWalletReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.LockWalletReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.LockWalletReply.displayName = 'proto.io.bisq.protobuffer.LockWalletReply'; -} -/** - * 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.UnlockWalletRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.UnlockWalletRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.UnlockWalletRequest.displayName = 'proto.io.bisq.protobuffer.UnlockWalletRequest'; -} -/** - * 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.UnlockWalletReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.UnlockWalletReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - 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.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 - * 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.XmrBalanceInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.XmrBalanceInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.XmrBalanceInfo.displayName = 'proto.io.bisq.protobuffer.XmrBalanceInfo'; -} -/** - * 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.AddressBalanceInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.AddressBalanceInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.AddressBalanceInfo.displayName = 'proto.io.bisq.protobuffer.AddressBalanceInfo'; -} -/** - * 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.GetVersionRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.GetVersionRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.GetVersionRequest.displayName = 'proto.io.bisq.protobuffer.GetVersionRequest'; -} -/** - * 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.GetVersionReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.GetVersionReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.GetVersionReply.displayName = 'proto.io.bisq.protobuffer.GetVersionReply'; -} - - - -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.RegisterDisputeAgentRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.RegisterDisputeAgentRequest.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.RegisterDisputeAgentRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RegisterDisputeAgentRequest.toObject = function(includeInstance, msg) { - var f, obj = { - disputeAgentType: jspb.Message.getFieldWithDefault(msg, 1, ""), - registrationKey: 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.RegisterDisputeAgentRequest} - */ -proto.io.bisq.protobuffer.RegisterDisputeAgentRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.RegisterDisputeAgentRequest; - return proto.io.bisq.protobuffer.RegisterDisputeAgentRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.RegisterDisputeAgentRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.RegisterDisputeAgentRequest} - */ -proto.io.bisq.protobuffer.RegisterDisputeAgentRequest.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.setDisputeAgentType(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setRegistrationKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.RegisterDisputeAgentRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.RegisterDisputeAgentRequest.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.RegisterDisputeAgentRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RegisterDisputeAgentRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDisputeAgentType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRegistrationKey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string dispute_agent_type = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.RegisterDisputeAgentRequest.prototype.getDisputeAgentType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.RegisterDisputeAgentRequest} returns this - */ -proto.io.bisq.protobuffer.RegisterDisputeAgentRequest.prototype.setDisputeAgentType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string registration_key = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.RegisterDisputeAgentRequest.prototype.getRegistrationKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.RegisterDisputeAgentRequest} returns this - */ -proto.io.bisq.protobuffer.RegisterDisputeAgentRequest.prototype.setRegistrationKey = 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.RegisterDisputeAgentReply.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.RegisterDisputeAgentReply.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.RegisterDisputeAgentReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RegisterDisputeAgentReply.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.RegisterDisputeAgentReply} - */ -proto.io.bisq.protobuffer.RegisterDisputeAgentReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.RegisterDisputeAgentReply; - return proto.io.bisq.protobuffer.RegisterDisputeAgentReply.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.RegisterDisputeAgentReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.RegisterDisputeAgentReply} - */ -proto.io.bisq.protobuffer.RegisterDisputeAgentReply.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.RegisterDisputeAgentReply.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.RegisterDisputeAgentReply.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.RegisterDisputeAgentReply} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RegisterDisputeAgentReply.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.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 method_name = 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 method_help = 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. - * 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.GetOffersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetOffersRequest.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.GetOffersRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetOffersRequest.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.GetOffersRequest} - */ -proto.io.bisq.protobuffer.GetOffersRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetOffersRequest; - return proto.io.bisq.protobuffer.GetOffersRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetOffersRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetOffersRequest} - */ -proto.io.bisq.protobuffer.GetOffersRequest.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.GetOffersRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetOffersRequest.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.GetOffersRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetOffersRequest.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.GetOffersRequest.prototype.getDirection = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.GetOffersRequest} returns this - */ -proto.io.bisq.protobuffer.GetOffersRequest.prototype.setDirection = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string currency_code = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.GetOffersRequest.prototype.getCurrencyCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.GetOffersRequest} returns this - */ -proto.io.bisq.protobuffer.GetOffersRequest.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.GetOffersReply.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.GetOffersReply.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetOffersReply.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.GetOffersReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetOffersReply.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.GetOffersReply} - */ -proto.io.bisq.protobuffer.GetOffersReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetOffersReply; - return proto.io.bisq.protobuffer.GetOffersReply.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetOffersReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetOffersReply} - */ -proto.io.bisq.protobuffer.GetOffersReply.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.GetOffersReply.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetOffersReply.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.GetOffersReply} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetOffersReply.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.GetOffersReply.prototype.getOffersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.OfferInfo, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.GetOffersReply} returns this -*/ -proto.io.bisq.protobuffer.GetOffersReply.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.GetOffersReply.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.GetOffersReply} returns this - */ -proto.io.bisq.protobuffer.GetOffersReply.prototype.clearOffersList = function() { - return this.setOffersList([]); -}; - - - - - -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 currency_code = 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. - * 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.CreateOfferRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.CreateOfferRequest.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.CreateOfferRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CreateOfferRequest.toObject = function(includeInstance, msg) { - var f, obj = { - currencyCode: jspb.Message.getFieldWithDefault(msg, 1, ""), - direction: jspb.Message.getFieldWithDefault(msg, 2, ""), - price: jspb.Message.getFieldWithDefault(msg, 3, ""), - useMarketBasedPrice: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - marketPriceMargin: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), - amount: jspb.Message.getFieldWithDefault(msg, 6, "0"), - minAmount: jspb.Message.getFieldWithDefault(msg, 7, "0"), - buyerSecurityDeposit: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0), - triggerPrice: jspb.Message.getFieldWithDefault(msg, 9, "0"), - paymentAccountId: jspb.Message.getFieldWithDefault(msg, 10, "") - }; - - 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.CreateOfferRequest} - */ -proto.io.bisq.protobuffer.CreateOfferRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.CreateOfferRequest; - return proto.io.bisq.protobuffer.CreateOfferRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.CreateOfferRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.CreateOfferRequest} - */ -proto.io.bisq.protobuffer.CreateOfferRequest.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; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDirection(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setPrice(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUseMarketBasedPrice(value); - break; - case 5: - var value = /** @type {number} */ (reader.readDouble()); - msg.setMarketPriceMargin(value); - break; - case 6: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setAmount(value); - break; - case 7: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setMinAmount(value); - break; - case 8: - var value = /** @type {number} */ (reader.readDouble()); - msg.setBuyerSecurityDeposit(value); - break; - case 9: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setTriggerPrice(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setPaymentAccountId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.CreateOfferRequest.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.CreateOfferRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CreateOfferRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCurrencyCode(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDirection(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getPrice(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getUseMarketBasedPrice(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getMarketPriceMargin(); - if (f !== 0.0) { - writer.writeDouble( - 5, - f - ); - } - f = message.getAmount(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 6, - f - ); - } - f = message.getMinAmount(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 7, - f - ); - } - f = message.getBuyerSecurityDeposit(); - if (f !== 0.0) { - writer.writeDouble( - 8, - f - ); - } - f = message.getTriggerPrice(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 9, - f - ); - } - f = message.getPaymentAccountId(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } -}; - - -/** - * optional string currency_code = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getCurrencyCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CreateOfferRequest} returns this - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setCurrencyCode = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string direction = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getDirection = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CreateOfferRequest} returns this - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setDirection = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string price = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getPrice = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CreateOfferRequest} returns this - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setPrice = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional bool use_market_based_price = 4; - * @return {boolean} - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getUseMarketBasedPrice = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.CreateOfferRequest} returns this - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setUseMarketBasedPrice = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional double market_price_margin = 5; - * @return {number} - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getMarketPriceMargin = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.CreateOfferRequest} returns this - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setMarketPriceMargin = function(value) { - return jspb.Message.setProto3FloatField(this, 5, value); -}; - - -/** - * optional uint64 amount = 6; - * @return {string} - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getAmount = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CreateOfferRequest} returns this - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setAmount = function(value) { - return jspb.Message.setProto3StringIntField(this, 6, value); -}; - - -/** - * optional uint64 min_amount = 7; - * @return {string} - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getMinAmount = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CreateOfferRequest} returns this - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setMinAmount = function(value) { - return jspb.Message.setProto3StringIntField(this, 7, value); -}; - - -/** - * optional double buyer_security_deposit = 8; - * @return {number} - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getBuyerSecurityDeposit = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.CreateOfferRequest} returns this - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setBuyerSecurityDeposit = function(value) { - return jspb.Message.setProto3FloatField(this, 8, value); -}; - - -/** - * optional uint64 trigger_price = 9; - * @return {string} - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getTriggerPrice = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CreateOfferRequest} returns this - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setTriggerPrice = function(value) { - return jspb.Message.setProto3StringIntField(this, 9, value); -}; - - -/** - * optional string payment_account_id = 10; - * @return {string} - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getPaymentAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CreateOfferRequest} returns this - */ -proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setPaymentAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 10, 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.CreateOfferReply.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.CreateOfferReply.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.CreateOfferReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CreateOfferReply.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.CreateOfferReply} - */ -proto.io.bisq.protobuffer.CreateOfferReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.CreateOfferReply; - return proto.io.bisq.protobuffer.CreateOfferReply.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.CreateOfferReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.CreateOfferReply} - */ -proto.io.bisq.protobuffer.CreateOfferReply.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.CreateOfferReply.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.CreateOfferReply.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.CreateOfferReply} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CreateOfferReply.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.CreateOfferReply.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.CreateOfferReply} returns this -*/ -proto.io.bisq.protobuffer.CreateOfferReply.prototype.setOffer = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.CreateOfferReply} returns this - */ -proto.io.bisq.protobuffer.CreateOfferReply.prototype.clearOffer = function() { - return this.setOffer(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.CreateOfferReply.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.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. - * 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.OfferInfo.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.OfferInfo.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.OfferInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.OfferInfo.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - direction: jspb.Message.getFieldWithDefault(msg, 2, ""), - price: jspb.Message.getFieldWithDefault(msg, 3, 0), - useMarketBasedPrice: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - marketPriceMargin: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), - amount: jspb.Message.getFieldWithDefault(msg, 6, 0), - minAmount: jspb.Message.getFieldWithDefault(msg, 7, 0), - volume: jspb.Message.getFieldWithDefault(msg, 8, 0), - minVolume: jspb.Message.getFieldWithDefault(msg, 9, 0), - buyerSecurityDeposit: jspb.Message.getFieldWithDefault(msg, 10, 0), - triggerPrice: jspb.Message.getFieldWithDefault(msg, 11, 0), - paymentAccountId: jspb.Message.getFieldWithDefault(msg, 12, ""), - paymentMethodId: jspb.Message.getFieldWithDefault(msg, 13, ""), - paymentMethodShortName: jspb.Message.getFieldWithDefault(msg, 14, ""), - baseCurrencyCode: jspb.Message.getFieldWithDefault(msg, 15, ""), - counterCurrencyCode: jspb.Message.getFieldWithDefault(msg, 16, ""), - date: jspb.Message.getFieldWithDefault(msg, 17, 0), - state: jspb.Message.getFieldWithDefault(msg, 18, ""), - sellerSecurityDeposit: jspb.Message.getFieldWithDefault(msg, 19, 0), - offerFeePaymentTxId: jspb.Message.getFieldWithDefault(msg, 20, ""), - txFee: jspb.Message.getFieldWithDefault(msg, 21, 0), - makerFee: jspb.Message.getFieldWithDefault(msg, 22, 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.OfferInfo} - */ -proto.io.bisq.protobuffer.OfferInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.OfferInfo; - return proto.io.bisq.protobuffer.OfferInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.OfferInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.OfferInfo} - */ -proto.io.bisq.protobuffer.OfferInfo.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.setDirection(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setPrice(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUseMarketBasedPrice(value); - break; - case 5: - var value = /** @type {number} */ (reader.readDouble()); - msg.setMarketPriceMargin(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint64()); - msg.setAmount(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMinAmount(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint64()); - msg.setVolume(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMinVolume(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBuyerSecurityDeposit(value); - break; - case 11: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTriggerPrice(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setPaymentAccountId(value); - break; - case 13: - var value = /** @type {string} */ (reader.readString()); - msg.setPaymentMethodId(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setPaymentMethodShortName(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.setBaseCurrencyCode(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setCounterCurrencyCode(value); - break; - case 17: - var value = /** @type {number} */ (reader.readUint64()); - msg.setDate(value); - break; - case 18: - var value = /** @type {string} */ (reader.readString()); - msg.setState(value); - break; - case 19: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSellerSecurityDeposit(value); - break; - case 20: - var value = /** @type {string} */ (reader.readString()); - msg.setOfferFeePaymentTxId(value); - break; - case 21: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTxFee(value); - break; - case 22: - var value = /** @type {number} */ (reader.readUint64()); - msg.setMakerFee(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.OfferInfo.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.OfferInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.OfferInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDirection(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getPrice(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getUseMarketBasedPrice(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getMarketPriceMargin(); - if (f !== 0.0) { - writer.writeDouble( - 5, - f - ); - } - f = message.getAmount(); - if (f !== 0) { - writer.writeUint64( - 6, - f - ); - } - f = message.getMinAmount(); - if (f !== 0) { - writer.writeUint64( - 7, - f - ); - } - f = message.getVolume(); - if (f !== 0) { - writer.writeUint64( - 8, - f - ); - } - f = message.getMinVolume(); - if (f !== 0) { - writer.writeUint64( - 9, - f - ); - } - f = message.getBuyerSecurityDeposit(); - if (f !== 0) { - writer.writeUint64( - 10, - f - ); - } - f = message.getTriggerPrice(); - if (f !== 0) { - writer.writeUint64( - 11, - f - ); - } - f = message.getPaymentAccountId(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getPaymentMethodId(); - if (f.length > 0) { - writer.writeString( - 13, - f - ); - } - f = message.getPaymentMethodShortName(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getBaseCurrencyCode(); - if (f.length > 0) { - writer.writeString( - 15, - f - ); - } - f = message.getCounterCurrencyCode(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); - } - f = message.getDate(); - if (f !== 0) { - writer.writeUint64( - 17, - f - ); - } - f = message.getState(); - if (f.length > 0) { - writer.writeString( - 18, - f - ); - } - f = message.getSellerSecurityDeposit(); - if (f !== 0) { - writer.writeUint64( - 19, - f - ); - } - f = message.getOfferFeePaymentTxId(); - if (f.length > 0) { - writer.writeString( - 20, - f - ); - } - f = message.getTxFee(); - if (f !== 0) { - writer.writeUint64( - 21, - f - ); - } - f = message.getMakerFee(); - if (f !== 0) { - writer.writeUint64( - 22, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string direction = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getDirection = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.setDirection = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint64 price = 3; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.setPrice = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bool use_market_based_price = 4; - * @return {boolean} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getUseMarketBasedPrice = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.setUseMarketBasedPrice = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional double market_price_margin = 5; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getMarketPriceMargin = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.setMarketPriceMargin = function(value) { - return jspb.Message.setProto3FloatField(this, 5, value); -}; - - -/** - * optional uint64 amount = 6; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.setAmount = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional uint64 min_amount = 7; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getMinAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.setMinAmount = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional uint64 volume = 8; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getVolume = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.setVolume = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional uint64 min_volume = 9; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getMinVolume = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.setMinVolume = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); -}; - - -/** - * optional uint64 buyer_security_deposit = 10; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getBuyerSecurityDeposit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.setBuyerSecurityDeposit = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional uint64 trigger_price = 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 string payment_account_id = 12; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getPaymentAccountId = 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.setPaymentAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * optional string payment_method_id = 13; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getPaymentMethodId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); -}; - - -/** - * @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, 13, value); -}; - - -/** - * optional string payment_method_short_name = 14; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getPaymentMethodShortName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.setPaymentMethodShortName = function(value) { - return jspb.Message.setProto3StringField(this, 14, value); -}; - - -/** - * optional string base_currency_code = 15; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getBaseCurrencyCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** - * @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, 15, value); -}; - - -/** - * optional string counter_currency_code = 16; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getCounterCurrencyCode = 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.setCounterCurrencyCode = function(value) { - return jspb.Message.setProto3StringField(this, 16, value); -}; - - -/** - * optional uint64 date = 17; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.setDate = function(value) { - return jspb.Message.setProto3IntField(this, 17, value); -}; - - -/** - * optional string state = 18; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getState = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); -}; - - -/** - * @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, 18, value); -}; - - -/** - * optional uint64 seller_security_deposit = 19; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getSellerSecurityDeposit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 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, 19, value); -}; - - -/** - * optional string offer_fee_payment_tx_id = 20; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getOfferFeePaymentTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); -}; - - -/** - * @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, 20, value); -}; - - -/** - * optional uint64 tx_fee = 21; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getTxFee = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 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, 21, value); -}; - - -/** - * optional uint64 maker_fee = 22; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferInfo.prototype.getMakerFee = 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.setMakerFee = function(value) { - return jspb.Message.setProto3IntField(this, 22, 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 availability_result = 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); -}; - - - - - -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.CreatePaymentAccountRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.CreatePaymentAccountRequest.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.CreatePaymentAccountRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CreatePaymentAccountRequest.toObject = function(includeInstance, msg) { - var f, obj = { - paymentAccountForm: 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.CreatePaymentAccountRequest} - */ -proto.io.bisq.protobuffer.CreatePaymentAccountRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.CreatePaymentAccountRequest; - return proto.io.bisq.protobuffer.CreatePaymentAccountRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.CreatePaymentAccountRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.CreatePaymentAccountRequest} - */ -proto.io.bisq.protobuffer.CreatePaymentAccountRequest.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.setPaymentAccountForm(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.CreatePaymentAccountRequest.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.CreatePaymentAccountRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CreatePaymentAccountRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPaymentAccountForm(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string payment_account_form = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.getPaymentAccountForm = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CreatePaymentAccountRequest} returns this - */ -proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.setPaymentAccountForm = 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.CreatePaymentAccountReply.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.CreatePaymentAccountReply.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.CreatePaymentAccountReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CreatePaymentAccountReply.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.CreatePaymentAccountReply} - */ -proto.io.bisq.protobuffer.CreatePaymentAccountReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.CreatePaymentAccountReply; - return proto.io.bisq.protobuffer.CreatePaymentAccountReply.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.CreatePaymentAccountReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.CreatePaymentAccountReply} - */ -proto.io.bisq.protobuffer.CreatePaymentAccountReply.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.CreatePaymentAccountReply.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.CreatePaymentAccountReply.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.CreatePaymentAccountReply} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -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 payment_account = 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; -}; - - - - - -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.GetPaymentAccountsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetPaymentAccountsRequest.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.GetPaymentAccountsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetPaymentAccountsRequest.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.GetPaymentAccountsRequest} - */ -proto.io.bisq.protobuffer.GetPaymentAccountsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetPaymentAccountsRequest; - return proto.io.bisq.protobuffer.GetPaymentAccountsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetPaymentAccountsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetPaymentAccountsRequest} - */ -proto.io.bisq.protobuffer.GetPaymentAccountsRequest.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.GetPaymentAccountsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetPaymentAccountsRequest.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.GetPaymentAccountsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetPaymentAccountsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.GetPaymentAccountsReply.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.GetPaymentAccountsReply.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetPaymentAccountsReply.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.GetPaymentAccountsReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetPaymentAccountsReply.toObject = function(includeInstance, msg) { - var f, obj = { - paymentAccountsList: jspb.Message.toObjectList(msg.getPaymentAccountsList(), - pb_pb.PaymentAccount.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.GetPaymentAccountsReply} - */ -proto.io.bisq.protobuffer.GetPaymentAccountsReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetPaymentAccountsReply; - return proto.io.bisq.protobuffer.GetPaymentAccountsReply.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetPaymentAccountsReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetPaymentAccountsReply} - */ -proto.io.bisq.protobuffer.GetPaymentAccountsReply.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.addPaymentAccounts(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.GetPaymentAccountsReply.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetPaymentAccountsReply.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.GetPaymentAccountsReply} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetPaymentAccountsReply.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPaymentAccountsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - pb_pb.PaymentAccount.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated PaymentAccount payment_accounts = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.GetPaymentAccountsReply.prototype.getPaymentAccountsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, pb_pb.PaymentAccount, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.GetPaymentAccountsReply} returns this -*/ -proto.io.bisq.protobuffer.GetPaymentAccountsReply.prototype.setPaymentAccountsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.PaymentAccount=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.PaymentAccount} - */ -proto.io.bisq.protobuffer.GetPaymentAccountsReply.prototype.addPaymentAccounts = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.PaymentAccount, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.GetPaymentAccountsReply} returns this - */ -proto.io.bisq.protobuffer.GetPaymentAccountsReply.prototype.clearPaymentAccountsList = function() { - return this.setPaymentAccountsList([]); -}; - - - - - -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 payment_methods = 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 payment_method_id = 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 payment_account_form_json = 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 account_name = 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 currency_code = 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 trade_instant = 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 payment_account = 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 payment_methods = 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. - * 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.MarketPriceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.MarketPriceRequest.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.MarketPriceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MarketPriceRequest.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.MarketPriceRequest} - */ -proto.io.bisq.protobuffer.MarketPriceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.MarketPriceRequest; - return proto.io.bisq.protobuffer.MarketPriceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.MarketPriceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.MarketPriceRequest} - */ -proto.io.bisq.protobuffer.MarketPriceRequest.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.MarketPriceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.MarketPriceRequest.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.MarketPriceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MarketPriceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCurrencyCode(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string currency_code = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.MarketPriceRequest.prototype.getCurrencyCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.MarketPriceRequest} returns this - */ -proto.io.bisq.protobuffer.MarketPriceRequest.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.MarketPriceReply.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.MarketPriceReply.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.MarketPriceReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MarketPriceReply.toObject = function(includeInstance, msg) { - var f, obj = { - price: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.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.MarketPriceReply} - */ -proto.io.bisq.protobuffer.MarketPriceReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.MarketPriceReply; - return proto.io.bisq.protobuffer.MarketPriceReply.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.MarketPriceReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.MarketPriceReply} - */ -proto.io.bisq.protobuffer.MarketPriceReply.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readDouble()); - msg.setPrice(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.MarketPriceReply.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.MarketPriceReply.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.MarketPriceReply} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MarketPriceReply.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPrice(); - if (f !== 0.0) { - writer.writeDouble( - 1, - f - ); - } -}; - - -/** - * optional double price = 1; - * @return {number} - */ -proto.io.bisq.protobuffer.MarketPriceReply.prototype.getPrice = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.MarketPriceReply} returns this - */ -proto.io.bisq.protobuffer.MarketPriceReply.prototype.setPrice = function(value) { - return jspb.Message.setProto3FloatField(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.MarketPricesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.MarketPricesRequest.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.MarketPricesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MarketPricesRequest.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.MarketPricesRequest} - */ -proto.io.bisq.protobuffer.MarketPricesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.MarketPricesRequest; - return proto.io.bisq.protobuffer.MarketPricesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.MarketPricesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.MarketPricesRequest} - */ -proto.io.bisq.protobuffer.MarketPricesRequest.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.MarketPricesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.MarketPricesRequest.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.MarketPricesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MarketPricesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.MarketPricesReply.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.MarketPricesReply.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.MarketPricesReply.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.MarketPricesReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MarketPricesReply.toObject = function(includeInstance, msg) { - var f, obj = { - marketPriceList: jspb.Message.toObjectList(msg.getMarketPriceList(), - proto.io.bisq.protobuffer.MarketPriceInfo.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.MarketPricesReply} - */ -proto.io.bisq.protobuffer.MarketPricesReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.MarketPricesReply; - return proto.io.bisq.protobuffer.MarketPricesReply.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.MarketPricesReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.MarketPricesReply} - */ -proto.io.bisq.protobuffer.MarketPricesReply.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.MarketPriceInfo; - reader.readMessage(value,proto.io.bisq.protobuffer.MarketPriceInfo.deserializeBinaryFromReader); - msg.addMarketPrice(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.MarketPricesReply.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.MarketPricesReply.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.MarketPricesReply} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MarketPricesReply.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMarketPriceList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.io.bisq.protobuffer.MarketPriceInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated MarketPriceInfo market_price = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.MarketPricesReply.prototype.getMarketPriceList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.MarketPriceInfo, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.MarketPricesReply} returns this -*/ -proto.io.bisq.protobuffer.MarketPricesReply.prototype.setMarketPriceList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.MarketPriceInfo=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.MarketPriceInfo} - */ -proto.io.bisq.protobuffer.MarketPricesReply.prototype.addMarketPrice = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.MarketPriceInfo, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.MarketPricesReply} returns this - */ -proto.io.bisq.protobuffer.MarketPricesReply.prototype.clearMarketPriceList = function() { - return this.setMarketPriceList([]); -}; - - - - - -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.MarketPriceInfo.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.MarketPriceInfo.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.MarketPriceInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MarketPriceInfo.toObject = function(includeInstance, msg) { - var f, obj = { - currencyCode: jspb.Message.getFieldWithDefault(msg, 1, ""), - price: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.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.MarketPriceInfo} - */ -proto.io.bisq.protobuffer.MarketPriceInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.MarketPriceInfo; - return proto.io.bisq.protobuffer.MarketPriceInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.MarketPriceInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.MarketPriceInfo} - */ -proto.io.bisq.protobuffer.MarketPriceInfo.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; - case 2: - var value = /** @type {number} */ (reader.readDouble()); - msg.setPrice(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.MarketPriceInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.MarketPriceInfo.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.MarketPriceInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MarketPriceInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCurrencyCode(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPrice(); - if (f !== 0.0) { - writer.writeDouble( - 2, - f - ); - } -}; - - -/** - * optional string currency_code = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.MarketPriceInfo.prototype.getCurrencyCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.MarketPriceInfo} returns this - */ -proto.io.bisq.protobuffer.MarketPriceInfo.prototype.setCurrencyCode = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional double price = 2; - * @return {number} - */ -proto.io.bisq.protobuffer.MarketPriceInfo.prototype.getPrice = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.MarketPriceInfo} returns this - */ -proto.io.bisq.protobuffer.MarketPriceInfo.prototype.setPrice = function(value) { - return jspb.Message.setProto3FloatField(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.GetTradeStatisticsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetTradeStatisticsRequest.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.GetTradeStatisticsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetTradeStatisticsRequest.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.GetTradeStatisticsRequest} - */ -proto.io.bisq.protobuffer.GetTradeStatisticsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetTradeStatisticsRequest; - return proto.io.bisq.protobuffer.GetTradeStatisticsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetTradeStatisticsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetTradeStatisticsRequest} - */ -proto.io.bisq.protobuffer.GetTradeStatisticsRequest.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.GetTradeStatisticsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetTradeStatisticsRequest.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.GetTradeStatisticsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetTradeStatisticsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.GetTradeStatisticsReply.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.GetTradeStatisticsReply.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetTradeStatisticsReply.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.GetTradeStatisticsReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetTradeStatisticsReply.toObject = function(includeInstance, msg) { - var f, obj = { - tradeStatisticsList: jspb.Message.toObjectList(msg.getTradeStatisticsList(), - pb_pb.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.GetTradeStatisticsReply} - */ -proto.io.bisq.protobuffer.GetTradeStatisticsReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetTradeStatisticsReply; - return proto.io.bisq.protobuffer.GetTradeStatisticsReply.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetTradeStatisticsReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetTradeStatisticsReply} - */ -proto.io.bisq.protobuffer.GetTradeStatisticsReply.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new pb_pb.TradeStatistics3; - reader.readMessage(value,pb_pb.TradeStatistics3.deserializeBinaryFromReader); - msg.addTradeStatistics(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.GetTradeStatisticsReply.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetTradeStatisticsReply.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.GetTradeStatisticsReply} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetTradeStatisticsReply.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradeStatisticsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - pb_pb.TradeStatistics3.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated TradeStatistics3 trade_statistics = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.GetTradeStatisticsReply.prototype.getTradeStatisticsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, pb_pb.TradeStatistics3, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.GetTradeStatisticsReply} returns this -*/ -proto.io.bisq.protobuffer.GetTradeStatisticsReply.prototype.setTradeStatisticsList = 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.GetTradeStatisticsReply.prototype.addTradeStatistics = 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.GetTradeStatisticsReply} returns this - */ -proto.io.bisq.protobuffer.GetTradeStatisticsReply.prototype.clearTradeStatisticsList = function() { - return this.setTradeStatisticsList([]); -}; - - - - - -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.StopRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.StopRequest.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.StopRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.StopRequest.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.StopRequest} - */ -proto.io.bisq.protobuffer.StopRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - 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.StopRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.StopRequest} - */ -proto.io.bisq.protobuffer.StopRequest.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.StopRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.StopRequest.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.StopRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.StopRequest.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.StopReply.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.StopReply.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.StopReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.StopReply.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.StopReply} - */ -proto.io.bisq.protobuffer.StopReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - 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.StopReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.StopReply} - */ -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, "") - }; - - 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; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setOfferId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPaymentAccountId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.TakeOfferRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.TakeOfferRequest.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.TakeOfferRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.TakeOfferRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOfferId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPaymentAccountId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string offer_id = 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 payment_account_id = 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); -}; - - - - - -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 failure_reason = 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 - ); - } -}; - - -/** - * optional string trade_id = 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 trade_id = 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 trade_id = 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 trade_id = 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 trade_id = 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 trade_id = 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 short_id = 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.TradeInfo.prototype.getDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.TradeInfo} returns this - */ -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 tx_fee_as_long = 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 taker_fee_as_long = 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 taker_fee_tx_id = 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 payout_tx_id = 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 trade_amount_as_long = 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 trade_price = 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 trading_peer_node_address = 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 trade_period_state = 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 is_deposit_published = 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 is_deposit_confirmed = 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 is_fiat_sent = 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 is_fiat_received = 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 is_payout_published = 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 is_withdrawn = 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 contract_as_json = 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 maker_deposit_tx_id = 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 taker_deposit_tx_id = 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 buyer_node_address = 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 seller_node_address = 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 is_buyer_maker_and_seller_taker = 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 maker_account_id = 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 taker_account_id = 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 maker_payment_account_payload = 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 taker_payment_account_payload = 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 maker_payout_address_string = 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 taker_payout_address_string = 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 lock_time = 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 arbitrator_node_address = 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 payment_method_id = 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 use_custom_tx_fee_rate = 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 custom_tx_fee_rate = 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 fee_service_rate = 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 last_fee_service_request_ts = 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 min_fee_service_rate = 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 tx_id = 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 input_sum = 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 output_sum = 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 is_pending = 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 currency_code = 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; -}; - - - - - -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.GetNewDepositSubaddressRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetNewDepositSubaddressRequest.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.GetNewDepositSubaddressRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetNewDepositSubaddressRequest.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.GetNewDepositSubaddressRequest} - */ -proto.io.bisq.protobuffer.GetNewDepositSubaddressRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetNewDepositSubaddressRequest; - return proto.io.bisq.protobuffer.GetNewDepositSubaddressRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetNewDepositSubaddressRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetNewDepositSubaddressRequest} - */ -proto.io.bisq.protobuffer.GetNewDepositSubaddressRequest.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.GetNewDepositSubaddressRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetNewDepositSubaddressRequest.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.GetNewDepositSubaddressRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetNewDepositSubaddressRequest.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.GetNewDepositSubaddressReply.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetNewDepositSubaddressReply.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.GetNewDepositSubaddressReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetNewDepositSubaddressReply.toObject = function(includeInstance, msg) { - var f, obj = { - subaddress: 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.GetNewDepositSubaddressReply} - */ -proto.io.bisq.protobuffer.GetNewDepositSubaddressReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetNewDepositSubaddressReply; - return proto.io.bisq.protobuffer.GetNewDepositSubaddressReply.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetNewDepositSubaddressReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetNewDepositSubaddressReply} - */ -proto.io.bisq.protobuffer.GetNewDepositSubaddressReply.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.setSubaddress(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.GetNewDepositSubaddressReply.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetNewDepositSubaddressReply.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.GetNewDepositSubaddressReply} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetNewDepositSubaddressReply.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSubaddress(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string subaddress = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.GetNewDepositSubaddressReply.prototype.getSubaddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.GetNewDepositSubaddressReply} returns this - */ -proto.io.bisq.protobuffer.GetNewDepositSubaddressReply.prototype.setSubaddress = 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.GetAddressBalanceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetAddressBalanceRequest.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.GetAddressBalanceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetAddressBalanceRequest.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.GetAddressBalanceRequest} - */ -proto.io.bisq.protobuffer.GetAddressBalanceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetAddressBalanceRequest; - return proto.io.bisq.protobuffer.GetAddressBalanceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetAddressBalanceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetAddressBalanceRequest} - */ -proto.io.bisq.protobuffer.GetAddressBalanceRequest.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.GetAddressBalanceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetAddressBalanceRequest.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.GetAddressBalanceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetAddressBalanceRequest.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.GetAddressBalanceRequest.prototype.getAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.GetAddressBalanceRequest} returns this - */ -proto.io.bisq.protobuffer.GetAddressBalanceRequest.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.GetAddressBalanceReply.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetAddressBalanceReply.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.GetAddressBalanceReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetAddressBalanceReply.toObject = function(includeInstance, msg) { - var f, obj = { - addressBalanceInfo: (f = msg.getAddressBalanceInfo()) && proto.io.bisq.protobuffer.AddressBalanceInfo.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.GetAddressBalanceReply} - */ -proto.io.bisq.protobuffer.GetAddressBalanceReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetAddressBalanceReply; - return proto.io.bisq.protobuffer.GetAddressBalanceReply.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetAddressBalanceReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetAddressBalanceReply} - */ -proto.io.bisq.protobuffer.GetAddressBalanceReply.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.AddressBalanceInfo; - reader.readMessage(value,proto.io.bisq.protobuffer.AddressBalanceInfo.deserializeBinaryFromReader); - msg.setAddressBalanceInfo(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.GetAddressBalanceReply.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetAddressBalanceReply.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.GetAddressBalanceReply} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetAddressBalanceReply.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAddressBalanceInfo(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.AddressBalanceInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * optional AddressBalanceInfo address_balance_info = 1; - * @return {?proto.io.bisq.protobuffer.AddressBalanceInfo} - */ -proto.io.bisq.protobuffer.GetAddressBalanceReply.prototype.getAddressBalanceInfo = function() { - return /** @type{?proto.io.bisq.protobuffer.AddressBalanceInfo} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.AddressBalanceInfo, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.AddressBalanceInfo|undefined} value - * @return {!proto.io.bisq.protobuffer.GetAddressBalanceReply} returns this -*/ -proto.io.bisq.protobuffer.GetAddressBalanceReply.prototype.setAddressBalanceInfo = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.GetAddressBalanceReply} returns this - */ -proto.io.bisq.protobuffer.GetAddressBalanceReply.prototype.clearAddressBalanceInfo = function() { - return this.setAddressBalanceInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.GetAddressBalanceReply.prototype.hasAddressBalanceInfo = 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 tx_fee_rate = 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 tx_info = 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.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 tx_fee_rate_info = 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 tx_fee_rate_preference = 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 tx_fee_rate_info = 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 tx_fee_rate_info = 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 tx_id = 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 tx_info = 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. - * 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.GetFundingAddressesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetFundingAddressesRequest.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.GetFundingAddressesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetFundingAddressesRequest.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.GetFundingAddressesRequest} - */ -proto.io.bisq.protobuffer.GetFundingAddressesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetFundingAddressesRequest; - return proto.io.bisq.protobuffer.GetFundingAddressesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetFundingAddressesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetFundingAddressesRequest} - */ -proto.io.bisq.protobuffer.GetFundingAddressesRequest.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.GetFundingAddressesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetFundingAddressesRequest.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.GetFundingAddressesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetFundingAddressesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.GetFundingAddressesReply.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.GetFundingAddressesReply.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetFundingAddressesReply.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.GetFundingAddressesReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetFundingAddressesReply.toObject = function(includeInstance, msg) { - var f, obj = { - addressBalanceInfoList: jspb.Message.toObjectList(msg.getAddressBalanceInfoList(), - proto.io.bisq.protobuffer.AddressBalanceInfo.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.GetFundingAddressesReply} - */ -proto.io.bisq.protobuffer.GetFundingAddressesReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetFundingAddressesReply; - return proto.io.bisq.protobuffer.GetFundingAddressesReply.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetFundingAddressesReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetFundingAddressesReply} - */ -proto.io.bisq.protobuffer.GetFundingAddressesReply.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.AddressBalanceInfo; - reader.readMessage(value,proto.io.bisq.protobuffer.AddressBalanceInfo.deserializeBinaryFromReader); - msg.addAddressBalanceInfo(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.GetFundingAddressesReply.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetFundingAddressesReply.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.GetFundingAddressesReply} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetFundingAddressesReply.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAddressBalanceInfoList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.io.bisq.protobuffer.AddressBalanceInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated AddressBalanceInfo address_balance_info = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.GetFundingAddressesReply.prototype.getAddressBalanceInfoList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.AddressBalanceInfo, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.GetFundingAddressesReply} returns this -*/ -proto.io.bisq.protobuffer.GetFundingAddressesReply.prototype.setAddressBalanceInfoList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.AddressBalanceInfo=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.AddressBalanceInfo} - */ -proto.io.bisq.protobuffer.GetFundingAddressesReply.prototype.addAddressBalanceInfo = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.AddressBalanceInfo, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.GetFundingAddressesReply} returns this - */ -proto.io.bisq.protobuffer.GetFundingAddressesReply.prototype.clearAddressBalanceInfoList = function() { - return this.setAddressBalanceInfoList([]); -}; - - - - - -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.SetWalletPasswordRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SetWalletPasswordRequest.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.SetWalletPasswordRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SetWalletPasswordRequest.toObject = function(includeInstance, msg) { - var f, obj = { - password: jspb.Message.getFieldWithDefault(msg, 1, ""), - newPassword: 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.SetWalletPasswordRequest} - */ -proto.io.bisq.protobuffer.SetWalletPasswordRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SetWalletPasswordRequest; - return proto.io.bisq.protobuffer.SetWalletPasswordRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SetWalletPasswordRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SetWalletPasswordRequest} - */ -proto.io.bisq.protobuffer.SetWalletPasswordRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setNewPassword(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SetWalletPasswordRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SetWalletPasswordRequest.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.SetWalletPasswordRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SetWalletPasswordRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getNewPassword(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string password = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.SetWalletPasswordRequest.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SetWalletPasswordRequest} returns this - */ -proto.io.bisq.protobuffer.SetWalletPasswordRequest.prototype.setPassword = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string new_password = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.SetWalletPasswordRequest.prototype.getNewPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SetWalletPasswordRequest} returns this - */ -proto.io.bisq.protobuffer.SetWalletPasswordRequest.prototype.setNewPassword = 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.SetWalletPasswordReply.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SetWalletPasswordReply.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.SetWalletPasswordReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SetWalletPasswordReply.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.SetWalletPasswordReply} - */ -proto.io.bisq.protobuffer.SetWalletPasswordReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SetWalletPasswordReply; - return proto.io.bisq.protobuffer.SetWalletPasswordReply.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SetWalletPasswordReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SetWalletPasswordReply} - */ -proto.io.bisq.protobuffer.SetWalletPasswordReply.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.SetWalletPasswordReply.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SetWalletPasswordReply.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.SetWalletPasswordReply} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SetWalletPasswordReply.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.RemoveWalletPasswordRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.RemoveWalletPasswordRequest.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.RemoveWalletPasswordRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RemoveWalletPasswordRequest.toObject = function(includeInstance, msg) { - var f, obj = { - password: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.io.bisq.protobuffer.RemoveWalletPasswordRequest} - */ -proto.io.bisq.protobuffer.RemoveWalletPasswordRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.RemoveWalletPasswordRequest; - return proto.io.bisq.protobuffer.RemoveWalletPasswordRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.RemoveWalletPasswordRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.RemoveWalletPasswordRequest} - */ -proto.io.bisq.protobuffer.RemoveWalletPasswordRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.RemoveWalletPasswordRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.RemoveWalletPasswordRequest.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.RemoveWalletPasswordRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RemoveWalletPasswordRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string password = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.RemoveWalletPasswordRequest.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.RemoveWalletPasswordRequest} returns this - */ -proto.io.bisq.protobuffer.RemoveWalletPasswordRequest.prototype.setPassword = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.io.bisq.protobuffer.RemoveWalletPasswordReply.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.RemoveWalletPasswordReply.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.RemoveWalletPasswordReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RemoveWalletPasswordReply.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.RemoveWalletPasswordReply} - */ -proto.io.bisq.protobuffer.RemoveWalletPasswordReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.RemoveWalletPasswordReply; - return proto.io.bisq.protobuffer.RemoveWalletPasswordReply.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.RemoveWalletPasswordReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.RemoveWalletPasswordReply} - */ -proto.io.bisq.protobuffer.RemoveWalletPasswordReply.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.RemoveWalletPasswordReply.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.RemoveWalletPasswordReply.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.RemoveWalletPasswordReply} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RemoveWalletPasswordReply.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.LockWalletRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.LockWalletRequest.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.LockWalletRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.LockWalletRequest.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.LockWalletRequest} - */ -proto.io.bisq.protobuffer.LockWalletRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.LockWalletRequest; - return proto.io.bisq.protobuffer.LockWalletRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.LockWalletRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.LockWalletRequest} - */ -proto.io.bisq.protobuffer.LockWalletRequest.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.LockWalletRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.LockWalletRequest.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.LockWalletRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.LockWalletRequest.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.LockWalletReply.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.LockWalletReply.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.LockWalletReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.LockWalletReply.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.LockWalletReply} - */ -proto.io.bisq.protobuffer.LockWalletReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.LockWalletReply; - return proto.io.bisq.protobuffer.LockWalletReply.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.LockWalletReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.LockWalletReply} - */ -proto.io.bisq.protobuffer.LockWalletReply.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.LockWalletReply.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.LockWalletReply.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.LockWalletReply} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.LockWalletReply.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.UnlockWalletRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.UnlockWalletRequest.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.UnlockWalletRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.UnlockWalletRequest.toObject = function(includeInstance, msg) { - var f, obj = { - password: jspb.Message.getFieldWithDefault(msg, 1, ""), - timeout: jspb.Message.getFieldWithDefault(msg, 2, 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.UnlockWalletRequest} - */ -proto.io.bisq.protobuffer.UnlockWalletRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.UnlockWalletRequest; - return proto.io.bisq.protobuffer.UnlockWalletRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.UnlockWalletRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.UnlockWalletRequest} - */ -proto.io.bisq.protobuffer.UnlockWalletRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setTimeout(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.UnlockWalletRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.UnlockWalletRequest.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.UnlockWalletRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.UnlockWalletRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTimeout(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } -}; - - -/** - * optional string password = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.UnlockWalletRequest.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.UnlockWalletRequest} returns this - */ -proto.io.bisq.protobuffer.UnlockWalletRequest.prototype.setPassword = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint64 timeout = 2; - * @return {number} - */ -proto.io.bisq.protobuffer.UnlockWalletRequest.prototype.getTimeout = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.UnlockWalletRequest} returns this - */ -proto.io.bisq.protobuffer.UnlockWalletRequest.prototype.setTimeout = function(value) { - return jspb.Message.setProto3IntField(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.UnlockWalletReply.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.UnlockWalletReply.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.UnlockWalletReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.UnlockWalletReply.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.UnlockWalletReply} - */ -proto.io.bisq.protobuffer.UnlockWalletReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.UnlockWalletReply; - return proto.io.bisq.protobuffer.UnlockWalletReply.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.UnlockWalletReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.UnlockWalletReply} - */ -proto.io.bisq.protobuffer.UnlockWalletReply.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.UnlockWalletReply.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.UnlockWalletReply.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.UnlockWalletReply} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.UnlockWalletReply.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.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 = { - btc: (f = msg.getBtc()) && proto.io.bisq.protobuffer.BtcBalanceInfo.toObject(includeInstance, f), - xmr: (f = msg.getXmr()) && proto.io.bisq.protobuffer.XmrBalanceInfo.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.BtcBalanceInfo; - reader.readMessage(value,proto.io.bisq.protobuffer.BtcBalanceInfo.deserializeBinaryFromReader); - msg.setBtc(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.XmrBalanceInfo; - reader.readMessage(value,proto.io.bisq.protobuffer.XmrBalanceInfo.deserializeBinaryFromReader); - msg.setXmr(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.getBtc(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.BtcBalanceInfo.serializeBinaryToWriter - ); - } - f = message.getXmr(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.XmrBalanceInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * optional BtcBalanceInfo btc = 1; - * @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, 1)); -}; - - -/** - * @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, 1, 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, 1) != null; -}; - - -/** - * optional XmrBalanceInfo xmr = 2; - * @return {?proto.io.bisq.protobuffer.XmrBalanceInfo} - */ -proto.io.bisq.protobuffer.BalancesInfo.prototype.getXmr = function() { - return /** @type{?proto.io.bisq.protobuffer.XmrBalanceInfo} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.XmrBalanceInfo, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.XmrBalanceInfo|undefined} value - * @return {!proto.io.bisq.protobuffer.BalancesInfo} returns this -*/ -proto.io.bisq.protobuffer.BalancesInfo.prototype.setXmr = 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.clearXmr = function() { - return this.setXmr(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.BalancesInfo.prototype.hasXmr = 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.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 available_balance = 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 reserved_balance = 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 total_available_balance = 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 locked_balance = 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. - * 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.XmrBalanceInfo.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.XmrBalanceInfo.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.XmrBalanceInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.XmrBalanceInfo.toObject = function(includeInstance, msg) { - var f, obj = { - balance: jspb.Message.getFieldWithDefault(msg, 1, "0"), - unlockedBalance: jspb.Message.getFieldWithDefault(msg, 2, "0"), - lockedBalance: jspb.Message.getFieldWithDefault(msg, 3, "0"), - reservedOfferBalance: jspb.Message.getFieldWithDefault(msg, 4, "0"), - reservedTradeBalance: 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.XmrBalanceInfo} - */ -proto.io.bisq.protobuffer.XmrBalanceInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.XmrBalanceInfo; - return proto.io.bisq.protobuffer.XmrBalanceInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.XmrBalanceInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.XmrBalanceInfo} - */ -proto.io.bisq.protobuffer.XmrBalanceInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setBalance(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setUnlockedBalance(value); - break; - case 3: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setLockedBalance(value); - break; - case 4: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setReservedOfferBalance(value); - break; - case 5: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setReservedTradeBalance(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.XmrBalanceInfo.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.XmrBalanceInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.XmrBalanceInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBalance(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getUnlockedBalance(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } - f = message.getLockedBalance(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 3, - f - ); - } - f = message.getReservedOfferBalance(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 4, - f - ); - } - f = message.getReservedTradeBalance(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 5, - f - ); - } -}; - - -/** - * optional uint64 balance = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.getBalance = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.XmrBalanceInfo} returns this - */ -proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.setBalance = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional uint64 unlocked_balance = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.getUnlockedBalance = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.XmrBalanceInfo} returns this - */ -proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.setUnlockedBalance = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional uint64 locked_balance = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.getLockedBalance = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.XmrBalanceInfo} returns this - */ -proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.setLockedBalance = function(value) { - return jspb.Message.setProto3StringIntField(this, 3, value); -}; - - -/** - * optional uint64 reserved_offer_balance = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.getReservedOfferBalance = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.XmrBalanceInfo} returns this - */ -proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.setReservedOfferBalance = function(value) { - return jspb.Message.setProto3StringIntField(this, 4, value); -}; - - -/** - * optional uint64 reserved_trade_balance = 5; - * @return {string} - */ -proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.getReservedTradeBalance = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.XmrBalanceInfo} returns this - */ -proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.setReservedTradeBalance = function(value) { - return jspb.Message.setProto3StringIntField(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.AddressBalanceInfo.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.AddressBalanceInfo.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.AddressBalanceInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AddressBalanceInfo.toObject = function(includeInstance, msg) { - var f, obj = { - address: jspb.Message.getFieldWithDefault(msg, 1, ""), - balance: jspb.Message.getFieldWithDefault(msg, 2, 0), - numConfirmations: jspb.Message.getFieldWithDefault(msg, 3, 0), - isAddressUnused: 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.AddressBalanceInfo} - */ -proto.io.bisq.protobuffer.AddressBalanceInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.AddressBalanceInfo; - return proto.io.bisq.protobuffer.AddressBalanceInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.AddressBalanceInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.AddressBalanceInfo} - */ -proto.io.bisq.protobuffer.AddressBalanceInfo.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 {number} */ (reader.readInt64()); - msg.setBalance(value); - break; - case 3: - 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; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.AddressBalanceInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.AddressBalanceInfo.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.AddressBalanceInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AddressBalanceInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAddress(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getBalance(); - if (f !== 0) { - writer.writeInt64( - 2, - f - ); - } - f = message.getNumConfirmations(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getIsAddressUnused(); - if (f) { - writer.writeBool( - 4, - f - ); - } -}; - - -/** - * optional string address = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.AddressBalanceInfo.prototype.getAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.AddressBalanceInfo} returns this - */ -proto.io.bisq.protobuffer.AddressBalanceInfo.prototype.setAddress = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int64 balance = 2; - * @return {number} - */ -proto.io.bisq.protobuffer.AddressBalanceInfo.prototype.getBalance = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.AddressBalanceInfo} returns this - */ -proto.io.bisq.protobuffer.AddressBalanceInfo.prototype.setBalance = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional int64 num_confirmations = 3; - * @return {number} - */ -proto.io.bisq.protobuffer.AddressBalanceInfo.prototype.getNumConfirmations = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.AddressBalanceInfo} returns this - */ -proto.io.bisq.protobuffer.AddressBalanceInfo.prototype.setNumConfirmations = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bool is_address_unused = 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); -}; - - - - - -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.GetVersionRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetVersionRequest.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.GetVersionRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetVersionRequest.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.GetVersionRequest} - */ -proto.io.bisq.protobuffer.GetVersionRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetVersionRequest; - return proto.io.bisq.protobuffer.GetVersionRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetVersionRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetVersionRequest} - */ -proto.io.bisq.protobuffer.GetVersionRequest.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.GetVersionRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetVersionRequest.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.GetVersionRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetVersionRequest.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.GetVersionReply.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetVersionReply.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.GetVersionReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetVersionReply.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.GetVersionReply} - */ -proto.io.bisq.protobuffer.GetVersionReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetVersionReply; - return proto.io.bisq.protobuffer.GetVersionReply.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetVersionReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetVersionReply} - */ -proto.io.bisq.protobuffer.GetVersionReply.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.GetVersionReply.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetVersionReply.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.GetVersionReply} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetVersionReply.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.GetVersionReply.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.GetVersionReply} returns this - */ -proto.io.bisq.protobuffer.GetVersionReply.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -goog.object.extend(exports, proto.io.bisq.protobuffer); diff --git a/src/protobuf/pb_pb.d.ts b/src/protobuf/pb_pb.d.ts deleted file mode 100644 index 1c91862a..00000000 --- a/src/protobuf/pb_pb.d.ts +++ /dev/null @@ -1,7798 +0,0 @@ -import * as jspb from 'google-protobuf' - - - -export class NetworkEnvelope extends jspb.Message { - getMessageVersion(): number; - setMessageVersion(value: number): NetworkEnvelope; - - getPreliminaryGetDataRequest(): PreliminaryGetDataRequest | undefined; - setPreliminaryGetDataRequest(value?: PreliminaryGetDataRequest): NetworkEnvelope; - hasPreliminaryGetDataRequest(): boolean; - clearPreliminaryGetDataRequest(): NetworkEnvelope; - - getGetDataResponse(): GetDataResponse | undefined; - setGetDataResponse(value?: GetDataResponse): NetworkEnvelope; - hasGetDataResponse(): boolean; - clearGetDataResponse(): NetworkEnvelope; - - getGetUpdatedDataRequest(): GetUpdatedDataRequest | undefined; - setGetUpdatedDataRequest(value?: GetUpdatedDataRequest): NetworkEnvelope; - hasGetUpdatedDataRequest(): boolean; - clearGetUpdatedDataRequest(): NetworkEnvelope; - - getGetPeersRequest(): GetPeersRequest | undefined; - setGetPeersRequest(value?: GetPeersRequest): NetworkEnvelope; - hasGetPeersRequest(): boolean; - clearGetPeersRequest(): NetworkEnvelope; - - getGetPeersResponse(): GetPeersResponse | undefined; - setGetPeersResponse(value?: GetPeersResponse): NetworkEnvelope; - hasGetPeersResponse(): boolean; - clearGetPeersResponse(): NetworkEnvelope; - - getPing(): Ping | undefined; - setPing(value?: Ping): NetworkEnvelope; - hasPing(): boolean; - clearPing(): NetworkEnvelope; - - getPong(): Pong | undefined; - setPong(value?: Pong): NetworkEnvelope; - hasPong(): boolean; - clearPong(): NetworkEnvelope; - - getOfferAvailabilityRequest(): OfferAvailabilityRequest | undefined; - setOfferAvailabilityRequest(value?: OfferAvailabilityRequest): NetworkEnvelope; - hasOfferAvailabilityRequest(): boolean; - clearOfferAvailabilityRequest(): NetworkEnvelope; - - getOfferAvailabilityResponse(): OfferAvailabilityResponse | undefined; - setOfferAvailabilityResponse(value?: OfferAvailabilityResponse): NetworkEnvelope; - hasOfferAvailabilityResponse(): boolean; - clearOfferAvailabilityResponse(): NetworkEnvelope; - - getRefreshOfferMessage(): RefreshOfferMessage | undefined; - setRefreshOfferMessage(value?: RefreshOfferMessage): NetworkEnvelope; - hasRefreshOfferMessage(): boolean; - clearRefreshOfferMessage(): NetworkEnvelope; - - getAddDataMessage(): AddDataMessage | undefined; - setAddDataMessage(value?: AddDataMessage): NetworkEnvelope; - hasAddDataMessage(): boolean; - clearAddDataMessage(): NetworkEnvelope; - - getRemoveDataMessage(): RemoveDataMessage | undefined; - setRemoveDataMessage(value?: RemoveDataMessage): NetworkEnvelope; - hasRemoveDataMessage(): boolean; - clearRemoveDataMessage(): NetworkEnvelope; - - getRemoveMailboxDataMessage(): RemoveMailboxDataMessage | undefined; - setRemoveMailboxDataMessage(value?: RemoveMailboxDataMessage): NetworkEnvelope; - hasRemoveMailboxDataMessage(): boolean; - clearRemoveMailboxDataMessage(): NetworkEnvelope; - - getCloseConnectionMessage(): CloseConnectionMessage | undefined; - setCloseConnectionMessage(value?: CloseConnectionMessage): NetworkEnvelope; - hasCloseConnectionMessage(): boolean; - clearCloseConnectionMessage(): NetworkEnvelope; - - getPrefixedSealedAndSignedMessage(): PrefixedSealedAndSignedMessage | undefined; - setPrefixedSealedAndSignedMessage(value?: PrefixedSealedAndSignedMessage): NetworkEnvelope; - hasPrefixedSealedAndSignedMessage(): boolean; - clearPrefixedSealedAndSignedMessage(): NetworkEnvelope; - - getInputsForDepositTxRequest(): InputsForDepositTxRequest | undefined; - setInputsForDepositTxRequest(value?: InputsForDepositTxRequest): NetworkEnvelope; - hasInputsForDepositTxRequest(): boolean; - clearInputsForDepositTxRequest(): NetworkEnvelope; - - getInputsForDepositTxResponse(): InputsForDepositTxResponse | undefined; - setInputsForDepositTxResponse(value?: InputsForDepositTxResponse): NetworkEnvelope; - hasInputsForDepositTxResponse(): boolean; - clearInputsForDepositTxResponse(): NetworkEnvelope; - - getDepositTxMessage(): DepositTxMessage | undefined; - setDepositTxMessage(value?: DepositTxMessage): NetworkEnvelope; - hasDepositTxMessage(): boolean; - clearDepositTxMessage(): NetworkEnvelope; - - getCounterCurrencyTransferStartedMessage(): CounterCurrencyTransferStartedMessage | undefined; - setCounterCurrencyTransferStartedMessage(value?: CounterCurrencyTransferStartedMessage): NetworkEnvelope; - hasCounterCurrencyTransferStartedMessage(): boolean; - clearCounterCurrencyTransferStartedMessage(): NetworkEnvelope; - - getPayoutTxPublishedMessage(): PayoutTxPublishedMessage | undefined; - setPayoutTxPublishedMessage(value?: PayoutTxPublishedMessage): NetworkEnvelope; - hasPayoutTxPublishedMessage(): boolean; - clearPayoutTxPublishedMessage(): NetworkEnvelope; - - getOpenNewDisputeMessage(): OpenNewDisputeMessage | undefined; - setOpenNewDisputeMessage(value?: OpenNewDisputeMessage): NetworkEnvelope; - hasOpenNewDisputeMessage(): boolean; - clearOpenNewDisputeMessage(): NetworkEnvelope; - - getPeerOpenedDisputeMessage(): PeerOpenedDisputeMessage | undefined; - setPeerOpenedDisputeMessage(value?: PeerOpenedDisputeMessage): NetworkEnvelope; - hasPeerOpenedDisputeMessage(): boolean; - clearPeerOpenedDisputeMessage(): NetworkEnvelope; - - getChatMessage(): ChatMessage | undefined; - setChatMessage(value?: ChatMessage): NetworkEnvelope; - hasChatMessage(): boolean; - clearChatMessage(): NetworkEnvelope; - - getDisputeResultMessage(): DisputeResultMessage | undefined; - setDisputeResultMessage(value?: DisputeResultMessage): NetworkEnvelope; - hasDisputeResultMessage(): boolean; - clearDisputeResultMessage(): NetworkEnvelope; - - getPeerPublishedDisputePayoutTxMessage(): PeerPublishedDisputePayoutTxMessage | undefined; - setPeerPublishedDisputePayoutTxMessage(value?: PeerPublishedDisputePayoutTxMessage): NetworkEnvelope; - hasPeerPublishedDisputePayoutTxMessage(): boolean; - clearPeerPublishedDisputePayoutTxMessage(): NetworkEnvelope; - - getPrivateNotificationMessage(): PrivateNotificationMessage | undefined; - setPrivateNotificationMessage(value?: PrivateNotificationMessage): NetworkEnvelope; - hasPrivateNotificationMessage(): boolean; - clearPrivateNotificationMessage(): NetworkEnvelope; - - getAddPersistableNetworkPayloadMessage(): AddPersistableNetworkPayloadMessage | undefined; - setAddPersistableNetworkPayloadMessage(value?: AddPersistableNetworkPayloadMessage): NetworkEnvelope; - hasAddPersistableNetworkPayloadMessage(): boolean; - clearAddPersistableNetworkPayloadMessage(): NetworkEnvelope; - - getAckMessage(): AckMessage | undefined; - setAckMessage(value?: AckMessage): NetworkEnvelope; - hasAckMessage(): boolean; - clearAckMessage(): NetworkEnvelope; - - getBundleOfEnvelopes(): BundleOfEnvelopes | undefined; - setBundleOfEnvelopes(value?: BundleOfEnvelopes): NetworkEnvelope; - hasBundleOfEnvelopes(): boolean; - clearBundleOfEnvelopes(): NetworkEnvelope; - - getMediatedPayoutTxSignatureMessage(): MediatedPayoutTxSignatureMessage | undefined; - setMediatedPayoutTxSignatureMessage(value?: MediatedPayoutTxSignatureMessage): NetworkEnvelope; - hasMediatedPayoutTxSignatureMessage(): boolean; - clearMediatedPayoutTxSignatureMessage(): NetworkEnvelope; - - getMediatedPayoutTxPublishedMessage(): MediatedPayoutTxPublishedMessage | undefined; - setMediatedPayoutTxPublishedMessage(value?: MediatedPayoutTxPublishedMessage): NetworkEnvelope; - hasMediatedPayoutTxPublishedMessage(): boolean; - clearMediatedPayoutTxPublishedMessage(): NetworkEnvelope; - - getDelayedPayoutTxSignatureRequest(): DelayedPayoutTxSignatureRequest | undefined; - setDelayedPayoutTxSignatureRequest(value?: DelayedPayoutTxSignatureRequest): NetworkEnvelope; - hasDelayedPayoutTxSignatureRequest(): boolean; - clearDelayedPayoutTxSignatureRequest(): NetworkEnvelope; - - getDelayedPayoutTxSignatureResponse(): DelayedPayoutTxSignatureResponse | undefined; - setDelayedPayoutTxSignatureResponse(value?: DelayedPayoutTxSignatureResponse): NetworkEnvelope; - hasDelayedPayoutTxSignatureResponse(): boolean; - clearDelayedPayoutTxSignatureResponse(): NetworkEnvelope; - - getDepositTxAndDelayedPayoutTxMessage(): DepositTxAndDelayedPayoutTxMessage | undefined; - setDepositTxAndDelayedPayoutTxMessage(value?: DepositTxAndDelayedPayoutTxMessage): NetworkEnvelope; - hasDepositTxAndDelayedPayoutTxMessage(): boolean; - clearDepositTxAndDelayedPayoutTxMessage(): NetworkEnvelope; - - getPeerPublishedDelayedPayoutTxMessage(): PeerPublishedDelayedPayoutTxMessage | undefined; - setPeerPublishedDelayedPayoutTxMessage(value?: PeerPublishedDelayedPayoutTxMessage): NetworkEnvelope; - hasPeerPublishedDelayedPayoutTxMessage(): boolean; - clearPeerPublishedDelayedPayoutTxMessage(): NetworkEnvelope; - - getRefreshTradeStateRequest(): RefreshTradeStateRequest | undefined; - setRefreshTradeStateRequest(value?: RefreshTradeStateRequest): NetworkEnvelope; - hasRefreshTradeStateRequest(): boolean; - clearRefreshTradeStateRequest(): NetworkEnvelope; - - getTraderSignedWitnessMessage(): TraderSignedWitnessMessage | undefined; - setTraderSignedWitnessMessage(value?: TraderSignedWitnessMessage): NetworkEnvelope; - hasTraderSignedWitnessMessage(): boolean; - clearTraderSignedWitnessMessage(): NetworkEnvelope; - - getGetInventoryRequest(): GetInventoryRequest | undefined; - setGetInventoryRequest(value?: GetInventoryRequest): NetworkEnvelope; - hasGetInventoryRequest(): boolean; - clearGetInventoryRequest(): NetworkEnvelope; - - getGetInventoryResponse(): GetInventoryResponse | undefined; - setGetInventoryResponse(value?: GetInventoryResponse): NetworkEnvelope; - hasGetInventoryResponse(): boolean; - clearGetInventoryResponse(): NetworkEnvelope; - - getSignOfferRequest(): SignOfferRequest | undefined; - setSignOfferRequest(value?: SignOfferRequest): NetworkEnvelope; - hasSignOfferRequest(): boolean; - clearSignOfferRequest(): NetworkEnvelope; - - getSignOfferResponse(): SignOfferResponse | undefined; - setSignOfferResponse(value?: SignOfferResponse): NetworkEnvelope; - hasSignOfferResponse(): boolean; - clearSignOfferResponse(): NetworkEnvelope; - - getInitTradeRequest(): InitTradeRequest | undefined; - setInitTradeRequest(value?: InitTradeRequest): NetworkEnvelope; - hasInitTradeRequest(): boolean; - clearInitTradeRequest(): NetworkEnvelope; - - getInitMultisigRequest(): InitMultisigRequest | undefined; - setInitMultisigRequest(value?: InitMultisigRequest): NetworkEnvelope; - hasInitMultisigRequest(): boolean; - clearInitMultisigRequest(): NetworkEnvelope; - - getSignContractRequest(): SignContractRequest | undefined; - setSignContractRequest(value?: SignContractRequest): NetworkEnvelope; - hasSignContractRequest(): boolean; - clearSignContractRequest(): NetworkEnvelope; - - getSignContractResponse(): SignContractResponse | undefined; - setSignContractResponse(value?: SignContractResponse): NetworkEnvelope; - hasSignContractResponse(): boolean; - clearSignContractResponse(): NetworkEnvelope; - - getDepositRequest(): DepositRequest | undefined; - setDepositRequest(value?: DepositRequest): NetworkEnvelope; - hasDepositRequest(): boolean; - clearDepositRequest(): NetworkEnvelope; - - getDepositResponse(): DepositResponse | undefined; - setDepositResponse(value?: DepositResponse): NetworkEnvelope; - hasDepositResponse(): boolean; - clearDepositResponse(): NetworkEnvelope; - - getPaymentAccountPayloadRequest(): PaymentAccountPayloadRequest | undefined; - setPaymentAccountPayloadRequest(value?: PaymentAccountPayloadRequest): NetworkEnvelope; - hasPaymentAccountPayloadRequest(): boolean; - clearPaymentAccountPayloadRequest(): NetworkEnvelope; - - getUpdateMultisigRequest(): UpdateMultisigRequest | undefined; - setUpdateMultisigRequest(value?: UpdateMultisigRequest): NetworkEnvelope; - hasUpdateMultisigRequest(): boolean; - clearUpdateMultisigRequest(): NetworkEnvelope; - - getUpdateMultisigResponse(): UpdateMultisigResponse | undefined; - setUpdateMultisigResponse(value?: UpdateMultisigResponse): NetworkEnvelope; - hasUpdateMultisigResponse(): boolean; - clearUpdateMultisigResponse(): NetworkEnvelope; - - getArbitratorPayoutTxRequest(): ArbitratorPayoutTxRequest | undefined; - setArbitratorPayoutTxRequest(value?: ArbitratorPayoutTxRequest): NetworkEnvelope; - hasArbitratorPayoutTxRequest(): boolean; - clearArbitratorPayoutTxRequest(): NetworkEnvelope; - - getArbitratorPayoutTxResponse(): ArbitratorPayoutTxResponse | undefined; - setArbitratorPayoutTxResponse(value?: ArbitratorPayoutTxResponse): NetworkEnvelope; - hasArbitratorPayoutTxResponse(): boolean; - clearArbitratorPayoutTxResponse(): NetworkEnvelope; - - getMessageCase(): NetworkEnvelope.MessageCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NetworkEnvelope.AsObject; - static toObject(includeInstance: boolean, msg: NetworkEnvelope): NetworkEnvelope.AsObject; - static serializeBinaryToWriter(message: NetworkEnvelope, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NetworkEnvelope; - static deserializeBinaryFromReader(message: NetworkEnvelope, reader: jspb.BinaryReader): NetworkEnvelope; -} - -export namespace NetworkEnvelope { - export type AsObject = { - messageVersion: number, - preliminaryGetDataRequest?: PreliminaryGetDataRequest.AsObject, - getDataResponse?: GetDataResponse.AsObject, - getUpdatedDataRequest?: GetUpdatedDataRequest.AsObject, - getPeersRequest?: GetPeersRequest.AsObject, - getPeersResponse?: GetPeersResponse.AsObject, - ping?: Ping.AsObject, - pong?: Pong.AsObject, - offerAvailabilityRequest?: OfferAvailabilityRequest.AsObject, - offerAvailabilityResponse?: OfferAvailabilityResponse.AsObject, - refreshOfferMessage?: RefreshOfferMessage.AsObject, - addDataMessage?: AddDataMessage.AsObject, - removeDataMessage?: RemoveDataMessage.AsObject, - removeMailboxDataMessage?: RemoveMailboxDataMessage.AsObject, - closeConnectionMessage?: CloseConnectionMessage.AsObject, - prefixedSealedAndSignedMessage?: PrefixedSealedAndSignedMessage.AsObject, - inputsForDepositTxRequest?: InputsForDepositTxRequest.AsObject, - inputsForDepositTxResponse?: InputsForDepositTxResponse.AsObject, - depositTxMessage?: DepositTxMessage.AsObject, - counterCurrencyTransferStartedMessage?: CounterCurrencyTransferStartedMessage.AsObject, - payoutTxPublishedMessage?: PayoutTxPublishedMessage.AsObject, - openNewDisputeMessage?: OpenNewDisputeMessage.AsObject, - peerOpenedDisputeMessage?: PeerOpenedDisputeMessage.AsObject, - chatMessage?: ChatMessage.AsObject, - disputeResultMessage?: DisputeResultMessage.AsObject, - peerPublishedDisputePayoutTxMessage?: PeerPublishedDisputePayoutTxMessage.AsObject, - privateNotificationMessage?: PrivateNotificationMessage.AsObject, - addPersistableNetworkPayloadMessage?: AddPersistableNetworkPayloadMessage.AsObject, - ackMessage?: AckMessage.AsObject, - bundleOfEnvelopes?: BundleOfEnvelopes.AsObject, - mediatedPayoutTxSignatureMessage?: MediatedPayoutTxSignatureMessage.AsObject, - mediatedPayoutTxPublishedMessage?: MediatedPayoutTxPublishedMessage.AsObject, - delayedPayoutTxSignatureRequest?: DelayedPayoutTxSignatureRequest.AsObject, - delayedPayoutTxSignatureResponse?: DelayedPayoutTxSignatureResponse.AsObject, - depositTxAndDelayedPayoutTxMessage?: DepositTxAndDelayedPayoutTxMessage.AsObject, - peerPublishedDelayedPayoutTxMessage?: PeerPublishedDelayedPayoutTxMessage.AsObject, - refreshTradeStateRequest?: RefreshTradeStateRequest.AsObject, - traderSignedWitnessMessage?: TraderSignedWitnessMessage.AsObject, - getInventoryRequest?: GetInventoryRequest.AsObject, - getInventoryResponse?: GetInventoryResponse.AsObject, - signOfferRequest?: SignOfferRequest.AsObject, - signOfferResponse?: SignOfferResponse.AsObject, - initTradeRequest?: InitTradeRequest.AsObject, - initMultisigRequest?: InitMultisigRequest.AsObject, - signContractRequest?: SignContractRequest.AsObject, - signContractResponse?: SignContractResponse.AsObject, - depositRequest?: DepositRequest.AsObject, - depositResponse?: DepositResponse.AsObject, - paymentAccountPayloadRequest?: PaymentAccountPayloadRequest.AsObject, - updateMultisigRequest?: UpdateMultisigRequest.AsObject, - updateMultisigResponse?: UpdateMultisigResponse.AsObject, - arbitratorPayoutTxRequest?: ArbitratorPayoutTxRequest.AsObject, - arbitratorPayoutTxResponse?: ArbitratorPayoutTxResponse.AsObject, - } - - export enum MessageCase { - MESSAGE_NOT_SET = 0, - PRELIMINARY_GET_DATA_REQUEST = 2, - GET_DATA_RESPONSE = 3, - GET_UPDATED_DATA_REQUEST = 4, - GET_PEERS_REQUEST = 5, - GET_PEERS_RESPONSE = 6, - PING = 7, - PONG = 8, - OFFER_AVAILABILITY_REQUEST = 9, - OFFER_AVAILABILITY_RESPONSE = 10, - REFRESH_OFFER_MESSAGE = 11, - ADD_DATA_MESSAGE = 12, - REMOVE_DATA_MESSAGE = 13, - REMOVE_MAILBOX_DATA_MESSAGE = 14, - CLOSE_CONNECTION_MESSAGE = 15, - PREFIXED_SEALED_AND_SIGNED_MESSAGE = 16, - INPUTS_FOR_DEPOSIT_TX_REQUEST = 17, - INPUTS_FOR_DEPOSIT_TX_RESPONSE = 18, - DEPOSIT_TX_MESSAGE = 19, - COUNTER_CURRENCY_TRANSFER_STARTED_MESSAGE = 20, - PAYOUT_TX_PUBLISHED_MESSAGE = 21, - OPEN_NEW_DISPUTE_MESSAGE = 22, - PEER_OPENED_DISPUTE_MESSAGE = 23, - CHAT_MESSAGE = 24, - DISPUTE_RESULT_MESSAGE = 25, - PEER_PUBLISHED_DISPUTE_PAYOUT_TX_MESSAGE = 26, - PRIVATE_NOTIFICATION_MESSAGE = 27, - ADD_PERSISTABLE_NETWORK_PAYLOAD_MESSAGE = 28, - ACK_MESSAGE = 29, - BUNDLE_OF_ENVELOPES = 30, - MEDIATED_PAYOUT_TX_SIGNATURE_MESSAGE = 31, - MEDIATED_PAYOUT_TX_PUBLISHED_MESSAGE = 32, - DELAYED_PAYOUT_TX_SIGNATURE_REQUEST = 33, - DELAYED_PAYOUT_TX_SIGNATURE_RESPONSE = 34, - DEPOSIT_TX_AND_DELAYED_PAYOUT_TX_MESSAGE = 35, - PEER_PUBLISHED_DELAYED_PAYOUT_TX_MESSAGE = 36, - REFRESH_TRADE_STATE_REQUEST = 37, - TRADER_SIGNED_WITNESS_MESSAGE = 38, - GET_INVENTORY_REQUEST = 39, - GET_INVENTORY_RESPONSE = 40, - SIGN_OFFER_REQUEST = 1001, - SIGN_OFFER_RESPONSE = 1002, - INIT_TRADE_REQUEST = 1003, - INIT_MULTISIG_REQUEST = 1004, - SIGN_CONTRACT_REQUEST = 1005, - SIGN_CONTRACT_RESPONSE = 1006, - DEPOSIT_REQUEST = 1007, - DEPOSIT_RESPONSE = 1008, - PAYMENT_ACCOUNT_PAYLOAD_REQUEST = 1009, - UPDATE_MULTISIG_REQUEST = 1010, - UPDATE_MULTISIG_RESPONSE = 1011, - ARBITRATOR_PAYOUT_TX_REQUEST = 1012, - ARBITRATOR_PAYOUT_TX_RESPONSE = 1013, - } -} - -export class BundleOfEnvelopes extends jspb.Message { - getEnvelopesList(): Array; - setEnvelopesList(value: Array): BundleOfEnvelopes; - clearEnvelopesList(): BundleOfEnvelopes; - addEnvelopes(value?: NetworkEnvelope, index?: number): NetworkEnvelope; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BundleOfEnvelopes.AsObject; - static toObject(includeInstance: boolean, msg: BundleOfEnvelopes): BundleOfEnvelopes.AsObject; - static serializeBinaryToWriter(message: BundleOfEnvelopes, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BundleOfEnvelopes; - static deserializeBinaryFromReader(message: BundleOfEnvelopes, reader: jspb.BinaryReader): BundleOfEnvelopes; -} - -export namespace BundleOfEnvelopes { - export type AsObject = { - envelopesList: Array, - } -} - -export class PreliminaryGetDataRequest extends jspb.Message { - getNonce(): number; - setNonce(value: number): PreliminaryGetDataRequest; - - getExcludedKeysList(): Array; - setExcludedKeysList(value: Array): PreliminaryGetDataRequest; - clearExcludedKeysList(): PreliminaryGetDataRequest; - addExcludedKeys(value: Uint8Array | string, index?: number): PreliminaryGetDataRequest; - - getSupportedCapabilitiesList(): Array; - setSupportedCapabilitiesList(value: Array): PreliminaryGetDataRequest; - clearSupportedCapabilitiesList(): PreliminaryGetDataRequest; - addSupportedCapabilities(value: number, index?: number): PreliminaryGetDataRequest; - - getVersion(): string; - setVersion(value: string): PreliminaryGetDataRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PreliminaryGetDataRequest.AsObject; - static toObject(includeInstance: boolean, msg: PreliminaryGetDataRequest): PreliminaryGetDataRequest.AsObject; - static serializeBinaryToWriter(message: PreliminaryGetDataRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PreliminaryGetDataRequest; - static deserializeBinaryFromReader(message: PreliminaryGetDataRequest, reader: jspb.BinaryReader): PreliminaryGetDataRequest; -} - -export namespace PreliminaryGetDataRequest { - export type AsObject = { - nonce: number, - excludedKeysList: Array, - supportedCapabilitiesList: Array, - version: string, - } -} - -export class GetDataResponse extends jspb.Message { - getRequestNonce(): number; - setRequestNonce(value: number): GetDataResponse; - - getIsGetUpdatedDataResponse(): boolean; - setIsGetUpdatedDataResponse(value: boolean): GetDataResponse; - - getDataSetList(): Array; - setDataSetList(value: Array): GetDataResponse; - clearDataSetList(): GetDataResponse; - addDataSet(value?: StorageEntryWrapper, index?: number): StorageEntryWrapper; - - getSupportedCapabilitiesList(): Array; - setSupportedCapabilitiesList(value: Array): GetDataResponse; - clearSupportedCapabilitiesList(): GetDataResponse; - addSupportedCapabilities(value: number, index?: number): GetDataResponse; - - getPersistableNetworkPayloadItemsList(): Array; - setPersistableNetworkPayloadItemsList(value: Array): GetDataResponse; - clearPersistableNetworkPayloadItemsList(): GetDataResponse; - addPersistableNetworkPayloadItems(value?: PersistableNetworkPayload, index?: number): PersistableNetworkPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDataResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDataResponse): GetDataResponse.AsObject; - static serializeBinaryToWriter(message: GetDataResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDataResponse; - static deserializeBinaryFromReader(message: GetDataResponse, reader: jspb.BinaryReader): GetDataResponse; -} - -export namespace GetDataResponse { - export type AsObject = { - requestNonce: number, - isGetUpdatedDataResponse: boolean, - dataSetList: Array, - supportedCapabilitiesList: Array, - persistableNetworkPayloadItemsList: Array, - } -} - -export class GetUpdatedDataRequest extends jspb.Message { - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): GetUpdatedDataRequest; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): GetUpdatedDataRequest; - - getNonce(): number; - setNonce(value: number): GetUpdatedDataRequest; - - getExcludedKeysList(): Array; - setExcludedKeysList(value: Array): GetUpdatedDataRequest; - clearExcludedKeysList(): GetUpdatedDataRequest; - addExcludedKeys(value: Uint8Array | string, index?: number): GetUpdatedDataRequest; - - getVersion(): string; - setVersion(value: string): GetUpdatedDataRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetUpdatedDataRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetUpdatedDataRequest): GetUpdatedDataRequest.AsObject; - static serializeBinaryToWriter(message: GetUpdatedDataRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetUpdatedDataRequest; - static deserializeBinaryFromReader(message: GetUpdatedDataRequest, reader: jspb.BinaryReader): GetUpdatedDataRequest; -} - -export namespace GetUpdatedDataRequest { - export type AsObject = { - senderNodeAddress?: NodeAddress.AsObject, - nonce: number, - excludedKeysList: Array, - version: string, - } -} - -export class GetPeersRequest extends jspb.Message { - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): GetPeersRequest; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): GetPeersRequest; - - getNonce(): number; - setNonce(value: number): GetPeersRequest; - - getSupportedCapabilitiesList(): Array; - setSupportedCapabilitiesList(value: Array): GetPeersRequest; - clearSupportedCapabilitiesList(): GetPeersRequest; - addSupportedCapabilities(value: number, index?: number): GetPeersRequest; - - getReportedPeersList(): Array; - setReportedPeersList(value: Array): GetPeersRequest; - clearReportedPeersList(): GetPeersRequest; - addReportedPeers(value?: Peer, index?: number): Peer; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetPeersRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetPeersRequest): GetPeersRequest.AsObject; - static serializeBinaryToWriter(message: GetPeersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetPeersRequest; - static deserializeBinaryFromReader(message: GetPeersRequest, reader: jspb.BinaryReader): GetPeersRequest; -} - -export namespace GetPeersRequest { - export type AsObject = { - senderNodeAddress?: NodeAddress.AsObject, - nonce: number, - supportedCapabilitiesList: Array, - reportedPeersList: Array, - } -} - -export class GetPeersResponse extends jspb.Message { - getRequestNonce(): number; - setRequestNonce(value: number): GetPeersResponse; - - getReportedPeersList(): Array; - setReportedPeersList(value: Array): GetPeersResponse; - clearReportedPeersList(): GetPeersResponse; - addReportedPeers(value?: Peer, index?: number): Peer; - - getSupportedCapabilitiesList(): Array; - setSupportedCapabilitiesList(value: Array): GetPeersResponse; - clearSupportedCapabilitiesList(): GetPeersResponse; - addSupportedCapabilities(value: number, index?: number): GetPeersResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetPeersResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetPeersResponse): GetPeersResponse.AsObject; - static serializeBinaryToWriter(message: GetPeersResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetPeersResponse; - static deserializeBinaryFromReader(message: GetPeersResponse, reader: jspb.BinaryReader): GetPeersResponse; -} - -export namespace GetPeersResponse { - export type AsObject = { - requestNonce: number, - reportedPeersList: Array, - supportedCapabilitiesList: Array, - } -} - -export class Ping extends jspb.Message { - getNonce(): number; - setNonce(value: number): Ping; - - getLastRoundTripTime(): number; - setLastRoundTripTime(value: number): Ping; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Ping.AsObject; - static toObject(includeInstance: boolean, msg: Ping): Ping.AsObject; - static serializeBinaryToWriter(message: Ping, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Ping; - static deserializeBinaryFromReader(message: Ping, reader: jspb.BinaryReader): Ping; -} - -export namespace Ping { - export type AsObject = { - nonce: number, - lastRoundTripTime: number, - } -} - -export class Pong extends jspb.Message { - getRequestNonce(): number; - setRequestNonce(value: number): Pong; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Pong.AsObject; - static toObject(includeInstance: boolean, msg: Pong): Pong.AsObject; - static serializeBinaryToWriter(message: Pong, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Pong; - static deserializeBinaryFromReader(message: Pong, reader: jspb.BinaryReader): Pong; -} - -export namespace Pong { - export type AsObject = { - requestNonce: number, - } -} - -export class GetInventoryRequest extends jspb.Message { - getVersion(): string; - setVersion(value: string): GetInventoryRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetInventoryRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetInventoryRequest): GetInventoryRequest.AsObject; - static serializeBinaryToWriter(message: GetInventoryRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetInventoryRequest; - static deserializeBinaryFromReader(message: GetInventoryRequest, reader: jspb.BinaryReader): GetInventoryRequest; -} - -export namespace GetInventoryRequest { - export type AsObject = { - version: string, - } -} - -export class GetInventoryResponse extends jspb.Message { - getInventoryMap(): jspb.Map; - clearInventoryMap(): GetInventoryResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetInventoryResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetInventoryResponse): GetInventoryResponse.AsObject; - static serializeBinaryToWriter(message: GetInventoryResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetInventoryResponse; - static deserializeBinaryFromReader(message: GetInventoryResponse, reader: jspb.BinaryReader): GetInventoryResponse; -} - -export namespace GetInventoryResponse { - export type AsObject = { - inventoryMap: Array<[string, string]>, - } -} - -export class SignOfferRequest extends jspb.Message { - getOfferId(): string; - setOfferId(value: string): SignOfferRequest; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): SignOfferRequest; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): SignOfferRequest; - - getPubKeyRing(): PubKeyRing | undefined; - setPubKeyRing(value?: PubKeyRing): SignOfferRequest; - hasPubKeyRing(): boolean; - clearPubKeyRing(): SignOfferRequest; - - getSenderAccountId(): string; - setSenderAccountId(value: string): SignOfferRequest; - - getOfferPayload(): OfferPayload | undefined; - setOfferPayload(value?: OfferPayload): SignOfferRequest; - hasOfferPayload(): boolean; - clearOfferPayload(): SignOfferRequest; - - getUid(): string; - setUid(value: string): SignOfferRequest; - - getCurrentDate(): number; - setCurrentDate(value: number): SignOfferRequest; - - getReserveTxHash(): string; - setReserveTxHash(value: string): SignOfferRequest; - - getReserveTxHex(): string; - setReserveTxHex(value: string): SignOfferRequest; - - getReserveTxKey(): string; - setReserveTxKey(value: string): SignOfferRequest; - - getReserveTxKeyImagesList(): Array; - setReserveTxKeyImagesList(value: Array): SignOfferRequest; - clearReserveTxKeyImagesList(): SignOfferRequest; - addReserveTxKeyImages(value: string, index?: number): SignOfferRequest; - - getPayoutAddress(): string; - setPayoutAddress(value: string): SignOfferRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SignOfferRequest.AsObject; - static toObject(includeInstance: boolean, msg: SignOfferRequest): SignOfferRequest.AsObject; - static serializeBinaryToWriter(message: SignOfferRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SignOfferRequest; - static deserializeBinaryFromReader(message: SignOfferRequest, reader: jspb.BinaryReader): SignOfferRequest; -} - -export namespace SignOfferRequest { - export type AsObject = { - offerId: string, - senderNodeAddress?: NodeAddress.AsObject, - pubKeyRing?: PubKeyRing.AsObject, - senderAccountId: string, - offerPayload?: OfferPayload.AsObject, - uid: string, - currentDate: number, - reserveTxHash: string, - reserveTxHex: string, - reserveTxKey: string, - reserveTxKeyImagesList: Array, - payoutAddress: string, - } -} - -export class SignOfferResponse extends jspb.Message { - getOfferId(): string; - setOfferId(value: string): SignOfferResponse; - - getUid(): string; - setUid(value: string): SignOfferResponse; - - getSignedOfferPayload(): OfferPayload | undefined; - setSignedOfferPayload(value?: OfferPayload): SignOfferResponse; - hasSignedOfferPayload(): boolean; - clearSignedOfferPayload(): SignOfferResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SignOfferResponse.AsObject; - static toObject(includeInstance: boolean, msg: SignOfferResponse): SignOfferResponse.AsObject; - static serializeBinaryToWriter(message: SignOfferResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SignOfferResponse; - static deserializeBinaryFromReader(message: SignOfferResponse, reader: jspb.BinaryReader): SignOfferResponse; -} - -export namespace SignOfferResponse { - export type AsObject = { - offerId: string, - uid: string, - signedOfferPayload?: OfferPayload.AsObject, - } -} - -export class OfferAvailabilityRequest extends jspb.Message { - getOfferId(): string; - setOfferId(value: string): OfferAvailabilityRequest; - - getPubKeyRing(): PubKeyRing | undefined; - setPubKeyRing(value?: PubKeyRing): OfferAvailabilityRequest; - hasPubKeyRing(): boolean; - clearPubKeyRing(): OfferAvailabilityRequest; - - getTakersTradePrice(): number; - setTakersTradePrice(value: number): OfferAvailabilityRequest; - - getSupportedCapabilitiesList(): Array; - setSupportedCapabilitiesList(value: Array): OfferAvailabilityRequest; - clearSupportedCapabilitiesList(): OfferAvailabilityRequest; - addSupportedCapabilities(value: number, index?: number): OfferAvailabilityRequest; - - getUid(): string; - setUid(value: string): OfferAvailabilityRequest; - - getIsTakerApiUser(): boolean; - setIsTakerApiUser(value: boolean): OfferAvailabilityRequest; - - getTradeRequest(): InitTradeRequest | undefined; - setTradeRequest(value?: InitTradeRequest): OfferAvailabilityRequest; - hasTradeRequest(): boolean; - clearTradeRequest(): OfferAvailabilityRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OfferAvailabilityRequest.AsObject; - static toObject(includeInstance: boolean, msg: OfferAvailabilityRequest): OfferAvailabilityRequest.AsObject; - static serializeBinaryToWriter(message: OfferAvailabilityRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OfferAvailabilityRequest; - static deserializeBinaryFromReader(message: OfferAvailabilityRequest, reader: jspb.BinaryReader): OfferAvailabilityRequest; -} - -export namespace OfferAvailabilityRequest { - export type AsObject = { - offerId: string, - pubKeyRing?: PubKeyRing.AsObject, - takersTradePrice: number, - supportedCapabilitiesList: Array, - uid: string, - isTakerApiUser: boolean, - tradeRequest?: InitTradeRequest.AsObject, - } -} - -export class OfferAvailabilityResponse extends jspb.Message { - getOfferId(): string; - setOfferId(value: string): OfferAvailabilityResponse; - - getAvailabilityResult(): AvailabilityResult; - setAvailabilityResult(value: AvailabilityResult): OfferAvailabilityResponse; - - getSupportedCapabilitiesList(): Array; - setSupportedCapabilitiesList(value: Array): OfferAvailabilityResponse; - clearSupportedCapabilitiesList(): OfferAvailabilityResponse; - addSupportedCapabilities(value: number, index?: number): OfferAvailabilityResponse; - - getUid(): string; - setUid(value: string): OfferAvailabilityResponse; - - getMakerSignature(): string; - setMakerSignature(value: string): OfferAvailabilityResponse; - - getBackupArbitrator(): NodeAddress | undefined; - setBackupArbitrator(value?: NodeAddress): OfferAvailabilityResponse; - hasBackupArbitrator(): boolean; - clearBackupArbitrator(): OfferAvailabilityResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OfferAvailabilityResponse.AsObject; - static toObject(includeInstance: boolean, msg: OfferAvailabilityResponse): OfferAvailabilityResponse.AsObject; - static serializeBinaryToWriter(message: OfferAvailabilityResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OfferAvailabilityResponse; - static deserializeBinaryFromReader(message: OfferAvailabilityResponse, reader: jspb.BinaryReader): OfferAvailabilityResponse; -} - -export namespace OfferAvailabilityResponse { - export type AsObject = { - offerId: string, - availabilityResult: AvailabilityResult, - supportedCapabilitiesList: Array, - uid: string, - makerSignature: string, - backupArbitrator?: NodeAddress.AsObject, - } -} - -export class RefreshOfferMessage extends jspb.Message { - getHashOfDataAndSeqNr(): Uint8Array | string; - getHashOfDataAndSeqNr_asU8(): Uint8Array; - getHashOfDataAndSeqNr_asB64(): string; - setHashOfDataAndSeqNr(value: Uint8Array | string): RefreshOfferMessage; - - getSignature(): Uint8Array | string; - getSignature_asU8(): Uint8Array; - getSignature_asB64(): string; - setSignature(value: Uint8Array | string): RefreshOfferMessage; - - getHashOfPayload(): Uint8Array | string; - getHashOfPayload_asU8(): Uint8Array; - getHashOfPayload_asB64(): string; - setHashOfPayload(value: Uint8Array | string): RefreshOfferMessage; - - getSequenceNumber(): number; - setSequenceNumber(value: number): RefreshOfferMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RefreshOfferMessage.AsObject; - static toObject(includeInstance: boolean, msg: RefreshOfferMessage): RefreshOfferMessage.AsObject; - static serializeBinaryToWriter(message: RefreshOfferMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RefreshOfferMessage; - static deserializeBinaryFromReader(message: RefreshOfferMessage, reader: jspb.BinaryReader): RefreshOfferMessage; -} - -export namespace RefreshOfferMessage { - export type AsObject = { - hashOfDataAndSeqNr: Uint8Array | string, - signature: Uint8Array | string, - hashOfPayload: Uint8Array | string, - sequenceNumber: number, - } -} - -export class AddDataMessage extends jspb.Message { - getEntry(): StorageEntryWrapper | undefined; - setEntry(value?: StorageEntryWrapper): AddDataMessage; - hasEntry(): boolean; - clearEntry(): AddDataMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AddDataMessage.AsObject; - static toObject(includeInstance: boolean, msg: AddDataMessage): AddDataMessage.AsObject; - static serializeBinaryToWriter(message: AddDataMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AddDataMessage; - static deserializeBinaryFromReader(message: AddDataMessage, reader: jspb.BinaryReader): AddDataMessage; -} - -export namespace AddDataMessage { - export type AsObject = { - entry?: StorageEntryWrapper.AsObject, - } -} - -export class RemoveDataMessage extends jspb.Message { - getProtectedStorageEntry(): ProtectedStorageEntry | undefined; - setProtectedStorageEntry(value?: ProtectedStorageEntry): RemoveDataMessage; - hasProtectedStorageEntry(): boolean; - clearProtectedStorageEntry(): RemoveDataMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemoveDataMessage.AsObject; - static toObject(includeInstance: boolean, msg: RemoveDataMessage): RemoveDataMessage.AsObject; - static serializeBinaryToWriter(message: RemoveDataMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemoveDataMessage; - static deserializeBinaryFromReader(message: RemoveDataMessage, reader: jspb.BinaryReader): RemoveDataMessage; -} - -export namespace RemoveDataMessage { - export type AsObject = { - protectedStorageEntry?: ProtectedStorageEntry.AsObject, - } -} - -export class RemoveMailboxDataMessage extends jspb.Message { - getProtectedStorageEntry(): ProtectedMailboxStorageEntry | undefined; - setProtectedStorageEntry(value?: ProtectedMailboxStorageEntry): RemoveMailboxDataMessage; - hasProtectedStorageEntry(): boolean; - clearProtectedStorageEntry(): RemoveMailboxDataMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemoveMailboxDataMessage.AsObject; - static toObject(includeInstance: boolean, msg: RemoveMailboxDataMessage): RemoveMailboxDataMessage.AsObject; - static serializeBinaryToWriter(message: RemoveMailboxDataMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemoveMailboxDataMessage; - static deserializeBinaryFromReader(message: RemoveMailboxDataMessage, reader: jspb.BinaryReader): RemoveMailboxDataMessage; -} - -export namespace RemoveMailboxDataMessage { - export type AsObject = { - protectedStorageEntry?: ProtectedMailboxStorageEntry.AsObject, - } -} - -export class AddPersistableNetworkPayloadMessage extends jspb.Message { - getPayload(): PersistableNetworkPayload | undefined; - setPayload(value?: PersistableNetworkPayload): AddPersistableNetworkPayloadMessage; - hasPayload(): boolean; - clearPayload(): AddPersistableNetworkPayloadMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AddPersistableNetworkPayloadMessage.AsObject; - static toObject(includeInstance: boolean, msg: AddPersistableNetworkPayloadMessage): AddPersistableNetworkPayloadMessage.AsObject; - static serializeBinaryToWriter(message: AddPersistableNetworkPayloadMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AddPersistableNetworkPayloadMessage; - static deserializeBinaryFromReader(message: AddPersistableNetworkPayloadMessage, reader: jspb.BinaryReader): AddPersistableNetworkPayloadMessage; -} - -export namespace AddPersistableNetworkPayloadMessage { - export type AsObject = { - payload?: PersistableNetworkPayload.AsObject, - } -} - -export class CloseConnectionMessage extends jspb.Message { - getReason(): string; - setReason(value: string): CloseConnectionMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CloseConnectionMessage.AsObject; - static toObject(includeInstance: boolean, msg: CloseConnectionMessage): CloseConnectionMessage.AsObject; - static serializeBinaryToWriter(message: CloseConnectionMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CloseConnectionMessage; - static deserializeBinaryFromReader(message: CloseConnectionMessage, reader: jspb.BinaryReader): CloseConnectionMessage; -} - -export namespace CloseConnectionMessage { - export type AsObject = { - reason: string, - } -} - -export class AckMessage extends jspb.Message { - getUid(): string; - setUid(value: string): AckMessage; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): AckMessage; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): AckMessage; - - getSourceType(): string; - setSourceType(value: string): AckMessage; - - getSourceMsgClassName(): string; - setSourceMsgClassName(value: string): AckMessage; - - getSourceUid(): string; - setSourceUid(value: string): AckMessage; - - getSourceId(): string; - setSourceId(value: string): AckMessage; - - getSuccess(): boolean; - setSuccess(value: boolean): AckMessage; - - getErrorMessage(): string; - setErrorMessage(value: string): AckMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AckMessage.AsObject; - static toObject(includeInstance: boolean, msg: AckMessage): AckMessage.AsObject; - static serializeBinaryToWriter(message: AckMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AckMessage; - static deserializeBinaryFromReader(message: AckMessage, reader: jspb.BinaryReader): AckMessage; -} - -export namespace AckMessage { - export type AsObject = { - uid: string, - senderNodeAddress?: NodeAddress.AsObject, - sourceType: string, - sourceMsgClassName: string, - sourceUid: string, - sourceId: string, - success: boolean, - errorMessage: string, - } -} - -export class PrefixedSealedAndSignedMessage extends jspb.Message { - getNodeAddress(): NodeAddress | undefined; - setNodeAddress(value?: NodeAddress): PrefixedSealedAndSignedMessage; - hasNodeAddress(): boolean; - clearNodeAddress(): PrefixedSealedAndSignedMessage; - - getSealedAndSigned(): SealedAndSigned | undefined; - setSealedAndSigned(value?: SealedAndSigned): PrefixedSealedAndSignedMessage; - hasSealedAndSigned(): boolean; - clearSealedAndSigned(): PrefixedSealedAndSignedMessage; - - getAddressPrefixHash(): Uint8Array | string; - getAddressPrefixHash_asU8(): Uint8Array; - getAddressPrefixHash_asB64(): string; - setAddressPrefixHash(value: Uint8Array | string): PrefixedSealedAndSignedMessage; - - getUid(): string; - setUid(value: string): PrefixedSealedAndSignedMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PrefixedSealedAndSignedMessage.AsObject; - static toObject(includeInstance: boolean, msg: PrefixedSealedAndSignedMessage): PrefixedSealedAndSignedMessage.AsObject; - static serializeBinaryToWriter(message: PrefixedSealedAndSignedMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PrefixedSealedAndSignedMessage; - static deserializeBinaryFromReader(message: PrefixedSealedAndSignedMessage, reader: jspb.BinaryReader): PrefixedSealedAndSignedMessage; -} - -export namespace PrefixedSealedAndSignedMessage { - export type AsObject = { - nodeAddress?: NodeAddress.AsObject, - sealedAndSigned?: SealedAndSigned.AsObject, - addressPrefixHash: Uint8Array | string, - uid: string, - } -} - -export class InputsForDepositTxRequest extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): InputsForDepositTxRequest; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): InputsForDepositTxRequest; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): InputsForDepositTxRequest; - - getTradeAmount(): number; - setTradeAmount(value: number): InputsForDepositTxRequest; - - getTradePrice(): number; - setTradePrice(value: number): InputsForDepositTxRequest; - - getTxFee(): number; - setTxFee(value: number): InputsForDepositTxRequest; - - getTakerFee(): number; - setTakerFee(value: number): InputsForDepositTxRequest; - - getRawTransactionInputsList(): Array; - setRawTransactionInputsList(value: Array): InputsForDepositTxRequest; - clearRawTransactionInputsList(): InputsForDepositTxRequest; - addRawTransactionInputs(value?: RawTransactionInput, index?: number): RawTransactionInput; - - getChangeOutputValue(): number; - setChangeOutputValue(value: number): InputsForDepositTxRequest; - - getChangeOutputAddress(): string; - setChangeOutputAddress(value: string): InputsForDepositTxRequest; - - getTakerMultiSigPubKey(): Uint8Array | string; - getTakerMultiSigPubKey_asU8(): Uint8Array; - getTakerMultiSigPubKey_asB64(): string; - setTakerMultiSigPubKey(value: Uint8Array | string): InputsForDepositTxRequest; - - getTakerPayoutAddressString(): string; - setTakerPayoutAddressString(value: string): InputsForDepositTxRequest; - - getTakerPubKeyRing(): PubKeyRing | undefined; - setTakerPubKeyRing(value?: PubKeyRing): InputsForDepositTxRequest; - hasTakerPubKeyRing(): boolean; - clearTakerPubKeyRing(): InputsForDepositTxRequest; - - getTakerPaymentAccountPayload(): PaymentAccountPayload | undefined; - setTakerPaymentAccountPayload(value?: PaymentAccountPayload): InputsForDepositTxRequest; - hasTakerPaymentAccountPayload(): boolean; - clearTakerPaymentAccountPayload(): InputsForDepositTxRequest; - - getTakerAccountId(): string; - setTakerAccountId(value: string): InputsForDepositTxRequest; - - getTakerFeeTxId(): string; - setTakerFeeTxId(value: string): InputsForDepositTxRequest; - - getAcceptedArbitratorNodeAddressesList(): Array; - setAcceptedArbitratorNodeAddressesList(value: Array): InputsForDepositTxRequest; - clearAcceptedArbitratorNodeAddressesList(): InputsForDepositTxRequest; - addAcceptedArbitratorNodeAddresses(value?: NodeAddress, index?: number): NodeAddress; - - getAcceptedMediatorNodeAddressesList(): Array; - setAcceptedMediatorNodeAddressesList(value: Array): InputsForDepositTxRequest; - clearAcceptedMediatorNodeAddressesList(): InputsForDepositTxRequest; - addAcceptedMediatorNodeAddresses(value?: NodeAddress, index?: number): NodeAddress; - - getArbitratorNodeAddress(): NodeAddress | undefined; - setArbitratorNodeAddress(value?: NodeAddress): InputsForDepositTxRequest; - hasArbitratorNodeAddress(): boolean; - clearArbitratorNodeAddress(): InputsForDepositTxRequest; - - getMediatorNodeAddress(): NodeAddress | undefined; - setMediatorNodeAddress(value?: NodeAddress): InputsForDepositTxRequest; - hasMediatorNodeAddress(): boolean; - clearMediatorNodeAddress(): InputsForDepositTxRequest; - - getUid(): string; - setUid(value: string): InputsForDepositTxRequest; - - getAccountAgeWitnessSignatureOfOfferId(): Uint8Array | string; - getAccountAgeWitnessSignatureOfOfferId_asU8(): Uint8Array; - getAccountAgeWitnessSignatureOfOfferId_asB64(): string; - setAccountAgeWitnessSignatureOfOfferId(value: Uint8Array | string): InputsForDepositTxRequest; - - getCurrentDate(): number; - setCurrentDate(value: number): InputsForDepositTxRequest; - - getAcceptedRefundAgentNodeAddressesList(): Array; - setAcceptedRefundAgentNodeAddressesList(value: Array): InputsForDepositTxRequest; - clearAcceptedRefundAgentNodeAddressesList(): InputsForDepositTxRequest; - addAcceptedRefundAgentNodeAddresses(value?: NodeAddress, index?: number): NodeAddress; - - getRefundAgentNodeAddress(): NodeAddress | undefined; - setRefundAgentNodeAddress(value?: NodeAddress): InputsForDepositTxRequest; - hasRefundAgentNodeAddress(): boolean; - clearRefundAgentNodeAddress(): InputsForDepositTxRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InputsForDepositTxRequest.AsObject; - static toObject(includeInstance: boolean, msg: InputsForDepositTxRequest): InputsForDepositTxRequest.AsObject; - static serializeBinaryToWriter(message: InputsForDepositTxRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InputsForDepositTxRequest; - static deserializeBinaryFromReader(message: InputsForDepositTxRequest, reader: jspb.BinaryReader): InputsForDepositTxRequest; -} - -export namespace InputsForDepositTxRequest { - export type AsObject = { - tradeId: string, - senderNodeAddress?: NodeAddress.AsObject, - tradeAmount: number, - tradePrice: number, - txFee: number, - takerFee: number, - rawTransactionInputsList: Array, - changeOutputValue: number, - changeOutputAddress: string, - takerMultiSigPubKey: Uint8Array | string, - takerPayoutAddressString: string, - takerPubKeyRing?: PubKeyRing.AsObject, - takerPaymentAccountPayload?: PaymentAccountPayload.AsObject, - takerAccountId: string, - takerFeeTxId: string, - acceptedArbitratorNodeAddressesList: Array, - acceptedMediatorNodeAddressesList: Array, - arbitratorNodeAddress?: NodeAddress.AsObject, - mediatorNodeAddress?: NodeAddress.AsObject, - uid: string, - accountAgeWitnessSignatureOfOfferId: Uint8Array | string, - currentDate: number, - acceptedRefundAgentNodeAddressesList: Array, - refundAgentNodeAddress?: NodeAddress.AsObject, - } -} - -export class InputsForDepositTxResponse extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): InputsForDepositTxResponse; - - getMakerPaymentAccountPayload(): PaymentAccountPayload | undefined; - setMakerPaymentAccountPayload(value?: PaymentAccountPayload): InputsForDepositTxResponse; - hasMakerPaymentAccountPayload(): boolean; - clearMakerPaymentAccountPayload(): InputsForDepositTxResponse; - - getMakerAccountId(): string; - setMakerAccountId(value: string): InputsForDepositTxResponse; - - getMakerContractAsJson(): string; - setMakerContractAsJson(value: string): InputsForDepositTxResponse; - - getMakerContractSignature(): string; - setMakerContractSignature(value: string): InputsForDepositTxResponse; - - getMakerPayoutAddressString(): string; - setMakerPayoutAddressString(value: string): InputsForDepositTxResponse; - - getPreparedDepositTx(): Uint8Array | string; - getPreparedDepositTx_asU8(): Uint8Array; - getPreparedDepositTx_asB64(): string; - setPreparedDepositTx(value: Uint8Array | string): InputsForDepositTxResponse; - - getMakerInputsList(): Array; - setMakerInputsList(value: Array): InputsForDepositTxResponse; - clearMakerInputsList(): InputsForDepositTxResponse; - addMakerInputs(value?: RawTransactionInput, index?: number): RawTransactionInput; - - getMakerMultiSigPubKey(): Uint8Array | string; - getMakerMultiSigPubKey_asU8(): Uint8Array; - getMakerMultiSigPubKey_asB64(): string; - setMakerMultiSigPubKey(value: Uint8Array | string): InputsForDepositTxResponse; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): InputsForDepositTxResponse; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): InputsForDepositTxResponse; - - getUid(): string; - setUid(value: string): InputsForDepositTxResponse; - - getAccountAgeWitnessSignatureOfPreparedDepositTx(): Uint8Array | string; - getAccountAgeWitnessSignatureOfPreparedDepositTx_asU8(): Uint8Array; - getAccountAgeWitnessSignatureOfPreparedDepositTx_asB64(): string; - setAccountAgeWitnessSignatureOfPreparedDepositTx(value: Uint8Array | string): InputsForDepositTxResponse; - - getCurrentDate(): number; - setCurrentDate(value: number): InputsForDepositTxResponse; - - getLockTime(): number; - setLockTime(value: number): InputsForDepositTxResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InputsForDepositTxResponse.AsObject; - static toObject(includeInstance: boolean, msg: InputsForDepositTxResponse): InputsForDepositTxResponse.AsObject; - static serializeBinaryToWriter(message: InputsForDepositTxResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InputsForDepositTxResponse; - static deserializeBinaryFromReader(message: InputsForDepositTxResponse, reader: jspb.BinaryReader): InputsForDepositTxResponse; -} - -export namespace InputsForDepositTxResponse { - export type AsObject = { - tradeId: string, - makerPaymentAccountPayload?: PaymentAccountPayload.AsObject, - makerAccountId: string, - makerContractAsJson: string, - makerContractSignature: string, - makerPayoutAddressString: string, - preparedDepositTx: Uint8Array | string, - makerInputsList: Array, - makerMultiSigPubKey: Uint8Array | string, - senderNodeAddress?: NodeAddress.AsObject, - uid: string, - accountAgeWitnessSignatureOfPreparedDepositTx: Uint8Array | string, - currentDate: number, - lockTime: number, - } -} - -export class InitTradeRequest extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): InitTradeRequest; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): InitTradeRequest; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): InitTradeRequest; - - getPubKeyRing(): PubKeyRing | undefined; - setPubKeyRing(value?: PubKeyRing): InitTradeRequest; - hasPubKeyRing(): boolean; - clearPubKeyRing(): InitTradeRequest; - - getTradeAmount(): number; - setTradeAmount(value: number): InitTradeRequest; - - getTradePrice(): number; - setTradePrice(value: number): InitTradeRequest; - - getTradeFee(): number; - setTradeFee(value: number): InitTradeRequest; - - getAccountId(): string; - setAccountId(value: string): InitTradeRequest; - - getPaymentAccountId(): string; - setPaymentAccountId(value: string): InitTradeRequest; - - getPaymentMethodId(): string; - setPaymentMethodId(value: string): InitTradeRequest; - - getUid(): string; - setUid(value: string): InitTradeRequest; - - getAccountAgeWitnessSignatureOfOfferId(): Uint8Array | string; - getAccountAgeWitnessSignatureOfOfferId_asU8(): Uint8Array; - getAccountAgeWitnessSignatureOfOfferId_asB64(): string; - setAccountAgeWitnessSignatureOfOfferId(value: Uint8Array | string): InitTradeRequest; - - getCurrentDate(): number; - setCurrentDate(value: number): InitTradeRequest; - - getMakerNodeAddress(): NodeAddress | undefined; - setMakerNodeAddress(value?: NodeAddress): InitTradeRequest; - hasMakerNodeAddress(): boolean; - clearMakerNodeAddress(): InitTradeRequest; - - getTakerNodeAddress(): NodeAddress | undefined; - setTakerNodeAddress(value?: NodeAddress): InitTradeRequest; - hasTakerNodeAddress(): boolean; - clearTakerNodeAddress(): InitTradeRequest; - - getArbitratorNodeAddress(): NodeAddress | undefined; - setArbitratorNodeAddress(value?: NodeAddress): InitTradeRequest; - hasArbitratorNodeAddress(): boolean; - clearArbitratorNodeAddress(): InitTradeRequest; - - getReserveTxHash(): string; - setReserveTxHash(value: string): InitTradeRequest; - - getReserveTxHex(): string; - setReserveTxHex(value: string): InitTradeRequest; - - getReserveTxKey(): string; - setReserveTxKey(value: string): InitTradeRequest; - - getPayoutAddress(): string; - setPayoutAddress(value: string): InitTradeRequest; - - getMakerSignature(): string; - setMakerSignature(value: string): InitTradeRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InitTradeRequest.AsObject; - static toObject(includeInstance: boolean, msg: InitTradeRequest): InitTradeRequest.AsObject; - static serializeBinaryToWriter(message: InitTradeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InitTradeRequest; - static deserializeBinaryFromReader(message: InitTradeRequest, reader: jspb.BinaryReader): InitTradeRequest; -} - -export namespace InitTradeRequest { - export type AsObject = { - tradeId: string, - senderNodeAddress?: NodeAddress.AsObject, - pubKeyRing?: PubKeyRing.AsObject, - tradeAmount: number, - tradePrice: number, - tradeFee: number, - accountId: string, - paymentAccountId: string, - paymentMethodId: string, - uid: string, - accountAgeWitnessSignatureOfOfferId: Uint8Array | string, - currentDate: number, - makerNodeAddress?: NodeAddress.AsObject, - takerNodeAddress?: NodeAddress.AsObject, - arbitratorNodeAddress?: NodeAddress.AsObject, - reserveTxHash: string, - reserveTxHex: string, - reserveTxKey: string, - payoutAddress: string, - makerSignature: string, - } -} - -export class InitMultisigRequest extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): InitMultisigRequest; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): InitMultisigRequest; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): InitMultisigRequest; - - getPubKeyRing(): PubKeyRing | undefined; - setPubKeyRing(value?: PubKeyRing): InitMultisigRequest; - hasPubKeyRing(): boolean; - clearPubKeyRing(): InitMultisigRequest; - - getUid(): string; - setUid(value: string): InitMultisigRequest; - - getCurrentDate(): number; - setCurrentDate(value: number): InitMultisigRequest; - - getPreparedMultisigHex(): string; - setPreparedMultisigHex(value: string): InitMultisigRequest; - - getMadeMultisigHex(): string; - setMadeMultisigHex(value: string): InitMultisigRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InitMultisigRequest.AsObject; - static toObject(includeInstance: boolean, msg: InitMultisigRequest): InitMultisigRequest.AsObject; - static serializeBinaryToWriter(message: InitMultisigRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InitMultisigRequest; - static deserializeBinaryFromReader(message: InitMultisigRequest, reader: jspb.BinaryReader): InitMultisigRequest; -} - -export namespace InitMultisigRequest { - export type AsObject = { - tradeId: string, - senderNodeAddress?: NodeAddress.AsObject, - pubKeyRing?: PubKeyRing.AsObject, - uid: string, - currentDate: number, - preparedMultisigHex: string, - madeMultisigHex: string, - } -} - -export class SignContractRequest extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): SignContractRequest; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): SignContractRequest; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): SignContractRequest; - - getPubKeyRing(): PubKeyRing | undefined; - setPubKeyRing(value?: PubKeyRing): SignContractRequest; - hasPubKeyRing(): boolean; - clearPubKeyRing(): SignContractRequest; - - getUid(): string; - setUid(value: string): SignContractRequest; - - getCurrentDate(): number; - setCurrentDate(value: number): SignContractRequest; - - getAccountId(): string; - setAccountId(value: string): SignContractRequest; - - getPaymentAccountPayloadHash(): Uint8Array | string; - getPaymentAccountPayloadHash_asU8(): Uint8Array; - getPaymentAccountPayloadHash_asB64(): string; - setPaymentAccountPayloadHash(value: Uint8Array | string): SignContractRequest; - - getPayoutAddress(): string; - setPayoutAddress(value: string): SignContractRequest; - - getDepositTxHash(): string; - setDepositTxHash(value: string): SignContractRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SignContractRequest.AsObject; - static toObject(includeInstance: boolean, msg: SignContractRequest): SignContractRequest.AsObject; - static serializeBinaryToWriter(message: SignContractRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SignContractRequest; - static deserializeBinaryFromReader(message: SignContractRequest, reader: jspb.BinaryReader): SignContractRequest; -} - -export namespace SignContractRequest { - export type AsObject = { - tradeId: string, - senderNodeAddress?: NodeAddress.AsObject, - pubKeyRing?: PubKeyRing.AsObject, - uid: string, - currentDate: number, - accountId: string, - paymentAccountPayloadHash: Uint8Array | string, - payoutAddress: string, - depositTxHash: string, - } -} - -export class SignContractResponse extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): SignContractResponse; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): SignContractResponse; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): SignContractResponse; - - getPubKeyRing(): PubKeyRing | undefined; - setPubKeyRing(value?: PubKeyRing): SignContractResponse; - hasPubKeyRing(): boolean; - clearPubKeyRing(): SignContractResponse; - - getUid(): string; - setUid(value: string): SignContractResponse; - - getCurrentDate(): number; - setCurrentDate(value: number): SignContractResponse; - - getContractSignature(): string; - setContractSignature(value: string): SignContractResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SignContractResponse.AsObject; - static toObject(includeInstance: boolean, msg: SignContractResponse): SignContractResponse.AsObject; - static serializeBinaryToWriter(message: SignContractResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SignContractResponse; - static deserializeBinaryFromReader(message: SignContractResponse, reader: jspb.BinaryReader): SignContractResponse; -} - -export namespace SignContractResponse { - export type AsObject = { - tradeId: string, - senderNodeAddress?: NodeAddress.AsObject, - pubKeyRing?: PubKeyRing.AsObject, - uid: string, - currentDate: number, - contractSignature: string, - } -} - -export class DepositRequest extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): DepositRequest; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): DepositRequest; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): DepositRequest; - - getPubKeyRing(): PubKeyRing | undefined; - setPubKeyRing(value?: PubKeyRing): DepositRequest; - hasPubKeyRing(): boolean; - clearPubKeyRing(): DepositRequest; - - getUid(): string; - setUid(value: string): DepositRequest; - - getCurrentDate(): number; - setCurrentDate(value: number): DepositRequest; - - getContractSignature(): string; - setContractSignature(value: string): DepositRequest; - - getDepositTxHex(): string; - setDepositTxHex(value: string): DepositRequest; - - getDepositTxKey(): string; - setDepositTxKey(value: string): DepositRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DepositRequest.AsObject; - static toObject(includeInstance: boolean, msg: DepositRequest): DepositRequest.AsObject; - static serializeBinaryToWriter(message: DepositRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DepositRequest; - static deserializeBinaryFromReader(message: DepositRequest, reader: jspb.BinaryReader): DepositRequest; -} - -export namespace DepositRequest { - export type AsObject = { - tradeId: string, - senderNodeAddress?: NodeAddress.AsObject, - pubKeyRing?: PubKeyRing.AsObject, - uid: string, - currentDate: number, - contractSignature: string, - depositTxHex: string, - depositTxKey: string, - } -} - -export class DepositResponse extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): DepositResponse; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): DepositResponse; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): DepositResponse; - - getPubKeyRing(): PubKeyRing | undefined; - setPubKeyRing(value?: PubKeyRing): DepositResponse; - hasPubKeyRing(): boolean; - clearPubKeyRing(): DepositResponse; - - getUid(): string; - setUid(value: string): DepositResponse; - - getCurrentDate(): number; - setCurrentDate(value: number): DepositResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DepositResponse.AsObject; - static toObject(includeInstance: boolean, msg: DepositResponse): DepositResponse.AsObject; - static serializeBinaryToWriter(message: DepositResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DepositResponse; - static deserializeBinaryFromReader(message: DepositResponse, reader: jspb.BinaryReader): DepositResponse; -} - -export namespace DepositResponse { - export type AsObject = { - tradeId: string, - senderNodeAddress?: NodeAddress.AsObject, - pubKeyRing?: PubKeyRing.AsObject, - uid: string, - currentDate: number, - } -} - -export class PaymentAccountPayloadRequest extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): PaymentAccountPayloadRequest; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): PaymentAccountPayloadRequest; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): PaymentAccountPayloadRequest; - - getPubKeyRing(): PubKeyRing | undefined; - setPubKeyRing(value?: PubKeyRing): PaymentAccountPayloadRequest; - hasPubKeyRing(): boolean; - clearPubKeyRing(): PaymentAccountPayloadRequest; - - getUid(): string; - setUid(value: string): PaymentAccountPayloadRequest; - - getCurrentDate(): number; - setCurrentDate(value: number): PaymentAccountPayloadRequest; - - getPaymentAccountPayload(): PaymentAccountPayload | undefined; - setPaymentAccountPayload(value?: PaymentAccountPayload): PaymentAccountPayloadRequest; - hasPaymentAccountPayload(): boolean; - clearPaymentAccountPayload(): PaymentAccountPayloadRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PaymentAccountPayloadRequest.AsObject; - static toObject(includeInstance: boolean, msg: PaymentAccountPayloadRequest): PaymentAccountPayloadRequest.AsObject; - static serializeBinaryToWriter(message: PaymentAccountPayloadRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PaymentAccountPayloadRequest; - static deserializeBinaryFromReader(message: PaymentAccountPayloadRequest, reader: jspb.BinaryReader): PaymentAccountPayloadRequest; -} - -export namespace PaymentAccountPayloadRequest { - export type AsObject = { - tradeId: string, - senderNodeAddress?: NodeAddress.AsObject, - pubKeyRing?: PubKeyRing.AsObject, - uid: string, - currentDate: number, - paymentAccountPayload?: PaymentAccountPayload.AsObject, - } -} - -export class UpdateMultisigRequest extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): UpdateMultisigRequest; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): UpdateMultisigRequest; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): UpdateMultisigRequest; - - getPubKeyRing(): PubKeyRing | undefined; - setPubKeyRing(value?: PubKeyRing): UpdateMultisigRequest; - hasPubKeyRing(): boolean; - clearPubKeyRing(): UpdateMultisigRequest; - - getUid(): string; - setUid(value: string): UpdateMultisigRequest; - - getCurrentDate(): number; - setCurrentDate(value: number): UpdateMultisigRequest; - - getUpdatedMultisigHex(): string; - setUpdatedMultisigHex(value: string): UpdateMultisigRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateMultisigRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateMultisigRequest): UpdateMultisigRequest.AsObject; - static serializeBinaryToWriter(message: UpdateMultisigRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateMultisigRequest; - static deserializeBinaryFromReader(message: UpdateMultisigRequest, reader: jspb.BinaryReader): UpdateMultisigRequest; -} - -export namespace UpdateMultisigRequest { - export type AsObject = { - tradeId: string, - senderNodeAddress?: NodeAddress.AsObject, - pubKeyRing?: PubKeyRing.AsObject, - uid: string, - currentDate: number, - updatedMultisigHex: string, - } -} - -export class UpdateMultisigResponse extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): UpdateMultisigResponse; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): UpdateMultisigResponse; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): UpdateMultisigResponse; - - getPubKeyRing(): PubKeyRing | undefined; - setPubKeyRing(value?: PubKeyRing): UpdateMultisigResponse; - hasPubKeyRing(): boolean; - clearPubKeyRing(): UpdateMultisigResponse; - - getUid(): string; - setUid(value: string): UpdateMultisigResponse; - - getCurrentDate(): number; - setCurrentDate(value: number): UpdateMultisigResponse; - - getUpdatedMultisigHex(): string; - setUpdatedMultisigHex(value: string): UpdateMultisigResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateMultisigResponse.AsObject; - static toObject(includeInstance: boolean, msg: UpdateMultisigResponse): UpdateMultisigResponse.AsObject; - static serializeBinaryToWriter(message: UpdateMultisigResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateMultisigResponse; - static deserializeBinaryFromReader(message: UpdateMultisigResponse, reader: jspb.BinaryReader): UpdateMultisigResponse; -} - -export namespace UpdateMultisigResponse { - export type AsObject = { - tradeId: string, - senderNodeAddress?: NodeAddress.AsObject, - pubKeyRing?: PubKeyRing.AsObject, - uid: string, - currentDate: number, - updatedMultisigHex: string, - } -} - -export class DelayedPayoutTxSignatureRequest extends jspb.Message { - getUid(): string; - setUid(value: string): DelayedPayoutTxSignatureRequest; - - getTradeId(): string; - setTradeId(value: string): DelayedPayoutTxSignatureRequest; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): DelayedPayoutTxSignatureRequest; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): DelayedPayoutTxSignatureRequest; - - getDelayedPayoutTx(): Uint8Array | string; - getDelayedPayoutTx_asU8(): Uint8Array; - getDelayedPayoutTx_asB64(): string; - setDelayedPayoutTx(value: Uint8Array | string): DelayedPayoutTxSignatureRequest; - - getDelayedPayoutTxSellerSignature(): Uint8Array | string; - getDelayedPayoutTxSellerSignature_asU8(): Uint8Array; - getDelayedPayoutTxSellerSignature_asB64(): string; - setDelayedPayoutTxSellerSignature(value: Uint8Array | string): DelayedPayoutTxSignatureRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DelayedPayoutTxSignatureRequest.AsObject; - static toObject(includeInstance: boolean, msg: DelayedPayoutTxSignatureRequest): DelayedPayoutTxSignatureRequest.AsObject; - static serializeBinaryToWriter(message: DelayedPayoutTxSignatureRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DelayedPayoutTxSignatureRequest; - static deserializeBinaryFromReader(message: DelayedPayoutTxSignatureRequest, reader: jspb.BinaryReader): DelayedPayoutTxSignatureRequest; -} - -export namespace DelayedPayoutTxSignatureRequest { - export type AsObject = { - uid: string, - tradeId: string, - senderNodeAddress?: NodeAddress.AsObject, - delayedPayoutTx: Uint8Array | string, - delayedPayoutTxSellerSignature: Uint8Array | string, - } -} - -export class DelayedPayoutTxSignatureResponse extends jspb.Message { - getUid(): string; - setUid(value: string): DelayedPayoutTxSignatureResponse; - - getTradeId(): string; - setTradeId(value: string): DelayedPayoutTxSignatureResponse; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): DelayedPayoutTxSignatureResponse; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): DelayedPayoutTxSignatureResponse; - - getDelayedPayoutTxBuyerSignature(): Uint8Array | string; - getDelayedPayoutTxBuyerSignature_asU8(): Uint8Array; - getDelayedPayoutTxBuyerSignature_asB64(): string; - setDelayedPayoutTxBuyerSignature(value: Uint8Array | string): DelayedPayoutTxSignatureResponse; - - getDepositTx(): Uint8Array | string; - getDepositTx_asU8(): Uint8Array; - getDepositTx_asB64(): string; - setDepositTx(value: Uint8Array | string): DelayedPayoutTxSignatureResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DelayedPayoutTxSignatureResponse.AsObject; - static toObject(includeInstance: boolean, msg: DelayedPayoutTxSignatureResponse): DelayedPayoutTxSignatureResponse.AsObject; - static serializeBinaryToWriter(message: DelayedPayoutTxSignatureResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DelayedPayoutTxSignatureResponse; - static deserializeBinaryFromReader(message: DelayedPayoutTxSignatureResponse, reader: jspb.BinaryReader): DelayedPayoutTxSignatureResponse; -} - -export namespace DelayedPayoutTxSignatureResponse { - export type AsObject = { - uid: string, - tradeId: string, - senderNodeAddress?: NodeAddress.AsObject, - delayedPayoutTxBuyerSignature: Uint8Array | string, - depositTx: Uint8Array | string, - } -} - -export class DepositTxAndDelayedPayoutTxMessage extends jspb.Message { - getUid(): string; - setUid(value: string): DepositTxAndDelayedPayoutTxMessage; - - getTradeId(): string; - setTradeId(value: string): DepositTxAndDelayedPayoutTxMessage; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): DepositTxAndDelayedPayoutTxMessage; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): DepositTxAndDelayedPayoutTxMessage; - - getDepositTx(): Uint8Array | string; - getDepositTx_asU8(): Uint8Array; - getDepositTx_asB64(): string; - setDepositTx(value: Uint8Array | string): DepositTxAndDelayedPayoutTxMessage; - - getDelayedPayoutTx(): Uint8Array | string; - getDelayedPayoutTx_asU8(): Uint8Array; - getDelayedPayoutTx_asB64(): string; - setDelayedPayoutTx(value: Uint8Array | string): DepositTxAndDelayedPayoutTxMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DepositTxAndDelayedPayoutTxMessage.AsObject; - static toObject(includeInstance: boolean, msg: DepositTxAndDelayedPayoutTxMessage): DepositTxAndDelayedPayoutTxMessage.AsObject; - static serializeBinaryToWriter(message: DepositTxAndDelayedPayoutTxMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DepositTxAndDelayedPayoutTxMessage; - static deserializeBinaryFromReader(message: DepositTxAndDelayedPayoutTxMessage, reader: jspb.BinaryReader): DepositTxAndDelayedPayoutTxMessage; -} - -export namespace DepositTxAndDelayedPayoutTxMessage { - export type AsObject = { - uid: string, - tradeId: string, - senderNodeAddress?: NodeAddress.AsObject, - depositTx: Uint8Array | string, - delayedPayoutTx: Uint8Array | string, - } -} - -export class DepositTxMessage extends jspb.Message { - getUid(): string; - setUid(value: string): DepositTxMessage; - - getTradeId(): string; - setTradeId(value: string): DepositTxMessage; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): DepositTxMessage; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): DepositTxMessage; - - getDepositTxWithoutWitnesses(): Uint8Array | string; - getDepositTxWithoutWitnesses_asU8(): Uint8Array; - getDepositTxWithoutWitnesses_asB64(): string; - setDepositTxWithoutWitnesses(value: Uint8Array | string): DepositTxMessage; - - getPubKeyRing(): PubKeyRing | undefined; - setPubKeyRing(value?: PubKeyRing): DepositTxMessage; - hasPubKeyRing(): boolean; - clearPubKeyRing(): DepositTxMessage; - - getTradeFeeTxId(): string; - setTradeFeeTxId(value: string): DepositTxMessage; - - getDepositTxId(): string; - setDepositTxId(value: string): DepositTxMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DepositTxMessage.AsObject; - static toObject(includeInstance: boolean, msg: DepositTxMessage): DepositTxMessage.AsObject; - static serializeBinaryToWriter(message: DepositTxMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DepositTxMessage; - static deserializeBinaryFromReader(message: DepositTxMessage, reader: jspb.BinaryReader): DepositTxMessage; -} - -export namespace DepositTxMessage { - export type AsObject = { - uid: string, - tradeId: string, - senderNodeAddress?: NodeAddress.AsObject, - depositTxWithoutWitnesses: Uint8Array | string, - pubKeyRing?: PubKeyRing.AsObject, - tradeFeeTxId: string, - depositTxId: string, - } -} - -export class PeerPublishedDelayedPayoutTxMessage extends jspb.Message { - getUid(): string; - setUid(value: string): PeerPublishedDelayedPayoutTxMessage; - - getTradeId(): string; - setTradeId(value: string): PeerPublishedDelayedPayoutTxMessage; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): PeerPublishedDelayedPayoutTxMessage; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): PeerPublishedDelayedPayoutTxMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PeerPublishedDelayedPayoutTxMessage.AsObject; - static toObject(includeInstance: boolean, msg: PeerPublishedDelayedPayoutTxMessage): PeerPublishedDelayedPayoutTxMessage.AsObject; - static serializeBinaryToWriter(message: PeerPublishedDelayedPayoutTxMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PeerPublishedDelayedPayoutTxMessage; - static deserializeBinaryFromReader(message: PeerPublishedDelayedPayoutTxMessage, reader: jspb.BinaryReader): PeerPublishedDelayedPayoutTxMessage; -} - -export namespace PeerPublishedDelayedPayoutTxMessage { - export type AsObject = { - uid: string, - tradeId: string, - senderNodeAddress?: NodeAddress.AsObject, - } -} - -export class CounterCurrencyTransferStartedMessage extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): CounterCurrencyTransferStartedMessage; - - getBuyerPayoutAddress(): string; - setBuyerPayoutAddress(value: string): CounterCurrencyTransferStartedMessage; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): CounterCurrencyTransferStartedMessage; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): CounterCurrencyTransferStartedMessage; - - getBuyerPayoutTxSigned(): string; - setBuyerPayoutTxSigned(value: string): CounterCurrencyTransferStartedMessage; - - getCounterCurrencyTxId(): string; - setCounterCurrencyTxId(value: string): CounterCurrencyTransferStartedMessage; - - getUid(): string; - setUid(value: string): CounterCurrencyTransferStartedMessage; - - getCounterCurrencyExtraData(): string; - setCounterCurrencyExtraData(value: string): CounterCurrencyTransferStartedMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CounterCurrencyTransferStartedMessage.AsObject; - static toObject(includeInstance: boolean, msg: CounterCurrencyTransferStartedMessage): CounterCurrencyTransferStartedMessage.AsObject; - static serializeBinaryToWriter(message: CounterCurrencyTransferStartedMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CounterCurrencyTransferStartedMessage; - static deserializeBinaryFromReader(message: CounterCurrencyTransferStartedMessage, reader: jspb.BinaryReader): CounterCurrencyTransferStartedMessage; -} - -export namespace CounterCurrencyTransferStartedMessage { - export type AsObject = { - tradeId: string, - buyerPayoutAddress: string, - senderNodeAddress?: NodeAddress.AsObject, - buyerPayoutTxSigned: string, - counterCurrencyTxId: string, - uid: string, - counterCurrencyExtraData: string, - } -} - -export class FinalizePayoutTxRequest extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): FinalizePayoutTxRequest; - - getSellerSignature(): Uint8Array | string; - getSellerSignature_asU8(): Uint8Array; - getSellerSignature_asB64(): string; - setSellerSignature(value: Uint8Array | string): FinalizePayoutTxRequest; - - getSellerPayoutAddress(): string; - setSellerPayoutAddress(value: string): FinalizePayoutTxRequest; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): FinalizePayoutTxRequest; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): FinalizePayoutTxRequest; - - getUid(): string; - setUid(value: string): FinalizePayoutTxRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FinalizePayoutTxRequest.AsObject; - static toObject(includeInstance: boolean, msg: FinalizePayoutTxRequest): FinalizePayoutTxRequest.AsObject; - static serializeBinaryToWriter(message: FinalizePayoutTxRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FinalizePayoutTxRequest; - static deserializeBinaryFromReader(message: FinalizePayoutTxRequest, reader: jspb.BinaryReader): FinalizePayoutTxRequest; -} - -export namespace FinalizePayoutTxRequest { - export type AsObject = { - tradeId: string, - sellerSignature: Uint8Array | string, - sellerPayoutAddress: string, - senderNodeAddress?: NodeAddress.AsObject, - uid: string, - } -} - -export class ArbitratorPayoutTxRequest extends jspb.Message { - getDispute(): Dispute | undefined; - setDispute(value?: Dispute): ArbitratorPayoutTxRequest; - hasDispute(): boolean; - clearDispute(): ArbitratorPayoutTxRequest; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): ArbitratorPayoutTxRequest; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): ArbitratorPayoutTxRequest; - - getUid(): string; - setUid(value: string): ArbitratorPayoutTxRequest; - - getType(): SupportType; - setType(value: SupportType): ArbitratorPayoutTxRequest; - - getUpdatedMultisigHex(): string; - setUpdatedMultisigHex(value: string): ArbitratorPayoutTxRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ArbitratorPayoutTxRequest.AsObject; - static toObject(includeInstance: boolean, msg: ArbitratorPayoutTxRequest): ArbitratorPayoutTxRequest.AsObject; - static serializeBinaryToWriter(message: ArbitratorPayoutTxRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ArbitratorPayoutTxRequest; - static deserializeBinaryFromReader(message: ArbitratorPayoutTxRequest, reader: jspb.BinaryReader): ArbitratorPayoutTxRequest; -} - -export namespace ArbitratorPayoutTxRequest { - export type AsObject = { - dispute?: Dispute.AsObject, - senderNodeAddress?: NodeAddress.AsObject, - uid: string, - type: SupportType, - updatedMultisigHex: string, - } -} - -export class ArbitratorPayoutTxResponse extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): ArbitratorPayoutTxResponse; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): ArbitratorPayoutTxResponse; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): ArbitratorPayoutTxResponse; - - getUid(): string; - setUid(value: string): ArbitratorPayoutTxResponse; - - getType(): SupportType; - setType(value: SupportType): ArbitratorPayoutTxResponse; - - getArbitratorSignedPayoutTxHex(): string; - setArbitratorSignedPayoutTxHex(value: string): ArbitratorPayoutTxResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ArbitratorPayoutTxResponse.AsObject; - static toObject(includeInstance: boolean, msg: ArbitratorPayoutTxResponse): ArbitratorPayoutTxResponse.AsObject; - static serializeBinaryToWriter(message: ArbitratorPayoutTxResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ArbitratorPayoutTxResponse; - static deserializeBinaryFromReader(message: ArbitratorPayoutTxResponse, reader: jspb.BinaryReader): ArbitratorPayoutTxResponse; -} - -export namespace ArbitratorPayoutTxResponse { - export type AsObject = { - tradeId: string, - senderNodeAddress?: NodeAddress.AsObject, - uid: string, - type: SupportType, - arbitratorSignedPayoutTxHex: string, - } -} - -export class PayoutTxPublishedMessage extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): PayoutTxPublishedMessage; - - getSignedMultisigTxHex(): string; - setSignedMultisigTxHex(value: string): PayoutTxPublishedMessage; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): PayoutTxPublishedMessage; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): PayoutTxPublishedMessage; - - getUid(): string; - setUid(value: string): PayoutTxPublishedMessage; - - getSignedWitness(): SignedWitness | undefined; - setSignedWitness(value?: SignedWitness): PayoutTxPublishedMessage; - hasSignedWitness(): boolean; - clearSignedWitness(): PayoutTxPublishedMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PayoutTxPublishedMessage.AsObject; - static toObject(includeInstance: boolean, msg: PayoutTxPublishedMessage): PayoutTxPublishedMessage.AsObject; - static serializeBinaryToWriter(message: PayoutTxPublishedMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PayoutTxPublishedMessage; - static deserializeBinaryFromReader(message: PayoutTxPublishedMessage, reader: jspb.BinaryReader): PayoutTxPublishedMessage; -} - -export namespace PayoutTxPublishedMessage { - export type AsObject = { - tradeId: string, - signedMultisigTxHex: string, - senderNodeAddress?: NodeAddress.AsObject, - uid: string, - signedWitness?: SignedWitness.AsObject, - } -} - -export class MediatedPayoutTxPublishedMessage extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): MediatedPayoutTxPublishedMessage; - - getPayoutTx(): Uint8Array | string; - getPayoutTx_asU8(): Uint8Array; - getPayoutTx_asB64(): string; - setPayoutTx(value: Uint8Array | string): MediatedPayoutTxPublishedMessage; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): MediatedPayoutTxPublishedMessage; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): MediatedPayoutTxPublishedMessage; - - getUid(): string; - setUid(value: string): MediatedPayoutTxPublishedMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MediatedPayoutTxPublishedMessage.AsObject; - static toObject(includeInstance: boolean, msg: MediatedPayoutTxPublishedMessage): MediatedPayoutTxPublishedMessage.AsObject; - static serializeBinaryToWriter(message: MediatedPayoutTxPublishedMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MediatedPayoutTxPublishedMessage; - static deserializeBinaryFromReader(message: MediatedPayoutTxPublishedMessage, reader: jspb.BinaryReader): MediatedPayoutTxPublishedMessage; -} - -export namespace MediatedPayoutTxPublishedMessage { - export type AsObject = { - tradeId: string, - payoutTx: Uint8Array | string, - senderNodeAddress?: NodeAddress.AsObject, - uid: string, - } -} - -export class MediatedPayoutTxSignatureMessage extends jspb.Message { - getUid(): string; - setUid(value: string): MediatedPayoutTxSignatureMessage; - - getTradeId(): string; - setTradeId(value: string): MediatedPayoutTxSignatureMessage; - - getTxSignature(): Uint8Array | string; - getTxSignature_asU8(): Uint8Array; - getTxSignature_asB64(): string; - setTxSignature(value: Uint8Array | string): MediatedPayoutTxSignatureMessage; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): MediatedPayoutTxSignatureMessage; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): MediatedPayoutTxSignatureMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MediatedPayoutTxSignatureMessage.AsObject; - static toObject(includeInstance: boolean, msg: MediatedPayoutTxSignatureMessage): MediatedPayoutTxSignatureMessage.AsObject; - static serializeBinaryToWriter(message: MediatedPayoutTxSignatureMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MediatedPayoutTxSignatureMessage; - static deserializeBinaryFromReader(message: MediatedPayoutTxSignatureMessage, reader: jspb.BinaryReader): MediatedPayoutTxSignatureMessage; -} - -export namespace MediatedPayoutTxSignatureMessage { - export type AsObject = { - uid: string, - tradeId: string, - txSignature: Uint8Array | string, - senderNodeAddress?: NodeAddress.AsObject, - } -} - -export class RefreshTradeStateRequest extends jspb.Message { - getUid(): string; - setUid(value: string): RefreshTradeStateRequest; - - getTradeId(): string; - setTradeId(value: string): RefreshTradeStateRequest; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): RefreshTradeStateRequest; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): RefreshTradeStateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RefreshTradeStateRequest.AsObject; - static toObject(includeInstance: boolean, msg: RefreshTradeStateRequest): RefreshTradeStateRequest.AsObject; - static serializeBinaryToWriter(message: RefreshTradeStateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RefreshTradeStateRequest; - static deserializeBinaryFromReader(message: RefreshTradeStateRequest, reader: jspb.BinaryReader): RefreshTradeStateRequest; -} - -export namespace RefreshTradeStateRequest { - export type AsObject = { - uid: string, - tradeId: string, - senderNodeAddress?: NodeAddress.AsObject, - } -} - -export class TraderSignedWitnessMessage extends jspb.Message { - getUid(): string; - setUid(value: string): TraderSignedWitnessMessage; - - getTradeId(): string; - setTradeId(value: string): TraderSignedWitnessMessage; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): TraderSignedWitnessMessage; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): TraderSignedWitnessMessage; - - getSignedWitness(): SignedWitness | undefined; - setSignedWitness(value?: SignedWitness): TraderSignedWitnessMessage; - hasSignedWitness(): boolean; - clearSignedWitness(): TraderSignedWitnessMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TraderSignedWitnessMessage.AsObject; - static toObject(includeInstance: boolean, msg: TraderSignedWitnessMessage): TraderSignedWitnessMessage.AsObject; - static serializeBinaryToWriter(message: TraderSignedWitnessMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TraderSignedWitnessMessage; - static deserializeBinaryFromReader(message: TraderSignedWitnessMessage, reader: jspb.BinaryReader): TraderSignedWitnessMessage; -} - -export namespace TraderSignedWitnessMessage { - export type AsObject = { - uid: string, - tradeId: string, - senderNodeAddress?: NodeAddress.AsObject, - signedWitness?: SignedWitness.AsObject, - } -} - -export class OpenNewDisputeMessage extends jspb.Message { - getDispute(): Dispute | undefined; - setDispute(value?: Dispute): OpenNewDisputeMessage; - hasDispute(): boolean; - clearDispute(): OpenNewDisputeMessage; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): OpenNewDisputeMessage; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): OpenNewDisputeMessage; - - getUid(): string; - setUid(value: string): OpenNewDisputeMessage; - - getType(): SupportType; - setType(value: SupportType): OpenNewDisputeMessage; - - getUpdatedMultisigHex(): string; - setUpdatedMultisigHex(value: string): OpenNewDisputeMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OpenNewDisputeMessage.AsObject; - static toObject(includeInstance: boolean, msg: OpenNewDisputeMessage): OpenNewDisputeMessage.AsObject; - static serializeBinaryToWriter(message: OpenNewDisputeMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OpenNewDisputeMessage; - static deserializeBinaryFromReader(message: OpenNewDisputeMessage, reader: jspb.BinaryReader): OpenNewDisputeMessage; -} - -export namespace OpenNewDisputeMessage { - export type AsObject = { - dispute?: Dispute.AsObject, - senderNodeAddress?: NodeAddress.AsObject, - uid: string, - type: SupportType, - updatedMultisigHex: string, - } -} - -export class PeerOpenedDisputeMessage extends jspb.Message { - getDispute(): Dispute | undefined; - setDispute(value?: Dispute): PeerOpenedDisputeMessage; - hasDispute(): boolean; - clearDispute(): PeerOpenedDisputeMessage; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): PeerOpenedDisputeMessage; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): PeerOpenedDisputeMessage; - - getUid(): string; - setUid(value: string): PeerOpenedDisputeMessage; - - getType(): SupportType; - setType(value: SupportType): PeerOpenedDisputeMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PeerOpenedDisputeMessage.AsObject; - static toObject(includeInstance: boolean, msg: PeerOpenedDisputeMessage): PeerOpenedDisputeMessage.AsObject; - static serializeBinaryToWriter(message: PeerOpenedDisputeMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PeerOpenedDisputeMessage; - static deserializeBinaryFromReader(message: PeerOpenedDisputeMessage, reader: jspb.BinaryReader): PeerOpenedDisputeMessage; -} - -export namespace PeerOpenedDisputeMessage { - export type AsObject = { - dispute?: Dispute.AsObject, - senderNodeAddress?: NodeAddress.AsObject, - uid: string, - type: SupportType, - } -} - -export class ChatMessage extends jspb.Message { - getDate(): number; - setDate(value: number): ChatMessage; - - getTradeId(): string; - setTradeId(value: string): ChatMessage; - - getTraderId(): number; - setTraderId(value: number): ChatMessage; - - getSenderIsTrader(): boolean; - setSenderIsTrader(value: boolean): ChatMessage; - - getMessage(): string; - setMessage(value: string): ChatMessage; - - getAttachmentsList(): Array; - setAttachmentsList(value: Array): ChatMessage; - clearAttachmentsList(): ChatMessage; - addAttachments(value?: Attachment, index?: number): Attachment; - - getArrived(): boolean; - setArrived(value: boolean): ChatMessage; - - getStoredInMailbox(): boolean; - setStoredInMailbox(value: boolean): ChatMessage; - - getIsSystemMessage(): boolean; - setIsSystemMessage(value: boolean): ChatMessage; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): ChatMessage; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): ChatMessage; - - getUid(): string; - setUid(value: string): ChatMessage; - - getSendMessageError(): string; - setSendMessageError(value: string): ChatMessage; - - getAcknowledged(): boolean; - setAcknowledged(value: boolean): ChatMessage; - - getAckError(): string; - setAckError(value: string): ChatMessage; - - getType(): SupportType; - setType(value: SupportType): ChatMessage; - - getWasDisplayed(): boolean; - setWasDisplayed(value: boolean): ChatMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ChatMessage.AsObject; - static toObject(includeInstance: boolean, msg: ChatMessage): ChatMessage.AsObject; - static serializeBinaryToWriter(message: ChatMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ChatMessage; - static deserializeBinaryFromReader(message: ChatMessage, reader: jspb.BinaryReader): ChatMessage; -} - -export namespace ChatMessage { - export type AsObject = { - date: number, - tradeId: string, - traderId: number, - senderIsTrader: boolean, - message: string, - attachmentsList: Array, - arrived: boolean, - storedInMailbox: boolean, - isSystemMessage: boolean, - senderNodeAddress?: NodeAddress.AsObject, - uid: string, - sendMessageError: string, - acknowledged: boolean, - ackError: string, - type: SupportType, - wasDisplayed: boolean, - } -} - -export class DisputeResultMessage extends jspb.Message { - getUid(): string; - setUid(value: string): DisputeResultMessage; - - getDisputeResult(): DisputeResult | undefined; - setDisputeResult(value?: DisputeResult): DisputeResultMessage; - hasDisputeResult(): boolean; - clearDisputeResult(): DisputeResultMessage; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): DisputeResultMessage; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): DisputeResultMessage; - - getType(): SupportType; - setType(value: SupportType): DisputeResultMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DisputeResultMessage.AsObject; - static toObject(includeInstance: boolean, msg: DisputeResultMessage): DisputeResultMessage.AsObject; - static serializeBinaryToWriter(message: DisputeResultMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DisputeResultMessage; - static deserializeBinaryFromReader(message: DisputeResultMessage, reader: jspb.BinaryReader): DisputeResultMessage; -} - -export namespace DisputeResultMessage { - export type AsObject = { - uid: string, - disputeResult?: DisputeResult.AsObject, - senderNodeAddress?: NodeAddress.AsObject, - type: SupportType, - } -} - -export class PeerPublishedDisputePayoutTxMessage extends jspb.Message { - getUid(): string; - setUid(value: string): PeerPublishedDisputePayoutTxMessage; - - getTradeId(): string; - setTradeId(value: string): PeerPublishedDisputePayoutTxMessage; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): PeerPublishedDisputePayoutTxMessage; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): PeerPublishedDisputePayoutTxMessage; - - getType(): SupportType; - setType(value: SupportType): PeerPublishedDisputePayoutTxMessage; - - getUpdatedMultisigHex(): string; - setUpdatedMultisigHex(value: string): PeerPublishedDisputePayoutTxMessage; - - getPayoutTxHex(): string; - setPayoutTxHex(value: string): PeerPublishedDisputePayoutTxMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PeerPublishedDisputePayoutTxMessage.AsObject; - static toObject(includeInstance: boolean, msg: PeerPublishedDisputePayoutTxMessage): PeerPublishedDisputePayoutTxMessage.AsObject; - static serializeBinaryToWriter(message: PeerPublishedDisputePayoutTxMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PeerPublishedDisputePayoutTxMessage; - static deserializeBinaryFromReader(message: PeerPublishedDisputePayoutTxMessage, reader: jspb.BinaryReader): PeerPublishedDisputePayoutTxMessage; -} - -export namespace PeerPublishedDisputePayoutTxMessage { - export type AsObject = { - uid: string, - tradeId: string, - senderNodeAddress?: NodeAddress.AsObject, - type: SupportType, - updatedMultisigHex: string, - payoutTxHex: string, - } -} - -export class PrivateNotificationMessage extends jspb.Message { - getUid(): string; - setUid(value: string): PrivateNotificationMessage; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): PrivateNotificationMessage; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): PrivateNotificationMessage; - - getPrivateNotificationPayload(): PrivateNotificationPayload | undefined; - setPrivateNotificationPayload(value?: PrivateNotificationPayload): PrivateNotificationMessage; - hasPrivateNotificationPayload(): boolean; - clearPrivateNotificationPayload(): PrivateNotificationMessage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PrivateNotificationMessage.AsObject; - static toObject(includeInstance: boolean, msg: PrivateNotificationMessage): PrivateNotificationMessage.AsObject; - static serializeBinaryToWriter(message: PrivateNotificationMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PrivateNotificationMessage; - static deserializeBinaryFromReader(message: PrivateNotificationMessage, reader: jspb.BinaryReader): PrivateNotificationMessage; -} - -export namespace PrivateNotificationMessage { - export type AsObject = { - uid: string, - senderNodeAddress?: NodeAddress.AsObject, - privateNotificationPayload?: PrivateNotificationPayload.AsObject, - } -} - -export class NodeAddress extends jspb.Message { - getHostName(): string; - setHostName(value: string): NodeAddress; - - getPort(): number; - setPort(value: number): NodeAddress; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NodeAddress.AsObject; - static toObject(includeInstance: boolean, msg: NodeAddress): NodeAddress.AsObject; - static serializeBinaryToWriter(message: NodeAddress, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NodeAddress; - static deserializeBinaryFromReader(message: NodeAddress, reader: jspb.BinaryReader): NodeAddress; -} - -export namespace NodeAddress { - export type AsObject = { - hostName: string, - port: number, - } -} - -export class Peer extends jspb.Message { - getNodeAddress(): NodeAddress | undefined; - setNodeAddress(value?: NodeAddress): Peer; - hasNodeAddress(): boolean; - clearNodeAddress(): Peer; - - getDate(): number; - setDate(value: number): Peer; - - getSupportedCapabilitiesList(): Array; - setSupportedCapabilitiesList(value: Array): Peer; - clearSupportedCapabilitiesList(): Peer; - addSupportedCapabilities(value: number, index?: number): Peer; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Peer.AsObject; - static toObject(includeInstance: boolean, msg: Peer): Peer.AsObject; - static serializeBinaryToWriter(message: Peer, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Peer; - static deserializeBinaryFromReader(message: Peer, reader: jspb.BinaryReader): Peer; -} - -export namespace Peer { - export type AsObject = { - nodeAddress?: NodeAddress.AsObject, - date: number, - supportedCapabilitiesList: Array, - } -} - -export class PubKeyRing extends jspb.Message { - getSignaturePubKeyBytes(): Uint8Array | string; - getSignaturePubKeyBytes_asU8(): Uint8Array; - getSignaturePubKeyBytes_asB64(): string; - setSignaturePubKeyBytes(value: Uint8Array | string): PubKeyRing; - - getEncryptionPubKeyBytes(): Uint8Array | string; - getEncryptionPubKeyBytes_asU8(): Uint8Array; - getEncryptionPubKeyBytes_asB64(): string; - setEncryptionPubKeyBytes(value: Uint8Array | string): PubKeyRing; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PubKeyRing.AsObject; - static toObject(includeInstance: boolean, msg: PubKeyRing): PubKeyRing.AsObject; - static serializeBinaryToWriter(message: PubKeyRing, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PubKeyRing; - static deserializeBinaryFromReader(message: PubKeyRing, reader: jspb.BinaryReader): PubKeyRing; -} - -export namespace PubKeyRing { - export type AsObject = { - signaturePubKeyBytes: Uint8Array | string, - encryptionPubKeyBytes: Uint8Array | string, - } -} - -export class SealedAndSigned extends jspb.Message { - getEncryptedSecretKey(): Uint8Array | string; - getEncryptedSecretKey_asU8(): Uint8Array; - getEncryptedSecretKey_asB64(): string; - setEncryptedSecretKey(value: Uint8Array | string): SealedAndSigned; - - getEncryptedPayloadWithHmac(): Uint8Array | string; - getEncryptedPayloadWithHmac_asU8(): Uint8Array; - getEncryptedPayloadWithHmac_asB64(): string; - setEncryptedPayloadWithHmac(value: Uint8Array | string): SealedAndSigned; - - getSignature(): Uint8Array | string; - getSignature_asU8(): Uint8Array; - getSignature_asB64(): string; - setSignature(value: Uint8Array | string): SealedAndSigned; - - getSigPublicKeyBytes(): Uint8Array | string; - getSigPublicKeyBytes_asU8(): Uint8Array; - getSigPublicKeyBytes_asB64(): string; - setSigPublicKeyBytes(value: Uint8Array | string): SealedAndSigned; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SealedAndSigned.AsObject; - static toObject(includeInstance: boolean, msg: SealedAndSigned): SealedAndSigned.AsObject; - static serializeBinaryToWriter(message: SealedAndSigned, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SealedAndSigned; - static deserializeBinaryFromReader(message: SealedAndSigned, reader: jspb.BinaryReader): SealedAndSigned; -} - -export namespace SealedAndSigned { - export type AsObject = { - encryptedSecretKey: Uint8Array | string, - encryptedPayloadWithHmac: Uint8Array | string, - signature: Uint8Array | string, - sigPublicKeyBytes: Uint8Array | string, - } -} - -export class StoragePayload extends jspb.Message { - getAlert(): Alert | undefined; - setAlert(value?: Alert): StoragePayload; - hasAlert(): boolean; - clearAlert(): StoragePayload; - - getArbitrator(): Arbitrator | undefined; - setArbitrator(value?: Arbitrator): StoragePayload; - hasArbitrator(): boolean; - clearArbitrator(): StoragePayload; - - getMediator(): Mediator | undefined; - setMediator(value?: Mediator): StoragePayload; - hasMediator(): boolean; - clearMediator(): StoragePayload; - - getFilter(): Filter | undefined; - setFilter(value?: Filter): StoragePayload; - hasFilter(): boolean; - clearFilter(): StoragePayload; - - getMailboxStoragePayload(): MailboxStoragePayload | undefined; - setMailboxStoragePayload(value?: MailboxStoragePayload): StoragePayload; - hasMailboxStoragePayload(): boolean; - clearMailboxStoragePayload(): StoragePayload; - - getOfferPayload(): OfferPayload | undefined; - setOfferPayload(value?: OfferPayload): StoragePayload; - hasOfferPayload(): boolean; - clearOfferPayload(): StoragePayload; - - getRefundAgent(): RefundAgent | undefined; - setRefundAgent(value?: RefundAgent): StoragePayload; - hasRefundAgent(): boolean; - clearRefundAgent(): StoragePayload; - - getMessageCase(): StoragePayload.MessageCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StoragePayload.AsObject; - static toObject(includeInstance: boolean, msg: StoragePayload): StoragePayload.AsObject; - static serializeBinaryToWriter(message: StoragePayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StoragePayload; - static deserializeBinaryFromReader(message: StoragePayload, reader: jspb.BinaryReader): StoragePayload; -} - -export namespace StoragePayload { - export type AsObject = { - alert?: Alert.AsObject, - arbitrator?: Arbitrator.AsObject, - mediator?: Mediator.AsObject, - filter?: Filter.AsObject, - mailboxStoragePayload?: MailboxStoragePayload.AsObject, - offerPayload?: OfferPayload.AsObject, - refundAgent?: RefundAgent.AsObject, - } - - export enum MessageCase { - MESSAGE_NOT_SET = 0, - ALERT = 1, - ARBITRATOR = 2, - MEDIATOR = 3, - FILTER = 4, - MAILBOX_STORAGE_PAYLOAD = 6, - OFFER_PAYLOAD = 7, - REFUND_AGENT = 8, - } -} - -export class PersistableNetworkPayload extends jspb.Message { - getAccountAgeWitness(): AccountAgeWitness | undefined; - setAccountAgeWitness(value?: AccountAgeWitness): PersistableNetworkPayload; - hasAccountAgeWitness(): boolean; - clearAccountAgeWitness(): PersistableNetworkPayload; - - getTradeStatistics2(): TradeStatistics2 | undefined; - setTradeStatistics2(value?: TradeStatistics2): PersistableNetworkPayload; - hasTradeStatistics2(): boolean; - clearTradeStatistics2(): PersistableNetworkPayload; - - getSignedWitness(): SignedWitness | undefined; - setSignedWitness(value?: SignedWitness): PersistableNetworkPayload; - hasSignedWitness(): boolean; - clearSignedWitness(): PersistableNetworkPayload; - - getTradeStatistics3(): TradeStatistics3 | undefined; - setTradeStatistics3(value?: TradeStatistics3): PersistableNetworkPayload; - hasTradeStatistics3(): boolean; - clearTradeStatistics3(): PersistableNetworkPayload; - - getMessageCase(): PersistableNetworkPayload.MessageCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PersistableNetworkPayload.AsObject; - static toObject(includeInstance: boolean, msg: PersistableNetworkPayload): PersistableNetworkPayload.AsObject; - static serializeBinaryToWriter(message: PersistableNetworkPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PersistableNetworkPayload; - static deserializeBinaryFromReader(message: PersistableNetworkPayload, reader: jspb.BinaryReader): PersistableNetworkPayload; -} - -export namespace PersistableNetworkPayload { - export type AsObject = { - accountAgeWitness?: AccountAgeWitness.AsObject, - tradeStatistics2?: TradeStatistics2.AsObject, - signedWitness?: SignedWitness.AsObject, - tradeStatistics3?: TradeStatistics3.AsObject, - } - - export enum MessageCase { - MESSAGE_NOT_SET = 0, - ACCOUNT_AGE_WITNESS = 1, - TRADE_STATISTICS2 = 2, - SIGNED_WITNESS = 3, - TRADE_STATISTICS3 = 4, - } -} - -export class ProtectedStorageEntry extends jspb.Message { - getStoragepayload(): StoragePayload | undefined; - setStoragepayload(value?: StoragePayload): ProtectedStorageEntry; - hasStoragepayload(): boolean; - clearStoragepayload(): ProtectedStorageEntry; - - getOwnerPubKeyBytes(): Uint8Array | string; - getOwnerPubKeyBytes_asU8(): Uint8Array; - getOwnerPubKeyBytes_asB64(): string; - setOwnerPubKeyBytes(value: Uint8Array | string): ProtectedStorageEntry; - - getSequenceNumber(): number; - setSequenceNumber(value: number): ProtectedStorageEntry; - - getSignature(): Uint8Array | string; - getSignature_asU8(): Uint8Array; - getSignature_asB64(): string; - setSignature(value: Uint8Array | string): ProtectedStorageEntry; - - getCreationTimeStamp(): number; - setCreationTimeStamp(value: number): ProtectedStorageEntry; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProtectedStorageEntry.AsObject; - static toObject(includeInstance: boolean, msg: ProtectedStorageEntry): ProtectedStorageEntry.AsObject; - static serializeBinaryToWriter(message: ProtectedStorageEntry, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProtectedStorageEntry; - static deserializeBinaryFromReader(message: ProtectedStorageEntry, reader: jspb.BinaryReader): ProtectedStorageEntry; -} - -export namespace ProtectedStorageEntry { - export type AsObject = { - storagepayload?: StoragePayload.AsObject, - ownerPubKeyBytes: Uint8Array | string, - sequenceNumber: number, - signature: Uint8Array | string, - creationTimeStamp: number, - } -} - -export class StorageEntryWrapper extends jspb.Message { - getProtectedStorageEntry(): ProtectedStorageEntry | undefined; - setProtectedStorageEntry(value?: ProtectedStorageEntry): StorageEntryWrapper; - hasProtectedStorageEntry(): boolean; - clearProtectedStorageEntry(): StorageEntryWrapper; - - getProtectedMailboxStorageEntry(): ProtectedMailboxStorageEntry | undefined; - setProtectedMailboxStorageEntry(value?: ProtectedMailboxStorageEntry): StorageEntryWrapper; - hasProtectedMailboxStorageEntry(): boolean; - clearProtectedMailboxStorageEntry(): StorageEntryWrapper; - - getMessageCase(): StorageEntryWrapper.MessageCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StorageEntryWrapper.AsObject; - static toObject(includeInstance: boolean, msg: StorageEntryWrapper): StorageEntryWrapper.AsObject; - static serializeBinaryToWriter(message: StorageEntryWrapper, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StorageEntryWrapper; - static deserializeBinaryFromReader(message: StorageEntryWrapper, reader: jspb.BinaryReader): StorageEntryWrapper; -} - -export namespace StorageEntryWrapper { - export type AsObject = { - protectedStorageEntry?: ProtectedStorageEntry.AsObject, - protectedMailboxStorageEntry?: ProtectedMailboxStorageEntry.AsObject, - } - - export enum MessageCase { - MESSAGE_NOT_SET = 0, - PROTECTED_STORAGE_ENTRY = 1, - PROTECTED_MAILBOX_STORAGE_ENTRY = 2, - } -} - -export class ProtectedMailboxStorageEntry extends jspb.Message { - getEntry(): ProtectedStorageEntry | undefined; - setEntry(value?: ProtectedStorageEntry): ProtectedMailboxStorageEntry; - hasEntry(): boolean; - clearEntry(): ProtectedMailboxStorageEntry; - - getReceiversPubKeyBytes(): Uint8Array | string; - getReceiversPubKeyBytes_asU8(): Uint8Array; - getReceiversPubKeyBytes_asB64(): string; - setReceiversPubKeyBytes(value: Uint8Array | string): ProtectedMailboxStorageEntry; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProtectedMailboxStorageEntry.AsObject; - static toObject(includeInstance: boolean, msg: ProtectedMailboxStorageEntry): ProtectedMailboxStorageEntry.AsObject; - static serializeBinaryToWriter(message: ProtectedMailboxStorageEntry, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProtectedMailboxStorageEntry; - static deserializeBinaryFromReader(message: ProtectedMailboxStorageEntry, reader: jspb.BinaryReader): ProtectedMailboxStorageEntry; -} - -export namespace ProtectedMailboxStorageEntry { - export type AsObject = { - entry?: ProtectedStorageEntry.AsObject, - receiversPubKeyBytes: Uint8Array | string, - } -} - -export class DataAndSeqNrPair extends jspb.Message { - getPayload(): StoragePayload | undefined; - setPayload(value?: StoragePayload): DataAndSeqNrPair; - hasPayload(): boolean; - clearPayload(): DataAndSeqNrPair; - - getSequenceNumber(): number; - setSequenceNumber(value: number): DataAndSeqNrPair; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DataAndSeqNrPair.AsObject; - static toObject(includeInstance: boolean, msg: DataAndSeqNrPair): DataAndSeqNrPair.AsObject; - static serializeBinaryToWriter(message: DataAndSeqNrPair, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DataAndSeqNrPair; - static deserializeBinaryFromReader(message: DataAndSeqNrPair, reader: jspb.BinaryReader): DataAndSeqNrPair; -} - -export namespace DataAndSeqNrPair { - export type AsObject = { - payload?: StoragePayload.AsObject, - sequenceNumber: number, - } -} - -export class MailboxMessageList extends jspb.Message { - getMailboxItemList(): Array; - setMailboxItemList(value: Array): MailboxMessageList; - clearMailboxItemList(): MailboxMessageList; - addMailboxItem(value?: MailboxItem, index?: number): MailboxItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MailboxMessageList.AsObject; - static toObject(includeInstance: boolean, msg: MailboxMessageList): MailboxMessageList.AsObject; - static serializeBinaryToWriter(message: MailboxMessageList, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MailboxMessageList; - static deserializeBinaryFromReader(message: MailboxMessageList, reader: jspb.BinaryReader): MailboxMessageList; -} - -export namespace MailboxMessageList { - export type AsObject = { - mailboxItemList: Array, - } -} - -export class RemovedPayloadsMap extends jspb.Message { - getDateByHashesMap(): jspb.Map; - clearDateByHashesMap(): RemovedPayloadsMap; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemovedPayloadsMap.AsObject; - static toObject(includeInstance: boolean, msg: RemovedPayloadsMap): RemovedPayloadsMap.AsObject; - static serializeBinaryToWriter(message: RemovedPayloadsMap, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemovedPayloadsMap; - static deserializeBinaryFromReader(message: RemovedPayloadsMap, reader: jspb.BinaryReader): RemovedPayloadsMap; -} - -export namespace RemovedPayloadsMap { - export type AsObject = { - dateByHashesMap: Array<[string, number]>, - } -} - -export class IgnoredMailboxMap extends jspb.Message { - getDataMap(): jspb.Map; - clearDataMap(): IgnoredMailboxMap; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): IgnoredMailboxMap.AsObject; - static toObject(includeInstance: boolean, msg: IgnoredMailboxMap): IgnoredMailboxMap.AsObject; - static serializeBinaryToWriter(message: IgnoredMailboxMap, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): IgnoredMailboxMap; - static deserializeBinaryFromReader(message: IgnoredMailboxMap, reader: jspb.BinaryReader): IgnoredMailboxMap; -} - -export namespace IgnoredMailboxMap { - export type AsObject = { - dataMap: Array<[string, number]>, - } -} - -export class MailboxItem extends jspb.Message { - getProtectedMailboxStorageEntry(): ProtectedMailboxStorageEntry | undefined; - setProtectedMailboxStorageEntry(value?: ProtectedMailboxStorageEntry): MailboxItem; - hasProtectedMailboxStorageEntry(): boolean; - clearProtectedMailboxStorageEntry(): MailboxItem; - - getDecryptedMessageWithPubKey(): DecryptedMessageWithPubKey | undefined; - setDecryptedMessageWithPubKey(value?: DecryptedMessageWithPubKey): MailboxItem; - hasDecryptedMessageWithPubKey(): boolean; - clearDecryptedMessageWithPubKey(): MailboxItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MailboxItem.AsObject; - static toObject(includeInstance: boolean, msg: MailboxItem): MailboxItem.AsObject; - static serializeBinaryToWriter(message: MailboxItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MailboxItem; - static deserializeBinaryFromReader(message: MailboxItem, reader: jspb.BinaryReader): MailboxItem; -} - -export namespace MailboxItem { - export type AsObject = { - protectedMailboxStorageEntry?: ProtectedMailboxStorageEntry.AsObject, - decryptedMessageWithPubKey?: DecryptedMessageWithPubKey.AsObject, - } -} - -export class DecryptedMessageWithPubKey extends jspb.Message { - getNetworkEnvelope(): NetworkEnvelope | undefined; - setNetworkEnvelope(value?: NetworkEnvelope): DecryptedMessageWithPubKey; - hasNetworkEnvelope(): boolean; - clearNetworkEnvelope(): DecryptedMessageWithPubKey; - - getSignaturePubKeyBytes(): Uint8Array | string; - getSignaturePubKeyBytes_asU8(): Uint8Array; - getSignaturePubKeyBytes_asB64(): string; - setSignaturePubKeyBytes(value: Uint8Array | string): DecryptedMessageWithPubKey; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DecryptedMessageWithPubKey.AsObject; - static toObject(includeInstance: boolean, msg: DecryptedMessageWithPubKey): DecryptedMessageWithPubKey.AsObject; - static serializeBinaryToWriter(message: DecryptedMessageWithPubKey, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DecryptedMessageWithPubKey; - static deserializeBinaryFromReader(message: DecryptedMessageWithPubKey, reader: jspb.BinaryReader): DecryptedMessageWithPubKey; -} - -export namespace DecryptedMessageWithPubKey { - export type AsObject = { - networkEnvelope?: NetworkEnvelope.AsObject, - signaturePubKeyBytes: Uint8Array | string, - } -} - -export class PrivateNotificationPayload extends jspb.Message { - getMessage(): string; - setMessage(value: string): PrivateNotificationPayload; - - getSignatureAsBase64(): string; - setSignatureAsBase64(value: string): PrivateNotificationPayload; - - getSigPublicKeyBytes(): Uint8Array | string; - getSigPublicKeyBytes_asU8(): Uint8Array; - getSigPublicKeyBytes_asB64(): string; - setSigPublicKeyBytes(value: Uint8Array | string): PrivateNotificationPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PrivateNotificationPayload.AsObject; - static toObject(includeInstance: boolean, msg: PrivateNotificationPayload): PrivateNotificationPayload.AsObject; - static serializeBinaryToWriter(message: PrivateNotificationPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PrivateNotificationPayload; - static deserializeBinaryFromReader(message: PrivateNotificationPayload, reader: jspb.BinaryReader): PrivateNotificationPayload; -} - -export namespace PrivateNotificationPayload { - export type AsObject = { - message: string, - signatureAsBase64: string, - sigPublicKeyBytes: Uint8Array | string, - } -} - -export class PaymentAccountFilter extends jspb.Message { - getPaymentMethodId(): string; - setPaymentMethodId(value: string): PaymentAccountFilter; - - getGetMethodName(): string; - setGetMethodName(value: string): PaymentAccountFilter; - - getValue(): string; - setValue(value: string): PaymentAccountFilter; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PaymentAccountFilter.AsObject; - static toObject(includeInstance: boolean, msg: PaymentAccountFilter): PaymentAccountFilter.AsObject; - static serializeBinaryToWriter(message: PaymentAccountFilter, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PaymentAccountFilter; - static deserializeBinaryFromReader(message: PaymentAccountFilter, reader: jspb.BinaryReader): PaymentAccountFilter; -} - -export namespace PaymentAccountFilter { - export type AsObject = { - paymentMethodId: string, - getMethodName: string, - value: string, - } -} - -export class Alert extends jspb.Message { - getMessage(): string; - setMessage(value: string): Alert; - - getVersion(): string; - setVersion(value: string): Alert; - - getIsUpdateInfo(): boolean; - setIsUpdateInfo(value: boolean): Alert; - - getSignatureAsBase64(): string; - setSignatureAsBase64(value: string): Alert; - - getOwnerPubKeyBytes(): Uint8Array | string; - getOwnerPubKeyBytes_asU8(): Uint8Array; - getOwnerPubKeyBytes_asB64(): string; - setOwnerPubKeyBytes(value: Uint8Array | string): Alert; - - getExtraDataMap(): jspb.Map; - clearExtraDataMap(): Alert; - - getIsPreReleaseInfo(): boolean; - setIsPreReleaseInfo(value: boolean): Alert; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Alert.AsObject; - static toObject(includeInstance: boolean, msg: Alert): Alert.AsObject; - static serializeBinaryToWriter(message: Alert, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Alert; - static deserializeBinaryFromReader(message: Alert, reader: jspb.BinaryReader): Alert; -} - -export namespace Alert { - export type AsObject = { - message: string, - version: string, - isUpdateInfo: boolean, - signatureAsBase64: string, - ownerPubKeyBytes: Uint8Array | string, - extraDataMap: Array<[string, string]>, - isPreReleaseInfo: boolean, - } -} - -export class Arbitrator extends jspb.Message { - getNodeAddress(): NodeAddress | undefined; - setNodeAddress(value?: NodeAddress): Arbitrator; - hasNodeAddress(): boolean; - clearNodeAddress(): Arbitrator; - - getLanguageCodesList(): Array; - setLanguageCodesList(value: Array): Arbitrator; - clearLanguageCodesList(): Arbitrator; - addLanguageCodes(value: string, index?: number): Arbitrator; - - getRegistrationDate(): number; - setRegistrationDate(value: number): Arbitrator; - - getRegistrationSignature(): string; - setRegistrationSignature(value: string): Arbitrator; - - getRegistrationPubKey(): Uint8Array | string; - getRegistrationPubKey_asU8(): Uint8Array; - getRegistrationPubKey_asB64(): string; - setRegistrationPubKey(value: Uint8Array | string): Arbitrator; - - getPubKeyRing(): PubKeyRing | undefined; - setPubKeyRing(value?: PubKeyRing): Arbitrator; - hasPubKeyRing(): boolean; - clearPubKeyRing(): Arbitrator; - - getBtcPubKey(): Uint8Array | string; - getBtcPubKey_asU8(): Uint8Array; - getBtcPubKey_asB64(): string; - setBtcPubKey(value: Uint8Array | string): Arbitrator; - - getBtcAddress(): string; - setBtcAddress(value: string): Arbitrator; - - getEmailAddress(): string; - setEmailAddress(value: string): Arbitrator; - - getInfo(): string; - setInfo(value: string): Arbitrator; - - getExtraDataMap(): jspb.Map; - clearExtraDataMap(): Arbitrator; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Arbitrator.AsObject; - static toObject(includeInstance: boolean, msg: Arbitrator): Arbitrator.AsObject; - static serializeBinaryToWriter(message: Arbitrator, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Arbitrator; - static deserializeBinaryFromReader(message: Arbitrator, reader: jspb.BinaryReader): Arbitrator; -} - -export namespace Arbitrator { - export type AsObject = { - nodeAddress?: NodeAddress.AsObject, - languageCodesList: Array, - registrationDate: number, - registrationSignature: string, - registrationPubKey: Uint8Array | string, - pubKeyRing?: PubKeyRing.AsObject, - btcPubKey: Uint8Array | string, - btcAddress: string, - emailAddress: string, - info: string, - extraDataMap: Array<[string, string]>, - } -} - -export class Mediator extends jspb.Message { - getNodeAddress(): NodeAddress | undefined; - setNodeAddress(value?: NodeAddress): Mediator; - hasNodeAddress(): boolean; - clearNodeAddress(): Mediator; - - getLanguageCodesList(): Array; - setLanguageCodesList(value: Array): Mediator; - clearLanguageCodesList(): Mediator; - addLanguageCodes(value: string, index?: number): Mediator; - - getRegistrationDate(): number; - setRegistrationDate(value: number): Mediator; - - getRegistrationSignature(): string; - setRegistrationSignature(value: string): Mediator; - - getRegistrationPubKey(): Uint8Array | string; - getRegistrationPubKey_asU8(): Uint8Array; - getRegistrationPubKey_asB64(): string; - setRegistrationPubKey(value: Uint8Array | string): Mediator; - - getPubKeyRing(): PubKeyRing | undefined; - setPubKeyRing(value?: PubKeyRing): Mediator; - hasPubKeyRing(): boolean; - clearPubKeyRing(): Mediator; - - getEmailAddress(): string; - setEmailAddress(value: string): Mediator; - - getInfo(): string; - setInfo(value: string): Mediator; - - getExtraDataMap(): jspb.Map; - clearExtraDataMap(): Mediator; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Mediator.AsObject; - static toObject(includeInstance: boolean, msg: Mediator): Mediator.AsObject; - static serializeBinaryToWriter(message: Mediator, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Mediator; - static deserializeBinaryFromReader(message: Mediator, reader: jspb.BinaryReader): Mediator; -} - -export namespace Mediator { - export type AsObject = { - nodeAddress?: NodeAddress.AsObject, - languageCodesList: Array, - registrationDate: number, - registrationSignature: string, - registrationPubKey: Uint8Array | string, - pubKeyRing?: PubKeyRing.AsObject, - emailAddress: string, - info: string, - extraDataMap: Array<[string, string]>, - } -} - -export class RefundAgent extends jspb.Message { - getNodeAddress(): NodeAddress | undefined; - setNodeAddress(value?: NodeAddress): RefundAgent; - hasNodeAddress(): boolean; - clearNodeAddress(): RefundAgent; - - getLanguageCodesList(): Array; - setLanguageCodesList(value: Array): RefundAgent; - clearLanguageCodesList(): RefundAgent; - addLanguageCodes(value: string, index?: number): RefundAgent; - - getRegistrationDate(): number; - setRegistrationDate(value: number): RefundAgent; - - getRegistrationSignature(): string; - setRegistrationSignature(value: string): RefundAgent; - - getRegistrationPubKey(): Uint8Array | string; - getRegistrationPubKey_asU8(): Uint8Array; - getRegistrationPubKey_asB64(): string; - setRegistrationPubKey(value: Uint8Array | string): RefundAgent; - - getPubKeyRing(): PubKeyRing | undefined; - setPubKeyRing(value?: PubKeyRing): RefundAgent; - hasPubKeyRing(): boolean; - clearPubKeyRing(): RefundAgent; - - getEmailAddress(): string; - setEmailAddress(value: string): RefundAgent; - - getInfo(): string; - setInfo(value: string): RefundAgent; - - getExtraDataMap(): jspb.Map; - clearExtraDataMap(): RefundAgent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RefundAgent.AsObject; - static toObject(includeInstance: boolean, msg: RefundAgent): RefundAgent.AsObject; - static serializeBinaryToWriter(message: RefundAgent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RefundAgent; - static deserializeBinaryFromReader(message: RefundAgent, reader: jspb.BinaryReader): RefundAgent; -} - -export namespace RefundAgent { - export type AsObject = { - nodeAddress?: NodeAddress.AsObject, - languageCodesList: Array, - registrationDate: number, - registrationSignature: string, - registrationPubKey: Uint8Array | string, - pubKeyRing?: PubKeyRing.AsObject, - emailAddress: string, - info: string, - extraDataMap: Array<[string, string]>, - } -} - -export class Filter extends jspb.Message { - getNodeAddressesBannedFromTradingList(): Array; - setNodeAddressesBannedFromTradingList(value: Array): Filter; - clearNodeAddressesBannedFromTradingList(): Filter; - addNodeAddressesBannedFromTrading(value: string, index?: number): Filter; - - getBannedOfferIdsList(): Array; - setBannedOfferIdsList(value: Array): Filter; - clearBannedOfferIdsList(): Filter; - addBannedOfferIds(value: string, index?: number): Filter; - - getBannedPaymentAccountsList(): Array; - setBannedPaymentAccountsList(value: Array): Filter; - clearBannedPaymentAccountsList(): Filter; - addBannedPaymentAccounts(value?: PaymentAccountFilter, index?: number): PaymentAccountFilter; - - getSignatureAsBase64(): string; - setSignatureAsBase64(value: string): Filter; - - getOwnerPubKeyBytes(): Uint8Array | string; - getOwnerPubKeyBytes_asU8(): Uint8Array; - getOwnerPubKeyBytes_asB64(): string; - setOwnerPubKeyBytes(value: Uint8Array | string): Filter; - - getExtraDataMap(): jspb.Map; - clearExtraDataMap(): Filter; - - getBannedCurrenciesList(): Array; - setBannedCurrenciesList(value: Array): Filter; - clearBannedCurrenciesList(): Filter; - addBannedCurrencies(value: string, index?: number): Filter; - - getBannedPaymentMethodsList(): Array; - setBannedPaymentMethodsList(value: Array): Filter; - clearBannedPaymentMethodsList(): Filter; - addBannedPaymentMethods(value: string, index?: number): Filter; - - getArbitratorsList(): Array; - setArbitratorsList(value: Array): Filter; - clearArbitratorsList(): Filter; - addArbitrators(value: string, index?: number): Filter; - - getSeedNodesList(): Array; - setSeedNodesList(value: Array): Filter; - clearSeedNodesList(): Filter; - addSeedNodes(value: string, index?: number): Filter; - - getPriceRelayNodesList(): Array; - setPriceRelayNodesList(value: Array): Filter; - clearPriceRelayNodesList(): Filter; - addPriceRelayNodes(value: string, index?: number): Filter; - - getPreventPublicBtcNetwork(): boolean; - setPreventPublicBtcNetwork(value: boolean): Filter; - - getBtcNodesList(): Array; - setBtcNodesList(value: Array): Filter; - clearBtcNodesList(): Filter; - addBtcNodes(value: string, index?: number): Filter; - - getDisableTradeBelowVersion(): string; - setDisableTradeBelowVersion(value: string): Filter; - - getMediatorsList(): Array; - setMediatorsList(value: Array): Filter; - clearMediatorsList(): Filter; - addMediators(value: string, index?: number): Filter; - - getRefundagentsList(): Array; - setRefundagentsList(value: Array): Filter; - clearRefundagentsList(): Filter; - addRefundagents(value: string, index?: number): Filter; - - getBannedsignerpubkeysList(): Array; - setBannedsignerpubkeysList(value: Array): Filter; - clearBannedsignerpubkeysList(): Filter; - addBannedsignerpubkeys(value: string, index?: number): Filter; - - getBtcFeeReceiverAddressesList(): Array; - setBtcFeeReceiverAddressesList(value: Array): Filter; - clearBtcFeeReceiverAddressesList(): Filter; - addBtcFeeReceiverAddresses(value: string, index?: number): Filter; - - getCreationDate(): number; - setCreationDate(value: number): Filter; - - getSignerPubKeyAsHex(): string; - setSignerPubKeyAsHex(value: string): Filter; - - getBannedprivilegeddevpubkeysList(): Array; - setBannedprivilegeddevpubkeysList(value: Array): Filter; - clearBannedprivilegeddevpubkeysList(): Filter; - addBannedprivilegeddevpubkeys(value: string, index?: number): Filter; - - getDisableAutoConf(): boolean; - setDisableAutoConf(value: boolean): Filter; - - getBannedAutoConfExplorersList(): Array; - setBannedAutoConfExplorersList(value: Array): Filter; - clearBannedAutoConfExplorersList(): Filter; - addBannedAutoConfExplorers(value: string, index?: number): Filter; - - getNodeAddressesBannedFromNetworkList(): Array; - setNodeAddressesBannedFromNetworkList(value: Array): Filter; - clearNodeAddressesBannedFromNetworkList(): Filter; - addNodeAddressesBannedFromNetwork(value: string, index?: number): Filter; - - getDisableApi(): boolean; - setDisableApi(value: boolean): Filter; - - getDisableMempoolValidation(): boolean; - setDisableMempoolValidation(value: boolean): Filter; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Filter.AsObject; - static toObject(includeInstance: boolean, msg: Filter): Filter.AsObject; - static serializeBinaryToWriter(message: Filter, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Filter; - static deserializeBinaryFromReader(message: Filter, reader: jspb.BinaryReader): Filter; -} - -export namespace Filter { - export type AsObject = { - nodeAddressesBannedFromTradingList: Array, - bannedOfferIdsList: Array, - bannedPaymentAccountsList: Array, - signatureAsBase64: string, - ownerPubKeyBytes: Uint8Array | string, - extraDataMap: Array<[string, string]>, - bannedCurrenciesList: Array, - bannedPaymentMethodsList: Array, - arbitratorsList: Array, - seedNodesList: Array, - priceRelayNodesList: Array, - preventPublicBtcNetwork: boolean, - btcNodesList: Array, - disableTradeBelowVersion: string, - mediatorsList: Array, - refundagentsList: Array, - bannedsignerpubkeysList: Array, - btcFeeReceiverAddressesList: Array, - creationDate: number, - signerPubKeyAsHex: string, - bannedprivilegeddevpubkeysList: Array, - disableAutoConf: boolean, - bannedAutoConfExplorersList: Array, - nodeAddressesBannedFromNetworkList: Array, - disableApi: boolean, - disableMempoolValidation: boolean, - } -} - -export class TradeStatistics2 extends jspb.Message { - getBaseCurrency(): string; - setBaseCurrency(value: string): TradeStatistics2; - - getCounterCurrency(): string; - setCounterCurrency(value: string): TradeStatistics2; - - getDirection(): OfferPayload.Direction; - setDirection(value: OfferPayload.Direction): TradeStatistics2; - - getTradePrice(): number; - setTradePrice(value: number): TradeStatistics2; - - getTradeAmount(): number; - setTradeAmount(value: number): TradeStatistics2; - - getTradeDate(): number; - setTradeDate(value: number): TradeStatistics2; - - getPaymentMethodId(): string; - setPaymentMethodId(value: string): TradeStatistics2; - - getOfferDate(): number; - setOfferDate(value: number): TradeStatistics2; - - getOfferUseMarketBasedPrice(): boolean; - setOfferUseMarketBasedPrice(value: boolean): TradeStatistics2; - - getOfferMarketPriceMargin(): number; - setOfferMarketPriceMargin(value: number): TradeStatistics2; - - getOfferAmount(): number; - setOfferAmount(value: number): TradeStatistics2; - - getOfferMinAmount(): number; - setOfferMinAmount(value: number): TradeStatistics2; - - getOfferId(): string; - setOfferId(value: string): TradeStatistics2; - - getDepositTxId(): string; - setDepositTxId(value: string): TradeStatistics2; - - getHash(): Uint8Array | string; - getHash_asU8(): Uint8Array; - getHash_asB64(): string; - setHash(value: Uint8Array | string): TradeStatistics2; - - getExtraDataMap(): jspb.Map; - clearExtraDataMap(): TradeStatistics2; - - getMakerDepositTxId(): string; - setMakerDepositTxId(value: string): TradeStatistics2; - - getTakerDepositTxId(): string; - setTakerDepositTxId(value: string): TradeStatistics2; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TradeStatistics2.AsObject; - static toObject(includeInstance: boolean, msg: TradeStatistics2): TradeStatistics2.AsObject; - static serializeBinaryToWriter(message: TradeStatistics2, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TradeStatistics2; - static deserializeBinaryFromReader(message: TradeStatistics2, reader: jspb.BinaryReader): TradeStatistics2; -} - -export namespace TradeStatistics2 { - export type AsObject = { - baseCurrency: string, - counterCurrency: string, - direction: OfferPayload.Direction, - tradePrice: number, - tradeAmount: number, - tradeDate: number, - paymentMethodId: string, - offerDate: number, - offerUseMarketBasedPrice: boolean, - offerMarketPriceMargin: number, - offerAmount: number, - offerMinAmount: number, - offerId: string, - depositTxId: string, - hash: Uint8Array | string, - extraDataMap: Array<[string, string]>, - makerDepositTxId: string, - takerDepositTxId: string, - } -} - -export class TradeStatistics3 extends jspb.Message { - getCurrency(): string; - setCurrency(value: string): TradeStatistics3; - - getPrice(): number; - setPrice(value: number): TradeStatistics3; - - getAmount(): number; - setAmount(value: number): TradeStatistics3; - - getPaymentMethod(): string; - setPaymentMethod(value: string): TradeStatistics3; - - getDate(): number; - setDate(value: number): TradeStatistics3; - - getHash(): Uint8Array | string; - getHash_asU8(): Uint8Array; - getHash_asB64(): string; - setHash(value: Uint8Array | string): TradeStatistics3; - - getExtraDataMap(): jspb.Map; - clearExtraDataMap(): TradeStatistics3; - - getArbitrator(): string; - setArbitrator(value: string): TradeStatistics3; - - getMakerDepositTxId(): string; - setMakerDepositTxId(value: string): TradeStatistics3; - - getTakerDepositTxId(): string; - setTakerDepositTxId(value: string): TradeStatistics3; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TradeStatistics3.AsObject; - static toObject(includeInstance: boolean, msg: TradeStatistics3): TradeStatistics3.AsObject; - static serializeBinaryToWriter(message: TradeStatistics3, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TradeStatistics3; - static deserializeBinaryFromReader(message: TradeStatistics3, reader: jspb.BinaryReader): TradeStatistics3; -} - -export namespace TradeStatistics3 { - export type AsObject = { - currency: string, - price: number, - amount: number, - paymentMethod: string, - date: number, - hash: Uint8Array | string, - extraDataMap: Array<[string, string]>, - arbitrator: string, - makerDepositTxId: string, - takerDepositTxId: string, - } -} - -export class MailboxStoragePayload extends jspb.Message { - getPrefixedSealedAndSignedMessage(): PrefixedSealedAndSignedMessage | undefined; - setPrefixedSealedAndSignedMessage(value?: PrefixedSealedAndSignedMessage): MailboxStoragePayload; - hasPrefixedSealedAndSignedMessage(): boolean; - clearPrefixedSealedAndSignedMessage(): MailboxStoragePayload; - - getSenderPubKeyForAddOperationBytes(): Uint8Array | string; - getSenderPubKeyForAddOperationBytes_asU8(): Uint8Array; - getSenderPubKeyForAddOperationBytes_asB64(): string; - setSenderPubKeyForAddOperationBytes(value: Uint8Array | string): MailboxStoragePayload; - - getOwnerPubKeyBytes(): Uint8Array | string; - getOwnerPubKeyBytes_asU8(): Uint8Array; - getOwnerPubKeyBytes_asB64(): string; - setOwnerPubKeyBytes(value: Uint8Array | string): MailboxStoragePayload; - - getExtraDataMap(): jspb.Map; - clearExtraDataMap(): MailboxStoragePayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MailboxStoragePayload.AsObject; - static toObject(includeInstance: boolean, msg: MailboxStoragePayload): MailboxStoragePayload.AsObject; - static serializeBinaryToWriter(message: MailboxStoragePayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MailboxStoragePayload; - static deserializeBinaryFromReader(message: MailboxStoragePayload, reader: jspb.BinaryReader): MailboxStoragePayload; -} - -export namespace MailboxStoragePayload { - export type AsObject = { - prefixedSealedAndSignedMessage?: PrefixedSealedAndSignedMessage.AsObject, - senderPubKeyForAddOperationBytes: Uint8Array | string, - ownerPubKeyBytes: Uint8Array | string, - extraDataMap: Array<[string, string]>, - } -} - -export class OfferPayload extends jspb.Message { - getId(): string; - setId(value: string): OfferPayload; - - getDate(): number; - setDate(value: number): OfferPayload; - - getOwnerNodeAddress(): NodeAddress | undefined; - setOwnerNodeAddress(value?: NodeAddress): OfferPayload; - hasOwnerNodeAddress(): boolean; - clearOwnerNodeAddress(): OfferPayload; - - getPubKeyRing(): PubKeyRing | undefined; - setPubKeyRing(value?: PubKeyRing): OfferPayload; - hasPubKeyRing(): boolean; - clearPubKeyRing(): OfferPayload; - - getDirection(): OfferPayload.Direction; - setDirection(value: OfferPayload.Direction): OfferPayload; - - getPrice(): number; - setPrice(value: number): OfferPayload; - - getMarketPriceMargin(): number; - setMarketPriceMargin(value: number): OfferPayload; - - getUseMarketBasedPrice(): boolean; - setUseMarketBasedPrice(value: boolean): OfferPayload; - - getAmount(): number; - setAmount(value: number): OfferPayload; - - getMinAmount(): number; - setMinAmount(value: number): OfferPayload; - - getBaseCurrencyCode(): string; - setBaseCurrencyCode(value: string): OfferPayload; - - getCounterCurrencyCode(): string; - setCounterCurrencyCode(value: string): OfferPayload; - - getPaymentMethodId(): string; - setPaymentMethodId(value: string): OfferPayload; - - getMakerPaymentAccountId(): string; - setMakerPaymentAccountId(value: string): OfferPayload; - - getOfferFeePaymentTxId(): string; - setOfferFeePaymentTxId(value: string): OfferPayload; - - getCountryCode(): string; - setCountryCode(value: string): OfferPayload; - - getAcceptedCountryCodesList(): Array; - setAcceptedCountryCodesList(value: Array): OfferPayload; - clearAcceptedCountryCodesList(): OfferPayload; - addAcceptedCountryCodes(value: string, index?: number): OfferPayload; - - getBankId(): string; - setBankId(value: string): OfferPayload; - - getAcceptedBankIdsList(): Array; - setAcceptedBankIdsList(value: Array): OfferPayload; - clearAcceptedBankIdsList(): OfferPayload; - addAcceptedBankIds(value: string, index?: number): OfferPayload; - - getVersionNr(): string; - setVersionNr(value: string): OfferPayload; - - getBlockHeightAtOfferCreation(): number; - setBlockHeightAtOfferCreation(value: number): OfferPayload; - - getTxFee(): number; - setTxFee(value: number): OfferPayload; - - getMakerFee(): number; - setMakerFee(value: number): OfferPayload; - - getBuyerSecurityDeposit(): number; - setBuyerSecurityDeposit(value: number): OfferPayload; - - getSellerSecurityDeposit(): number; - setSellerSecurityDeposit(value: number): OfferPayload; - - getMaxTradeLimit(): number; - setMaxTradeLimit(value: number): OfferPayload; - - getMaxTradePeriod(): number; - setMaxTradePeriod(value: number): OfferPayload; - - getUseAutoClose(): boolean; - setUseAutoClose(value: boolean): OfferPayload; - - getUseReOpenAfterAutoClose(): boolean; - setUseReOpenAfterAutoClose(value: boolean): OfferPayload; - - getLowerClosePrice(): number; - setLowerClosePrice(value: number): OfferPayload; - - getUpperClosePrice(): number; - setUpperClosePrice(value: number): OfferPayload; - - getIsPrivateOffer(): boolean; - setIsPrivateOffer(value: boolean): OfferPayload; - - getHashOfChallenge(): string; - setHashOfChallenge(value: string): OfferPayload; - - getExtraDataMap(): jspb.Map; - clearExtraDataMap(): OfferPayload; - - getProtocolVersion(): number; - setProtocolVersion(value: number): OfferPayload; - - getArbitratorSigner(): NodeAddress | undefined; - setArbitratorSigner(value?: NodeAddress): OfferPayload; - hasArbitratorSigner(): boolean; - clearArbitratorSigner(): OfferPayload; - - getArbitratorSignature(): string; - setArbitratorSignature(value: string): OfferPayload; - - getReserveTxKeyImagesList(): Array; - setReserveTxKeyImagesList(value: Array): OfferPayload; - clearReserveTxKeyImagesList(): OfferPayload; - addReserveTxKeyImages(value: string, index?: number): OfferPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OfferPayload.AsObject; - static toObject(includeInstance: boolean, msg: OfferPayload): OfferPayload.AsObject; - static serializeBinaryToWriter(message: OfferPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OfferPayload; - static deserializeBinaryFromReader(message: OfferPayload, reader: jspb.BinaryReader): OfferPayload; -} - -export namespace OfferPayload { - export type AsObject = { - id: string, - date: number, - ownerNodeAddress?: NodeAddress.AsObject, - pubKeyRing?: PubKeyRing.AsObject, - direction: OfferPayload.Direction, - price: number, - marketPriceMargin: number, - useMarketBasedPrice: boolean, - amount: number, - minAmount: number, - baseCurrencyCode: string, - counterCurrencyCode: string, - paymentMethodId: string, - makerPaymentAccountId: string, - offerFeePaymentTxId: string, - countryCode: string, - acceptedCountryCodesList: Array, - bankId: string, - acceptedBankIdsList: Array, - versionNr: string, - blockHeightAtOfferCreation: number, - txFee: number, - makerFee: number, - buyerSecurityDeposit: number, - sellerSecurityDeposit: number, - maxTradeLimit: number, - maxTradePeriod: number, - useAutoClose: boolean, - useReOpenAfterAutoClose: boolean, - lowerClosePrice: number, - upperClosePrice: number, - isPrivateOffer: boolean, - hashOfChallenge: string, - extraDataMap: Array<[string, string]>, - protocolVersion: number, - arbitratorSigner?: NodeAddress.AsObject, - arbitratorSignature: string, - reserveTxKeyImagesList: Array, - } - - export enum Direction { - PB_ERROR = 0, - BUY = 1, - SELL = 2, - } -} - -export class AccountAgeWitness extends jspb.Message { - getHash(): Uint8Array | string; - getHash_asU8(): Uint8Array; - getHash_asB64(): string; - setHash(value: Uint8Array | string): AccountAgeWitness; - - getDate(): number; - setDate(value: number): AccountAgeWitness; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AccountAgeWitness.AsObject; - static toObject(includeInstance: boolean, msg: AccountAgeWitness): AccountAgeWitness.AsObject; - static serializeBinaryToWriter(message: AccountAgeWitness, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AccountAgeWitness; - static deserializeBinaryFromReader(message: AccountAgeWitness, reader: jspb.BinaryReader): AccountAgeWitness; -} - -export namespace AccountAgeWitness { - export type AsObject = { - hash: Uint8Array | string, - date: number, - } -} - -export class SignedWitness extends jspb.Message { - getVerificationMethod(): SignedWitness.VerificationMethod; - setVerificationMethod(value: SignedWitness.VerificationMethod): SignedWitness; - - getAccountAgeWitnessHash(): Uint8Array | string; - getAccountAgeWitnessHash_asU8(): Uint8Array; - getAccountAgeWitnessHash_asB64(): string; - setAccountAgeWitnessHash(value: Uint8Array | string): SignedWitness; - - getSignature(): Uint8Array | string; - getSignature_asU8(): Uint8Array; - getSignature_asB64(): string; - setSignature(value: Uint8Array | string): SignedWitness; - - getSignerPubKey(): Uint8Array | string; - getSignerPubKey_asU8(): Uint8Array; - getSignerPubKey_asB64(): string; - setSignerPubKey(value: Uint8Array | string): SignedWitness; - - getWitnessOwnerPubKey(): Uint8Array | string; - getWitnessOwnerPubKey_asU8(): Uint8Array; - getWitnessOwnerPubKey_asB64(): string; - setWitnessOwnerPubKey(value: Uint8Array | string): SignedWitness; - - getDate(): number; - setDate(value: number): SignedWitness; - - getTradeAmount(): number; - setTradeAmount(value: number): SignedWitness; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SignedWitness.AsObject; - static toObject(includeInstance: boolean, msg: SignedWitness): SignedWitness.AsObject; - static serializeBinaryToWriter(message: SignedWitness, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SignedWitness; - static deserializeBinaryFromReader(message: SignedWitness, reader: jspb.BinaryReader): SignedWitness; -} - -export namespace SignedWitness { - export type AsObject = { - verificationMethod: SignedWitness.VerificationMethod, - accountAgeWitnessHash: Uint8Array | string, - signature: Uint8Array | string, - signerPubKey: Uint8Array | string, - witnessOwnerPubKey: Uint8Array | string, - date: number, - tradeAmount: number, - } - - export enum VerificationMethod { - PB_ERROR = 0, - ARBITRATOR = 1, - TRADE = 2, - } -} - -export class Dispute extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): Dispute; - - getId(): string; - setId(value: string): Dispute; - - getTraderId(): number; - setTraderId(value: number): Dispute; - - getIsOpener(): boolean; - setIsOpener(value: boolean): Dispute; - - getDisputeOpenerIsBuyer(): boolean; - setDisputeOpenerIsBuyer(value: boolean): Dispute; - - getDisputeOpenerIsMaker(): boolean; - setDisputeOpenerIsMaker(value: boolean): Dispute; - - getOpeningDate(): number; - setOpeningDate(value: number): Dispute; - - getTraderPubKeyRing(): PubKeyRing | undefined; - setTraderPubKeyRing(value?: PubKeyRing): Dispute; - hasTraderPubKeyRing(): boolean; - clearTraderPubKeyRing(): Dispute; - - getTradeDate(): number; - setTradeDate(value: number): Dispute; - - getContract(): Contract | undefined; - setContract(value?: Contract): Dispute; - hasContract(): boolean; - clearContract(): Dispute; - - getContractHash(): Uint8Array | string; - getContractHash_asU8(): Uint8Array; - getContractHash_asB64(): string; - setContractHash(value: Uint8Array | string): Dispute; - - getDepositTxSerialized(): Uint8Array | string; - getDepositTxSerialized_asU8(): Uint8Array; - getDepositTxSerialized_asB64(): string; - setDepositTxSerialized(value: Uint8Array | string): Dispute; - - getPayoutTxSerialized(): Uint8Array | string; - getPayoutTxSerialized_asU8(): Uint8Array; - getPayoutTxSerialized_asB64(): string; - setPayoutTxSerialized(value: Uint8Array | string): Dispute; - - getDepositTxId(): string; - setDepositTxId(value: string): Dispute; - - getPayoutTxId(): string; - setPayoutTxId(value: string): Dispute; - - getContractAsJson(): string; - setContractAsJson(value: string): Dispute; - - getMakerContractSignature(): string; - setMakerContractSignature(value: string): Dispute; - - getTakerContractSignature(): string; - setTakerContractSignature(value: string): Dispute; - - getMakerPaymentAccountPayload(): PaymentAccountPayload | undefined; - setMakerPaymentAccountPayload(value?: PaymentAccountPayload): Dispute; - hasMakerPaymentAccountPayload(): boolean; - clearMakerPaymentAccountPayload(): Dispute; - - getTakerPaymentAccountPayload(): PaymentAccountPayload | undefined; - setTakerPaymentAccountPayload(value?: PaymentAccountPayload): Dispute; - hasTakerPaymentAccountPayload(): boolean; - clearTakerPaymentAccountPayload(): Dispute; - - getAgentPubKeyRing(): PubKeyRing | undefined; - setAgentPubKeyRing(value?: PubKeyRing): Dispute; - hasAgentPubKeyRing(): boolean; - clearAgentPubKeyRing(): Dispute; - - getIsSupportTicket(): boolean; - setIsSupportTicket(value: boolean): Dispute; - - getChatMessageList(): Array; - setChatMessageList(value: Array): Dispute; - clearChatMessageList(): Dispute; - addChatMessage(value?: ChatMessage, index?: number): ChatMessage; - - getIsClosed(): boolean; - setIsClosed(value: boolean): Dispute; - - getDisputeResult(): DisputeResult | undefined; - setDisputeResult(value?: DisputeResult): Dispute; - hasDisputeResult(): boolean; - clearDisputeResult(): Dispute; - - getDisputePayoutTxId(): string; - setDisputePayoutTxId(value: string): Dispute; - - getSupportType(): SupportType; - setSupportType(value: SupportType): Dispute; - - getMediatorsDisputeResult(): string; - setMediatorsDisputeResult(value: string): Dispute; - - getDelayedPayoutTxId(): string; - setDelayedPayoutTxId(value: string): Dispute; - - getDonationAddressOfDelayedPayoutTx(): string; - setDonationAddressOfDelayedPayoutTx(value: string): Dispute; - - getState(): Dispute.State; - setState(value: Dispute.State): Dispute; - - getTradePeriodEnd(): number; - setTradePeriodEnd(value: number): Dispute; - - getExtraDataMap(): jspb.Map; - clearExtraDataMap(): Dispute; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Dispute.AsObject; - static toObject(includeInstance: boolean, msg: Dispute): Dispute.AsObject; - static serializeBinaryToWriter(message: Dispute, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Dispute; - static deserializeBinaryFromReader(message: Dispute, reader: jspb.BinaryReader): Dispute; -} - -export namespace Dispute { - export type AsObject = { - tradeId: string, - id: string, - traderId: number, - isOpener: boolean, - disputeOpenerIsBuyer: boolean, - disputeOpenerIsMaker: boolean, - openingDate: number, - traderPubKeyRing?: PubKeyRing.AsObject, - tradeDate: number, - contract?: Contract.AsObject, - contractHash: Uint8Array | string, - depositTxSerialized: Uint8Array | string, - payoutTxSerialized: Uint8Array | string, - depositTxId: string, - payoutTxId: string, - contractAsJson: string, - makerContractSignature: string, - takerContractSignature: string, - makerPaymentAccountPayload?: PaymentAccountPayload.AsObject, - takerPaymentAccountPayload?: PaymentAccountPayload.AsObject, - agentPubKeyRing?: PubKeyRing.AsObject, - isSupportTicket: boolean, - chatMessageList: Array, - isClosed: boolean, - disputeResult?: DisputeResult.AsObject, - disputePayoutTxId: string, - supportType: SupportType, - mediatorsDisputeResult: string, - delayedPayoutTxId: string, - donationAddressOfDelayedPayoutTx: string, - state: Dispute.State, - tradePeriodEnd: number, - extraDataMap: Array<[string, string]>, - } - - export enum State { - NEEDS_UPGRADE = 0, - NEW = 1, - OPEN = 2, - REOPENED = 3, - CLOSED = 4, - } -} - -export class Attachment extends jspb.Message { - getFileName(): string; - setFileName(value: string): Attachment; - - getBytes(): Uint8Array | string; - getBytes_asU8(): Uint8Array; - getBytes_asB64(): string; - setBytes(value: Uint8Array | string): Attachment; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Attachment.AsObject; - static toObject(includeInstance: boolean, msg: Attachment): Attachment.AsObject; - static serializeBinaryToWriter(message: Attachment, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Attachment; - static deserializeBinaryFromReader(message: Attachment, reader: jspb.BinaryReader): Attachment; -} - -export namespace Attachment { - export type AsObject = { - fileName: string, - bytes: Uint8Array | string, - } -} - -export class DisputeResult extends jspb.Message { - getTradeId(): string; - setTradeId(value: string): DisputeResult; - - getTraderId(): number; - setTraderId(value: number): DisputeResult; - - getWinner(): DisputeResult.Winner; - setWinner(value: DisputeResult.Winner): DisputeResult; - - getReasonOrdinal(): number; - setReasonOrdinal(value: number): DisputeResult; - - getTamperProofEvidence(): boolean; - setTamperProofEvidence(value: boolean): DisputeResult; - - getIdVerification(): boolean; - setIdVerification(value: boolean): DisputeResult; - - getScreenCast(): boolean; - setScreenCast(value: boolean): DisputeResult; - - getSummaryNotes(): string; - setSummaryNotes(value: string): DisputeResult; - - getChatMessage(): ChatMessage | undefined; - setChatMessage(value?: ChatMessage): DisputeResult; - hasChatMessage(): boolean; - clearChatMessage(): DisputeResult; - - getArbitratorSignature(): Uint8Array | string; - getArbitratorSignature_asU8(): Uint8Array; - getArbitratorSignature_asB64(): string; - setArbitratorSignature(value: Uint8Array | string): DisputeResult; - - getBuyerPayoutAmount(): number; - setBuyerPayoutAmount(value: number): DisputeResult; - - getSellerPayoutAmount(): number; - setSellerPayoutAmount(value: number): DisputeResult; - - getArbitratorPubKey(): Uint8Array | string; - getArbitratorPubKey_asU8(): Uint8Array; - getArbitratorPubKey_asB64(): string; - setArbitratorPubKey(value: Uint8Array | string): DisputeResult; - - getCloseDate(): number; - setCloseDate(value: number): DisputeResult; - - getIsLoserPublisher(): boolean; - setIsLoserPublisher(value: boolean): DisputeResult; - - getArbitratorSignedPayoutTxHex(): string; - setArbitratorSignedPayoutTxHex(value: string): DisputeResult; - - getArbitratorUpdatedMultisigHex(): string; - setArbitratorUpdatedMultisigHex(value: string): DisputeResult; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DisputeResult.AsObject; - static toObject(includeInstance: boolean, msg: DisputeResult): DisputeResult.AsObject; - static serializeBinaryToWriter(message: DisputeResult, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DisputeResult; - static deserializeBinaryFromReader(message: DisputeResult, reader: jspb.BinaryReader): DisputeResult; -} - -export namespace DisputeResult { - export type AsObject = { - tradeId: string, - traderId: number, - winner: DisputeResult.Winner, - reasonOrdinal: number, - tamperProofEvidence: boolean, - idVerification: boolean, - screenCast: boolean, - summaryNotes: string, - chatMessage?: ChatMessage.AsObject, - arbitratorSignature: Uint8Array | string, - buyerPayoutAmount: number, - sellerPayoutAmount: number, - arbitratorPubKey: Uint8Array | string, - closeDate: number, - isLoserPublisher: boolean, - arbitratorSignedPayoutTxHex: string, - arbitratorUpdatedMultisigHex: string, - } - - export enum Winner { - PB_ERROR_WINNER = 0, - BUYER = 1, - SELLER = 2, - } - - export enum Reason { - PB_ERROR_REASON = 0, - OTHER = 1, - BUG = 2, - USABILITY = 3, - SCAM = 4, - PROTOCOL_VIOLATION = 5, - NO_REPLY = 6, - BANK_PROBLEMS = 7, - OPTION_TRADE = 8, - SELLER_NOT_RESPONDING = 9, - WRONG_SENDER_ACCOUNT = 10, - TRADE_ALREADY_SETTLED = 11, - PEER_WAS_LATE = 12, - } -} - -export class Contract extends jspb.Message { - getOfferPayload(): OfferPayload | undefined; - setOfferPayload(value?: OfferPayload): Contract; - hasOfferPayload(): boolean; - clearOfferPayload(): Contract; - - getTradeAmount(): number; - setTradeAmount(value: number): Contract; - - getTradePrice(): number; - setTradePrice(value: number): Contract; - - getIsBuyerMakerAndSellerTaker(): boolean; - setIsBuyerMakerAndSellerTaker(value: boolean): Contract; - - getMakerAccountId(): string; - setMakerAccountId(value: string): Contract; - - getTakerAccountId(): string; - setTakerAccountId(value: string): Contract; - - getMakerPaymentMethodId(): string; - setMakerPaymentMethodId(value: string): Contract; - - getTakerPaymentMethodId(): string; - setTakerPaymentMethodId(value: string): Contract; - - getMakerPaymentAccountPayloadHash(): Uint8Array | string; - getMakerPaymentAccountPayloadHash_asU8(): Uint8Array; - getMakerPaymentAccountPayloadHash_asB64(): string; - setMakerPaymentAccountPayloadHash(value: Uint8Array | string): Contract; - - getTakerPaymentAccountPayloadHash(): Uint8Array | string; - getTakerPaymentAccountPayloadHash_asU8(): Uint8Array; - getTakerPaymentAccountPayloadHash_asB64(): string; - setTakerPaymentAccountPayloadHash(value: Uint8Array | string): Contract; - - getMakerPubKeyRing(): PubKeyRing | undefined; - setMakerPubKeyRing(value?: PubKeyRing): Contract; - hasMakerPubKeyRing(): boolean; - clearMakerPubKeyRing(): Contract; - - getTakerPubKeyRing(): PubKeyRing | undefined; - setTakerPubKeyRing(value?: PubKeyRing): Contract; - hasTakerPubKeyRing(): boolean; - clearTakerPubKeyRing(): Contract; - - getBuyerNodeAddress(): NodeAddress | undefined; - setBuyerNodeAddress(value?: NodeAddress): Contract; - hasBuyerNodeAddress(): boolean; - clearBuyerNodeAddress(): Contract; - - getSellerNodeAddress(): NodeAddress | undefined; - setSellerNodeAddress(value?: NodeAddress): Contract; - hasSellerNodeAddress(): boolean; - clearSellerNodeAddress(): Contract; - - getMakerPayoutAddressString(): string; - setMakerPayoutAddressString(value: string): Contract; - - getTakerPayoutAddressString(): string; - setTakerPayoutAddressString(value: string): Contract; - - getArbitratorNodeAddress(): NodeAddress | undefined; - setArbitratorNodeAddress(value?: NodeAddress): Contract; - hasArbitratorNodeAddress(): boolean; - clearArbitratorNodeAddress(): Contract; - - getLockTime(): number; - setLockTime(value: number): Contract; - - getMakerDepositTxHash(): string; - setMakerDepositTxHash(value: string): Contract; - - getTakerDepositTxHash(): string; - setTakerDepositTxHash(value: string): Contract; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Contract.AsObject; - static toObject(includeInstance: boolean, msg: Contract): Contract.AsObject; - static serializeBinaryToWriter(message: Contract, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Contract; - static deserializeBinaryFromReader(message: Contract, reader: jspb.BinaryReader): Contract; -} - -export namespace Contract { - export type AsObject = { - offerPayload?: OfferPayload.AsObject, - tradeAmount: number, - tradePrice: number, - isBuyerMakerAndSellerTaker: boolean, - makerAccountId: string, - takerAccountId: string, - makerPaymentMethodId: string, - takerPaymentMethodId: string, - makerPaymentAccountPayloadHash: Uint8Array | string, - takerPaymentAccountPayloadHash: Uint8Array | string, - makerPubKeyRing?: PubKeyRing.AsObject, - takerPubKeyRing?: PubKeyRing.AsObject, - buyerNodeAddress?: NodeAddress.AsObject, - sellerNodeAddress?: NodeAddress.AsObject, - makerPayoutAddressString: string, - takerPayoutAddressString: string, - arbitratorNodeAddress?: NodeAddress.AsObject, - lockTime: number, - makerDepositTxHash: string, - takerDepositTxHash: string, - } -} - -export class RawTransactionInput extends jspb.Message { - getIndex(): number; - setIndex(value: number): RawTransactionInput; - - getParentTransaction(): Uint8Array | string; - getParentTransaction_asU8(): Uint8Array; - getParentTransaction_asB64(): string; - setParentTransaction(value: Uint8Array | string): RawTransactionInput; - - getValue(): number; - setValue(value: number): RawTransactionInput; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RawTransactionInput.AsObject; - static toObject(includeInstance: boolean, msg: RawTransactionInput): RawTransactionInput.AsObject; - static serializeBinaryToWriter(message: RawTransactionInput, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RawTransactionInput; - static deserializeBinaryFromReader(message: RawTransactionInput, reader: jspb.BinaryReader): RawTransactionInput; -} - -export namespace RawTransactionInput { - export type AsObject = { - index: number, - parentTransaction: Uint8Array | string, - value: number, - } -} - -export class PaymentAccountPayload extends jspb.Message { - getId(): string; - setId(value: string): PaymentAccountPayload; - - getPaymentMethodId(): string; - setPaymentMethodId(value: string): PaymentAccountPayload; - - getMaxTradePeriod(): number; - setMaxTradePeriod(value: number): PaymentAccountPayload; - - getAliPayAccountPayload(): AliPayAccountPayload | undefined; - setAliPayAccountPayload(value?: AliPayAccountPayload): PaymentAccountPayload; - hasAliPayAccountPayload(): boolean; - clearAliPayAccountPayload(): PaymentAccountPayload; - - getChaseQuickPayAccountPayload(): ChaseQuickPayAccountPayload | undefined; - setChaseQuickPayAccountPayload(value?: ChaseQuickPayAccountPayload): PaymentAccountPayload; - hasChaseQuickPayAccountPayload(): boolean; - clearChaseQuickPayAccountPayload(): PaymentAccountPayload; - - getClearXchangeAccountPayload(): ClearXchangeAccountPayload | undefined; - setClearXchangeAccountPayload(value?: ClearXchangeAccountPayload): PaymentAccountPayload; - hasClearXchangeAccountPayload(): boolean; - clearClearXchangeAccountPayload(): PaymentAccountPayload; - - getCountryBasedPaymentAccountPayload(): CountryBasedPaymentAccountPayload | undefined; - setCountryBasedPaymentAccountPayload(value?: CountryBasedPaymentAccountPayload): PaymentAccountPayload; - hasCountryBasedPaymentAccountPayload(): boolean; - clearCountryBasedPaymentAccountPayload(): PaymentAccountPayload; - - getCryptoCurrencyAccountPayload(): CryptoCurrencyAccountPayload | undefined; - setCryptoCurrencyAccountPayload(value?: CryptoCurrencyAccountPayload): PaymentAccountPayload; - hasCryptoCurrencyAccountPayload(): boolean; - clearCryptoCurrencyAccountPayload(): PaymentAccountPayload; - - getFasterPaymentsAccountPayload(): FasterPaymentsAccountPayload | undefined; - setFasterPaymentsAccountPayload(value?: FasterPaymentsAccountPayload): PaymentAccountPayload; - hasFasterPaymentsAccountPayload(): boolean; - clearFasterPaymentsAccountPayload(): PaymentAccountPayload; - - getInteracETransferAccountPayload(): InteracETransferAccountPayload | undefined; - setInteracETransferAccountPayload(value?: InteracETransferAccountPayload): PaymentAccountPayload; - hasInteracETransferAccountPayload(): boolean; - clearInteracETransferAccountPayload(): PaymentAccountPayload; - - getOKPayAccountPayload(): OKPayAccountPayload | undefined; - setOKPayAccountPayload(value?: OKPayAccountPayload): PaymentAccountPayload; - hasOKPayAccountPayload(): boolean; - clearOKPayAccountPayload(): PaymentAccountPayload; - - getPerfectMoneyAccountPayload(): PerfectMoneyAccountPayload | undefined; - setPerfectMoneyAccountPayload(value?: PerfectMoneyAccountPayload): PaymentAccountPayload; - hasPerfectMoneyAccountPayload(): boolean; - clearPerfectMoneyAccountPayload(): PaymentAccountPayload; - - getSwishAccountPayload(): SwishAccountPayload | undefined; - setSwishAccountPayload(value?: SwishAccountPayload): PaymentAccountPayload; - hasSwishAccountPayload(): boolean; - clearSwishAccountPayload(): PaymentAccountPayload; - - getUSPostalMoneyOrderAccountPayload(): USPostalMoneyOrderAccountPayload | undefined; - setUSPostalMoneyOrderAccountPayload(value?: USPostalMoneyOrderAccountPayload): PaymentAccountPayload; - hasUSPostalMoneyOrderAccountPayload(): boolean; - clearUSPostalMoneyOrderAccountPayload(): PaymentAccountPayload; - - getUpholdAccountPayload(): UpholdAccountPayload | undefined; - setUpholdAccountPayload(value?: UpholdAccountPayload): PaymentAccountPayload; - hasUpholdAccountPayload(): boolean; - clearUpholdAccountPayload(): PaymentAccountPayload; - - getCashAppAccountPayload(): CashAppAccountPayload | undefined; - setCashAppAccountPayload(value?: CashAppAccountPayload): PaymentAccountPayload; - hasCashAppAccountPayload(): boolean; - clearCashAppAccountPayload(): PaymentAccountPayload; - - getMoneyBeamAccountPayload(): MoneyBeamAccountPayload | undefined; - setMoneyBeamAccountPayload(value?: MoneyBeamAccountPayload): PaymentAccountPayload; - hasMoneyBeamAccountPayload(): boolean; - clearMoneyBeamAccountPayload(): PaymentAccountPayload; - - getVenmoAccountPayload(): VenmoAccountPayload | undefined; - setVenmoAccountPayload(value?: VenmoAccountPayload): PaymentAccountPayload; - hasVenmoAccountPayload(): boolean; - clearVenmoAccountPayload(): PaymentAccountPayload; - - getPopmoneyAccountPayload(): PopmoneyAccountPayload | undefined; - setPopmoneyAccountPayload(value?: PopmoneyAccountPayload): PaymentAccountPayload; - hasPopmoneyAccountPayload(): boolean; - clearPopmoneyAccountPayload(): PaymentAccountPayload; - - getRevolutAccountPayload(): RevolutAccountPayload | undefined; - setRevolutAccountPayload(value?: RevolutAccountPayload): PaymentAccountPayload; - hasRevolutAccountPayload(): boolean; - clearRevolutAccountPayload(): PaymentAccountPayload; - - getWeChatPayAccountPayload(): WeChatPayAccountPayload | undefined; - setWeChatPayAccountPayload(value?: WeChatPayAccountPayload): PaymentAccountPayload; - hasWeChatPayAccountPayload(): boolean; - clearWeChatPayAccountPayload(): PaymentAccountPayload; - - getMoneyGramAccountPayload(): MoneyGramAccountPayload | undefined; - setMoneyGramAccountPayload(value?: MoneyGramAccountPayload): PaymentAccountPayload; - hasMoneyGramAccountPayload(): boolean; - clearMoneyGramAccountPayload(): PaymentAccountPayload; - - getHalCashAccountPayload(): HalCashAccountPayload | undefined; - setHalCashAccountPayload(value?: HalCashAccountPayload): PaymentAccountPayload; - hasHalCashAccountPayload(): boolean; - clearHalCashAccountPayload(): PaymentAccountPayload; - - getPromptPayAccountPayload(): PromptPayAccountPayload | undefined; - setPromptPayAccountPayload(value?: PromptPayAccountPayload): PaymentAccountPayload; - hasPromptPayAccountPayload(): boolean; - clearPromptPayAccountPayload(): PaymentAccountPayload; - - getAdvancedCashAccountPayload(): AdvancedCashAccountPayload | undefined; - setAdvancedCashAccountPayload(value?: AdvancedCashAccountPayload): PaymentAccountPayload; - hasAdvancedCashAccountPayload(): boolean; - clearAdvancedCashAccountPayload(): PaymentAccountPayload; - - getInstantCryptoCurrencyAccountPayload(): InstantCryptoCurrencyAccountPayload | undefined; - setInstantCryptoCurrencyAccountPayload(value?: InstantCryptoCurrencyAccountPayload): PaymentAccountPayload; - hasInstantCryptoCurrencyAccountPayload(): boolean; - clearInstantCryptoCurrencyAccountPayload(): PaymentAccountPayload; - - getJapanBankAccountPayload(): JapanBankAccountPayload | undefined; - setJapanBankAccountPayload(value?: JapanBankAccountPayload): PaymentAccountPayload; - hasJapanBankAccountPayload(): boolean; - clearJapanBankAccountPayload(): PaymentAccountPayload; - - getTransferwiseAccountPayload(): TransferwiseAccountPayload | undefined; - setTransferwiseAccountPayload(value?: TransferwiseAccountPayload): PaymentAccountPayload; - hasTransferwiseAccountPayload(): boolean; - clearTransferwiseAccountPayload(): PaymentAccountPayload; - - getAustraliaPayidPayload(): AustraliaPayidPayload | undefined; - setAustraliaPayidPayload(value?: AustraliaPayidPayload): PaymentAccountPayload; - hasAustraliaPayidPayload(): boolean; - clearAustraliaPayidPayload(): PaymentAccountPayload; - - getAmazonGiftCardAccountPayload(): AmazonGiftCardAccountPayload | undefined; - setAmazonGiftCardAccountPayload(value?: AmazonGiftCardAccountPayload): PaymentAccountPayload; - hasAmazonGiftCardAccountPayload(): boolean; - clearAmazonGiftCardAccountPayload(): PaymentAccountPayload; - - getCashByMailAccountPayload(): CashByMailAccountPayload | undefined; - setCashByMailAccountPayload(value?: CashByMailAccountPayload): PaymentAccountPayload; - hasCashByMailAccountPayload(): boolean; - clearCashByMailAccountPayload(): PaymentAccountPayload; - - getExcludeFromJsonDataMap(): jspb.Map; - clearExcludeFromJsonDataMap(): PaymentAccountPayload; - - getMessageCase(): PaymentAccountPayload.MessageCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PaymentAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: PaymentAccountPayload): PaymentAccountPayload.AsObject; - static serializeBinaryToWriter(message: PaymentAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PaymentAccountPayload; - static deserializeBinaryFromReader(message: PaymentAccountPayload, reader: jspb.BinaryReader): PaymentAccountPayload; -} - -export namespace PaymentAccountPayload { - export type AsObject = { - id: string, - paymentMethodId: string, - maxTradePeriod: number, - aliPayAccountPayload?: AliPayAccountPayload.AsObject, - chaseQuickPayAccountPayload?: ChaseQuickPayAccountPayload.AsObject, - clearXchangeAccountPayload?: ClearXchangeAccountPayload.AsObject, - countryBasedPaymentAccountPayload?: CountryBasedPaymentAccountPayload.AsObject, - cryptoCurrencyAccountPayload?: CryptoCurrencyAccountPayload.AsObject, - fasterPaymentsAccountPayload?: FasterPaymentsAccountPayload.AsObject, - interacETransferAccountPayload?: InteracETransferAccountPayload.AsObject, - oKPayAccountPayload?: OKPayAccountPayload.AsObject, - perfectMoneyAccountPayload?: PerfectMoneyAccountPayload.AsObject, - swishAccountPayload?: SwishAccountPayload.AsObject, - uSPostalMoneyOrderAccountPayload?: USPostalMoneyOrderAccountPayload.AsObject, - upholdAccountPayload?: UpholdAccountPayload.AsObject, - cashAppAccountPayload?: CashAppAccountPayload.AsObject, - moneyBeamAccountPayload?: MoneyBeamAccountPayload.AsObject, - venmoAccountPayload?: VenmoAccountPayload.AsObject, - popmoneyAccountPayload?: PopmoneyAccountPayload.AsObject, - revolutAccountPayload?: RevolutAccountPayload.AsObject, - weChatPayAccountPayload?: WeChatPayAccountPayload.AsObject, - moneyGramAccountPayload?: MoneyGramAccountPayload.AsObject, - halCashAccountPayload?: HalCashAccountPayload.AsObject, - promptPayAccountPayload?: PromptPayAccountPayload.AsObject, - advancedCashAccountPayload?: AdvancedCashAccountPayload.AsObject, - instantCryptoCurrencyAccountPayload?: InstantCryptoCurrencyAccountPayload.AsObject, - japanBankAccountPayload?: JapanBankAccountPayload.AsObject, - transferwiseAccountPayload?: TransferwiseAccountPayload.AsObject, - australiaPayidPayload?: AustraliaPayidPayload.AsObject, - amazonGiftCardAccountPayload?: AmazonGiftCardAccountPayload.AsObject, - cashByMailAccountPayload?: CashByMailAccountPayload.AsObject, - excludeFromJsonDataMap: Array<[string, string]>, - } - - export enum MessageCase { - MESSAGE_NOT_SET = 0, - ALI_PAY_ACCOUNT_PAYLOAD = 4, - CHASE_QUICK_PAY_ACCOUNT_PAYLOAD = 5, - CLEAR_XCHANGE_ACCOUNT_PAYLOAD = 6, - COUNTRY_BASED_PAYMENT_ACCOUNT_PAYLOAD = 7, - CRYPTO_CURRENCY_ACCOUNT_PAYLOAD = 8, - FASTER_PAYMENTS_ACCOUNT_PAYLOAD = 9, - INTERAC_E_TRANSFER_ACCOUNT_PAYLOAD = 10, - O_K_PAY_ACCOUNT_PAYLOAD = 11, - PERFECT_MONEY_ACCOUNT_PAYLOAD = 12, - SWISH_ACCOUNT_PAYLOAD = 13, - U_S_POSTAL_MONEY_ORDER_ACCOUNT_PAYLOAD = 14, - UPHOLD_ACCOUNT_PAYLOAD = 16, - CASH_APP_ACCOUNT_PAYLOAD = 17, - MONEY_BEAM_ACCOUNT_PAYLOAD = 18, - VENMO_ACCOUNT_PAYLOAD = 19, - POPMONEY_ACCOUNT_PAYLOAD = 20, - REVOLUT_ACCOUNT_PAYLOAD = 21, - WE_CHAT_PAY_ACCOUNT_PAYLOAD = 22, - MONEY_GRAM_ACCOUNT_PAYLOAD = 23, - HAL_CASH_ACCOUNT_PAYLOAD = 24, - PROMPT_PAY_ACCOUNT_PAYLOAD = 25, - ADVANCED_CASH_ACCOUNT_PAYLOAD = 26, - INSTANT_CRYPTO_CURRENCY_ACCOUNT_PAYLOAD = 27, - 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, - } -} - -export class AliPayAccountPayload extends jspb.Message { - getAccountNr(): string; - setAccountNr(value: string): AliPayAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AliPayAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: AliPayAccountPayload): AliPayAccountPayload.AsObject; - static serializeBinaryToWriter(message: AliPayAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AliPayAccountPayload; - static deserializeBinaryFromReader(message: AliPayAccountPayload, reader: jspb.BinaryReader): AliPayAccountPayload; -} - -export namespace AliPayAccountPayload { - export type AsObject = { - accountNr: string, - } -} - -export class WeChatPayAccountPayload extends jspb.Message { - getAccountNr(): string; - setAccountNr(value: string): WeChatPayAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WeChatPayAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: WeChatPayAccountPayload): WeChatPayAccountPayload.AsObject; - static serializeBinaryToWriter(message: WeChatPayAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WeChatPayAccountPayload; - static deserializeBinaryFromReader(message: WeChatPayAccountPayload, reader: jspb.BinaryReader): WeChatPayAccountPayload; -} - -export namespace WeChatPayAccountPayload { - export type AsObject = { - accountNr: string, - } -} - -export class ChaseQuickPayAccountPayload extends jspb.Message { - getEmail(): string; - setEmail(value: string): ChaseQuickPayAccountPayload; - - getHolderName(): string; - setHolderName(value: string): ChaseQuickPayAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ChaseQuickPayAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: ChaseQuickPayAccountPayload): ChaseQuickPayAccountPayload.AsObject; - static serializeBinaryToWriter(message: ChaseQuickPayAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ChaseQuickPayAccountPayload; - static deserializeBinaryFromReader(message: ChaseQuickPayAccountPayload, reader: jspb.BinaryReader): ChaseQuickPayAccountPayload; -} - -export namespace ChaseQuickPayAccountPayload { - export type AsObject = { - email: string, - holderName: string, - } -} - -export class ClearXchangeAccountPayload extends jspb.Message { - getHolderName(): string; - setHolderName(value: string): ClearXchangeAccountPayload; - - getEmailOrMobileNr(): string; - setEmailOrMobileNr(value: string): ClearXchangeAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ClearXchangeAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: ClearXchangeAccountPayload): ClearXchangeAccountPayload.AsObject; - static serializeBinaryToWriter(message: ClearXchangeAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ClearXchangeAccountPayload; - static deserializeBinaryFromReader(message: ClearXchangeAccountPayload, reader: jspb.BinaryReader): ClearXchangeAccountPayload; -} - -export namespace ClearXchangeAccountPayload { - export type AsObject = { - holderName: string, - emailOrMobileNr: string, - } -} - -export class CountryBasedPaymentAccountPayload extends jspb.Message { - getCountrycode(): string; - setCountrycode(value: string): CountryBasedPaymentAccountPayload; - - getBankAccountPayload(): BankAccountPayload | undefined; - setBankAccountPayload(value?: BankAccountPayload): CountryBasedPaymentAccountPayload; - hasBankAccountPayload(): boolean; - clearBankAccountPayload(): CountryBasedPaymentAccountPayload; - - getCashDepositAccountPayload(): CashDepositAccountPayload | undefined; - setCashDepositAccountPayload(value?: CashDepositAccountPayload): CountryBasedPaymentAccountPayload; - hasCashDepositAccountPayload(): boolean; - clearCashDepositAccountPayload(): CountryBasedPaymentAccountPayload; - - getSepaAccountPayload(): SepaAccountPayload | undefined; - setSepaAccountPayload(value?: SepaAccountPayload): CountryBasedPaymentAccountPayload; - hasSepaAccountPayload(): boolean; - clearSepaAccountPayload(): CountryBasedPaymentAccountPayload; - - getWesternUnionAccountPayload(): WesternUnionAccountPayload | undefined; - setWesternUnionAccountPayload(value?: WesternUnionAccountPayload): CountryBasedPaymentAccountPayload; - hasWesternUnionAccountPayload(): boolean; - clearWesternUnionAccountPayload(): CountryBasedPaymentAccountPayload; - - getSepaInstantAccountPayload(): SepaInstantAccountPayload | undefined; - setSepaInstantAccountPayload(value?: SepaInstantAccountPayload): CountryBasedPaymentAccountPayload; - hasSepaInstantAccountPayload(): boolean; - clearSepaInstantAccountPayload(): CountryBasedPaymentAccountPayload; - - getF2fAccountPayload(): F2FAccountPayload | undefined; - setF2fAccountPayload(value?: F2FAccountPayload): CountryBasedPaymentAccountPayload; - hasF2fAccountPayload(): boolean; - clearF2fAccountPayload(): CountryBasedPaymentAccountPayload; - - getMessageCase(): CountryBasedPaymentAccountPayload.MessageCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CountryBasedPaymentAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: CountryBasedPaymentAccountPayload): CountryBasedPaymentAccountPayload.AsObject; - static serializeBinaryToWriter(message: CountryBasedPaymentAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CountryBasedPaymentAccountPayload; - static deserializeBinaryFromReader(message: CountryBasedPaymentAccountPayload, reader: jspb.BinaryReader): CountryBasedPaymentAccountPayload; -} - -export namespace CountryBasedPaymentAccountPayload { - export type AsObject = { - countrycode: string, - bankAccountPayload?: BankAccountPayload.AsObject, - cashDepositAccountPayload?: CashDepositAccountPayload.AsObject, - sepaAccountPayload?: SepaAccountPayload.AsObject, - westernUnionAccountPayload?: WesternUnionAccountPayload.AsObject, - sepaInstantAccountPayload?: SepaInstantAccountPayload.AsObject, - f2fAccountPayload?: F2FAccountPayload.AsObject, - } - - export enum MessageCase { - MESSAGE_NOT_SET = 0, - BANK_ACCOUNT_PAYLOAD = 2, - CASH_DEPOSIT_ACCOUNT_PAYLOAD = 3, - SEPA_ACCOUNT_PAYLOAD = 4, - WESTERN_UNION_ACCOUNT_PAYLOAD = 5, - SEPA_INSTANT_ACCOUNT_PAYLOAD = 6, - F2F_ACCOUNT_PAYLOAD = 7, - } -} - -export class BankAccountPayload extends jspb.Message { - getHolderName(): string; - setHolderName(value: string): BankAccountPayload; - - getBankName(): string; - setBankName(value: string): BankAccountPayload; - - getBankId(): string; - setBankId(value: string): BankAccountPayload; - - getBranchId(): string; - setBranchId(value: string): BankAccountPayload; - - getAccountNr(): string; - setAccountNr(value: string): BankAccountPayload; - - getAccountType(): string; - setAccountType(value: string): BankAccountPayload; - - getHolderTaxId(): string; - setHolderTaxId(value: string): BankAccountPayload; - - getEmail(): string; - setEmail(value: string): BankAccountPayload; - - getNationalBankAccountPayload(): NationalBankAccountPayload | undefined; - setNationalBankAccountPayload(value?: NationalBankAccountPayload): BankAccountPayload; - hasNationalBankAccountPayload(): boolean; - clearNationalBankAccountPayload(): BankAccountPayload; - - getSameBankAccontPayload(): SameBankAccountPayload | undefined; - setSameBankAccontPayload(value?: SameBankAccountPayload): BankAccountPayload; - hasSameBankAccontPayload(): boolean; - clearSameBankAccontPayload(): BankAccountPayload; - - getSpecificBanksAccountPayload(): SpecificBanksAccountPayload | undefined; - setSpecificBanksAccountPayload(value?: SpecificBanksAccountPayload): BankAccountPayload; - hasSpecificBanksAccountPayload(): boolean; - clearSpecificBanksAccountPayload(): BankAccountPayload; - - getNationalAccountId(): string; - setNationalAccountId(value: string): BankAccountPayload; - - getMessageCase(): BankAccountPayload.MessageCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BankAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: BankAccountPayload): BankAccountPayload.AsObject; - static serializeBinaryToWriter(message: BankAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BankAccountPayload; - static deserializeBinaryFromReader(message: BankAccountPayload, reader: jspb.BinaryReader): BankAccountPayload; -} - -export namespace BankAccountPayload { - export type AsObject = { - holderName: string, - bankName: string, - bankId: string, - branchId: string, - accountNr: string, - accountType: string, - holderTaxId: string, - email: string, - nationalBankAccountPayload?: NationalBankAccountPayload.AsObject, - sameBankAccontPayload?: SameBankAccountPayload.AsObject, - specificBanksAccountPayload?: SpecificBanksAccountPayload.AsObject, - nationalAccountId: string, - } - - export enum MessageCase { - MESSAGE_NOT_SET = 0, - NATIONAL_BANK_ACCOUNT_PAYLOAD = 9, - SAME_BANK_ACCONT_PAYLOAD = 10, - SPECIFIC_BANKS_ACCOUNT_PAYLOAD = 11, - } -} - -export class NationalBankAccountPayload extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NationalBankAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: NationalBankAccountPayload): NationalBankAccountPayload.AsObject; - static serializeBinaryToWriter(message: NationalBankAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NationalBankAccountPayload; - static deserializeBinaryFromReader(message: NationalBankAccountPayload, reader: jspb.BinaryReader): NationalBankAccountPayload; -} - -export namespace NationalBankAccountPayload { - export type AsObject = { - } -} - -export class SameBankAccountPayload extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SameBankAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: SameBankAccountPayload): SameBankAccountPayload.AsObject; - static serializeBinaryToWriter(message: SameBankAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SameBankAccountPayload; - static deserializeBinaryFromReader(message: SameBankAccountPayload, reader: jspb.BinaryReader): SameBankAccountPayload; -} - -export namespace SameBankAccountPayload { - export type AsObject = { - } -} - -export class JapanBankAccountPayload extends jspb.Message { - getBankName(): string; - setBankName(value: string): JapanBankAccountPayload; - - getBankCode(): string; - setBankCode(value: string): JapanBankAccountPayload; - - getBankBranchName(): string; - setBankBranchName(value: string): JapanBankAccountPayload; - - getBankBranchCode(): string; - setBankBranchCode(value: string): JapanBankAccountPayload; - - getBankAccountType(): string; - setBankAccountType(value: string): JapanBankAccountPayload; - - getBankAccountName(): string; - setBankAccountName(value: string): JapanBankAccountPayload; - - getBankAccountNumber(): string; - setBankAccountNumber(value: string): JapanBankAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): JapanBankAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: JapanBankAccountPayload): JapanBankAccountPayload.AsObject; - static serializeBinaryToWriter(message: JapanBankAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): JapanBankAccountPayload; - static deserializeBinaryFromReader(message: JapanBankAccountPayload, reader: jspb.BinaryReader): JapanBankAccountPayload; -} - -export namespace JapanBankAccountPayload { - export type AsObject = { - bankName: string, - bankCode: string, - bankBranchName: string, - bankBranchCode: string, - bankAccountType: string, - bankAccountName: string, - bankAccountNumber: string, - } -} - -export class AustraliaPayidPayload extends jspb.Message { - getBankAccountName(): string; - setBankAccountName(value: string): AustraliaPayidPayload; - - getPayid(): string; - setPayid(value: string): AustraliaPayidPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AustraliaPayidPayload.AsObject; - static toObject(includeInstance: boolean, msg: AustraliaPayidPayload): AustraliaPayidPayload.AsObject; - static serializeBinaryToWriter(message: AustraliaPayidPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AustraliaPayidPayload; - static deserializeBinaryFromReader(message: AustraliaPayidPayload, reader: jspb.BinaryReader): AustraliaPayidPayload; -} - -export namespace AustraliaPayidPayload { - export type AsObject = { - bankAccountName: string, - payid: string, - } -} - -export class SpecificBanksAccountPayload extends jspb.Message { - getAcceptedBanksList(): Array; - setAcceptedBanksList(value: Array): SpecificBanksAccountPayload; - clearAcceptedBanksList(): SpecificBanksAccountPayload; - addAcceptedBanks(value: string, index?: number): SpecificBanksAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SpecificBanksAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: SpecificBanksAccountPayload): SpecificBanksAccountPayload.AsObject; - static serializeBinaryToWriter(message: SpecificBanksAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SpecificBanksAccountPayload; - static deserializeBinaryFromReader(message: SpecificBanksAccountPayload, reader: jspb.BinaryReader): SpecificBanksAccountPayload; -} - -export namespace SpecificBanksAccountPayload { - export type AsObject = { - acceptedBanksList: Array, - } -} - -export class CashDepositAccountPayload extends jspb.Message { - getHolderName(): string; - setHolderName(value: string): CashDepositAccountPayload; - - getHolderEmail(): string; - setHolderEmail(value: string): CashDepositAccountPayload; - - getBankName(): string; - setBankName(value: string): CashDepositAccountPayload; - - getBankId(): string; - setBankId(value: string): CashDepositAccountPayload; - - getBranchId(): string; - setBranchId(value: string): CashDepositAccountPayload; - - getAccountNr(): string; - setAccountNr(value: string): CashDepositAccountPayload; - - getAccountType(): string; - setAccountType(value: string): CashDepositAccountPayload; - - getRequirements(): string; - setRequirements(value: string): CashDepositAccountPayload; - - getHolderTaxId(): string; - setHolderTaxId(value: string): CashDepositAccountPayload; - - getNationalAccountId(): string; - setNationalAccountId(value: string): CashDepositAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CashDepositAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: CashDepositAccountPayload): CashDepositAccountPayload.AsObject; - static serializeBinaryToWriter(message: CashDepositAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CashDepositAccountPayload; - static deserializeBinaryFromReader(message: CashDepositAccountPayload, reader: jspb.BinaryReader): CashDepositAccountPayload; -} - -export namespace CashDepositAccountPayload { - export type AsObject = { - holderName: string, - holderEmail: string, - bankName: string, - bankId: string, - branchId: string, - accountNr: string, - accountType: string, - requirements: string, - holderTaxId: string, - nationalAccountId: string, - } -} - -export class MoneyGramAccountPayload extends jspb.Message { - getHolderName(): string; - setHolderName(value: string): MoneyGramAccountPayload; - - getCountryCode(): string; - setCountryCode(value: string): MoneyGramAccountPayload; - - getState(): string; - setState(value: string): MoneyGramAccountPayload; - - getEmail(): string; - setEmail(value: string): MoneyGramAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MoneyGramAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: MoneyGramAccountPayload): MoneyGramAccountPayload.AsObject; - static serializeBinaryToWriter(message: MoneyGramAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MoneyGramAccountPayload; - static deserializeBinaryFromReader(message: MoneyGramAccountPayload, reader: jspb.BinaryReader): MoneyGramAccountPayload; -} - -export namespace MoneyGramAccountPayload { - export type AsObject = { - holderName: string, - countryCode: string, - state: string, - email: string, - } -} - -export class HalCashAccountPayload extends jspb.Message { - getMobileNr(): string; - setMobileNr(value: string): HalCashAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HalCashAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: HalCashAccountPayload): HalCashAccountPayload.AsObject; - static serializeBinaryToWriter(message: HalCashAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HalCashAccountPayload; - static deserializeBinaryFromReader(message: HalCashAccountPayload, reader: jspb.BinaryReader): HalCashAccountPayload; -} - -export namespace HalCashAccountPayload { - export type AsObject = { - mobileNr: string, - } -} - -export class WesternUnionAccountPayload extends jspb.Message { - getHolderName(): string; - setHolderName(value: string): WesternUnionAccountPayload; - - getCity(): string; - setCity(value: string): WesternUnionAccountPayload; - - getState(): string; - setState(value: string): WesternUnionAccountPayload; - - getEmail(): string; - setEmail(value: string): WesternUnionAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WesternUnionAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: WesternUnionAccountPayload): WesternUnionAccountPayload.AsObject; - static serializeBinaryToWriter(message: WesternUnionAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WesternUnionAccountPayload; - static deserializeBinaryFromReader(message: WesternUnionAccountPayload, reader: jspb.BinaryReader): WesternUnionAccountPayload; -} - -export namespace WesternUnionAccountPayload { - export type AsObject = { - holderName: string, - city: string, - state: string, - email: string, - } -} - -export class AmazonGiftCardAccountPayload extends jspb.Message { - getEmailOrMobileNr(): string; - setEmailOrMobileNr(value: string): AmazonGiftCardAccountPayload; - - getCountryCode(): string; - setCountryCode(value: string): AmazonGiftCardAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AmazonGiftCardAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: AmazonGiftCardAccountPayload): AmazonGiftCardAccountPayload.AsObject; - static serializeBinaryToWriter(message: AmazonGiftCardAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AmazonGiftCardAccountPayload; - static deserializeBinaryFromReader(message: AmazonGiftCardAccountPayload, reader: jspb.BinaryReader): AmazonGiftCardAccountPayload; -} - -export namespace AmazonGiftCardAccountPayload { - export type AsObject = { - emailOrMobileNr: string, - countryCode: string, - } -} - -export class SepaAccountPayload extends jspb.Message { - getHolderName(): string; - setHolderName(value: string): SepaAccountPayload; - - getIban(): string; - setIban(value: string): SepaAccountPayload; - - getBic(): string; - setBic(value: string): SepaAccountPayload; - - getEmail(): string; - setEmail(value: string): SepaAccountPayload; - - getAcceptedCountryCodesList(): Array; - setAcceptedCountryCodesList(value: Array): SepaAccountPayload; - clearAcceptedCountryCodesList(): SepaAccountPayload; - addAcceptedCountryCodes(value: string, index?: number): SepaAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SepaAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: SepaAccountPayload): SepaAccountPayload.AsObject; - static serializeBinaryToWriter(message: SepaAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SepaAccountPayload; - static deserializeBinaryFromReader(message: SepaAccountPayload, reader: jspb.BinaryReader): SepaAccountPayload; -} - -export namespace SepaAccountPayload { - export type AsObject = { - holderName: string, - iban: string, - bic: string, - email: string, - acceptedCountryCodesList: Array, - } -} - -export class SepaInstantAccountPayload extends jspb.Message { - getHolderName(): string; - setHolderName(value: string): SepaInstantAccountPayload; - - getIban(): string; - setIban(value: string): SepaInstantAccountPayload; - - getBic(): string; - setBic(value: string): SepaInstantAccountPayload; - - getAcceptedCountryCodesList(): Array; - setAcceptedCountryCodesList(value: Array): SepaInstantAccountPayload; - clearAcceptedCountryCodesList(): SepaInstantAccountPayload; - addAcceptedCountryCodes(value: string, index?: number): SepaInstantAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SepaInstantAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: SepaInstantAccountPayload): SepaInstantAccountPayload.AsObject; - static serializeBinaryToWriter(message: SepaInstantAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SepaInstantAccountPayload; - static deserializeBinaryFromReader(message: SepaInstantAccountPayload, reader: jspb.BinaryReader): SepaInstantAccountPayload; -} - -export namespace SepaInstantAccountPayload { - export type AsObject = { - holderName: string, - iban: string, - bic: string, - acceptedCountryCodesList: Array, - } -} - -export class CryptoCurrencyAccountPayload extends jspb.Message { - getAddress(): string; - setAddress(value: string): CryptoCurrencyAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CryptoCurrencyAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: CryptoCurrencyAccountPayload): CryptoCurrencyAccountPayload.AsObject; - static serializeBinaryToWriter(message: CryptoCurrencyAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CryptoCurrencyAccountPayload; - static deserializeBinaryFromReader(message: CryptoCurrencyAccountPayload, reader: jspb.BinaryReader): CryptoCurrencyAccountPayload; -} - -export namespace CryptoCurrencyAccountPayload { - export type AsObject = { - address: string, - } -} - -export class InstantCryptoCurrencyAccountPayload extends jspb.Message { - getAddress(): string; - setAddress(value: string): InstantCryptoCurrencyAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InstantCryptoCurrencyAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: InstantCryptoCurrencyAccountPayload): InstantCryptoCurrencyAccountPayload.AsObject; - static serializeBinaryToWriter(message: InstantCryptoCurrencyAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InstantCryptoCurrencyAccountPayload; - static deserializeBinaryFromReader(message: InstantCryptoCurrencyAccountPayload, reader: jspb.BinaryReader): InstantCryptoCurrencyAccountPayload; -} - -export namespace InstantCryptoCurrencyAccountPayload { - export type AsObject = { - address: string, - } -} - -export class FasterPaymentsAccountPayload extends jspb.Message { - getSortCode(): string; - setSortCode(value: string): FasterPaymentsAccountPayload; - - getAccountNr(): string; - setAccountNr(value: string): FasterPaymentsAccountPayload; - - getEmail(): string; - setEmail(value: string): FasterPaymentsAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FasterPaymentsAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: FasterPaymentsAccountPayload): FasterPaymentsAccountPayload.AsObject; - static serializeBinaryToWriter(message: FasterPaymentsAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FasterPaymentsAccountPayload; - static deserializeBinaryFromReader(message: FasterPaymentsAccountPayload, reader: jspb.BinaryReader): FasterPaymentsAccountPayload; -} - -export namespace FasterPaymentsAccountPayload { - export type AsObject = { - sortCode: string, - accountNr: string, - email: string, - } -} - -export class InteracETransferAccountPayload extends jspb.Message { - getEmail(): string; - setEmail(value: string): InteracETransferAccountPayload; - - getHolderName(): string; - setHolderName(value: string): InteracETransferAccountPayload; - - getQuestion(): string; - setQuestion(value: string): InteracETransferAccountPayload; - - getAnswer(): string; - setAnswer(value: string): InteracETransferAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InteracETransferAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: InteracETransferAccountPayload): InteracETransferAccountPayload.AsObject; - static serializeBinaryToWriter(message: InteracETransferAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InteracETransferAccountPayload; - static deserializeBinaryFromReader(message: InteracETransferAccountPayload, reader: jspb.BinaryReader): InteracETransferAccountPayload; -} - -export namespace InteracETransferAccountPayload { - export type AsObject = { - email: string, - holderName: string, - question: string, - answer: string, - } -} - -export class OKPayAccountPayload extends jspb.Message { - getAccountNr(): string; - setAccountNr(value: string): OKPayAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OKPayAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: OKPayAccountPayload): OKPayAccountPayload.AsObject; - static serializeBinaryToWriter(message: OKPayAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OKPayAccountPayload; - static deserializeBinaryFromReader(message: OKPayAccountPayload, reader: jspb.BinaryReader): OKPayAccountPayload; -} - -export namespace OKPayAccountPayload { - export type AsObject = { - accountNr: string, - } -} - -export class UpholdAccountPayload extends jspb.Message { - getAccountId(): string; - setAccountId(value: string): UpholdAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpholdAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: UpholdAccountPayload): UpholdAccountPayload.AsObject; - static serializeBinaryToWriter(message: UpholdAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpholdAccountPayload; - static deserializeBinaryFromReader(message: UpholdAccountPayload, reader: jspb.BinaryReader): UpholdAccountPayload; -} - -export namespace UpholdAccountPayload { - export type AsObject = { - accountId: string, - } -} - -export class CashAppAccountPayload extends jspb.Message { - getCashTag(): string; - setCashTag(value: string): CashAppAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CashAppAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: CashAppAccountPayload): CashAppAccountPayload.AsObject; - static serializeBinaryToWriter(message: CashAppAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CashAppAccountPayload; - static deserializeBinaryFromReader(message: CashAppAccountPayload, reader: jspb.BinaryReader): CashAppAccountPayload; -} - -export namespace CashAppAccountPayload { - export type AsObject = { - cashTag: string, - } -} - -export class MoneyBeamAccountPayload extends jspb.Message { - getAccountId(): string; - setAccountId(value: string): MoneyBeamAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MoneyBeamAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: MoneyBeamAccountPayload): MoneyBeamAccountPayload.AsObject; - static serializeBinaryToWriter(message: MoneyBeamAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MoneyBeamAccountPayload; - static deserializeBinaryFromReader(message: MoneyBeamAccountPayload, reader: jspb.BinaryReader): MoneyBeamAccountPayload; -} - -export namespace MoneyBeamAccountPayload { - export type AsObject = { - accountId: string, - } -} - -export class VenmoAccountPayload extends jspb.Message { - getVenmoUserName(): string; - setVenmoUserName(value: string): VenmoAccountPayload; - - getHolderName(): string; - setHolderName(value: string): VenmoAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VenmoAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: VenmoAccountPayload): VenmoAccountPayload.AsObject; - static serializeBinaryToWriter(message: VenmoAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VenmoAccountPayload; - static deserializeBinaryFromReader(message: VenmoAccountPayload, reader: jspb.BinaryReader): VenmoAccountPayload; -} - -export namespace VenmoAccountPayload { - export type AsObject = { - venmoUserName: string, - holderName: string, - } -} - -export class PopmoneyAccountPayload extends jspb.Message { - getAccountId(): string; - setAccountId(value: string): PopmoneyAccountPayload; - - getHolderName(): string; - setHolderName(value: string): PopmoneyAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PopmoneyAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: PopmoneyAccountPayload): PopmoneyAccountPayload.AsObject; - static serializeBinaryToWriter(message: PopmoneyAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PopmoneyAccountPayload; - static deserializeBinaryFromReader(message: PopmoneyAccountPayload, reader: jspb.BinaryReader): PopmoneyAccountPayload; -} - -export namespace PopmoneyAccountPayload { - export type AsObject = { - accountId: string, - holderName: string, - } -} - -export class RevolutAccountPayload extends jspb.Message { - getAccountId(): string; - setAccountId(value: string): RevolutAccountPayload; - - getUserName(): string; - setUserName(value: string): RevolutAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RevolutAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: RevolutAccountPayload): RevolutAccountPayload.AsObject; - static serializeBinaryToWriter(message: RevolutAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RevolutAccountPayload; - static deserializeBinaryFromReader(message: RevolutAccountPayload, reader: jspb.BinaryReader): RevolutAccountPayload; -} - -export namespace RevolutAccountPayload { - export type AsObject = { - accountId: string, - userName: string, - } -} - -export class PerfectMoneyAccountPayload extends jspb.Message { - getAccountNr(): string; - setAccountNr(value: string): PerfectMoneyAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PerfectMoneyAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: PerfectMoneyAccountPayload): PerfectMoneyAccountPayload.AsObject; - static serializeBinaryToWriter(message: PerfectMoneyAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PerfectMoneyAccountPayload; - static deserializeBinaryFromReader(message: PerfectMoneyAccountPayload, reader: jspb.BinaryReader): PerfectMoneyAccountPayload; -} - -export namespace PerfectMoneyAccountPayload { - export type AsObject = { - accountNr: string, - } -} - -export class SwishAccountPayload extends jspb.Message { - getMobileNr(): string; - setMobileNr(value: string): SwishAccountPayload; - - getHolderName(): string; - setHolderName(value: string): SwishAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SwishAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: SwishAccountPayload): SwishAccountPayload.AsObject; - static serializeBinaryToWriter(message: SwishAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SwishAccountPayload; - static deserializeBinaryFromReader(message: SwishAccountPayload, reader: jspb.BinaryReader): SwishAccountPayload; -} - -export namespace SwishAccountPayload { - export type AsObject = { - mobileNr: string, - holderName: string, - } -} - -export class USPostalMoneyOrderAccountPayload extends jspb.Message { - getPostalAddress(): string; - setPostalAddress(value: string): USPostalMoneyOrderAccountPayload; - - getHolderName(): string; - setHolderName(value: string): USPostalMoneyOrderAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): USPostalMoneyOrderAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: USPostalMoneyOrderAccountPayload): USPostalMoneyOrderAccountPayload.AsObject; - static serializeBinaryToWriter(message: USPostalMoneyOrderAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): USPostalMoneyOrderAccountPayload; - static deserializeBinaryFromReader(message: USPostalMoneyOrderAccountPayload, reader: jspb.BinaryReader): USPostalMoneyOrderAccountPayload; -} - -export namespace USPostalMoneyOrderAccountPayload { - export type AsObject = { - postalAddress: string, - holderName: string, - } -} - -export class F2FAccountPayload extends jspb.Message { - getContact(): string; - setContact(value: string): F2FAccountPayload; - - getCity(): string; - setCity(value: string): F2FAccountPayload; - - getExtraInfo(): string; - setExtraInfo(value: string): F2FAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): F2FAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: F2FAccountPayload): F2FAccountPayload.AsObject; - static serializeBinaryToWriter(message: F2FAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): F2FAccountPayload; - static deserializeBinaryFromReader(message: F2FAccountPayload, reader: jspb.BinaryReader): F2FAccountPayload; -} - -export namespace F2FAccountPayload { - export type AsObject = { - contact: string, - city: string, - extraInfo: string, - } -} - -export class CashByMailAccountPayload extends jspb.Message { - getPostalAddress(): string; - setPostalAddress(value: string): CashByMailAccountPayload; - - getContact(): string; - setContact(value: string): CashByMailAccountPayload; - - getExtraInfo(): string; - setExtraInfo(value: string): CashByMailAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CashByMailAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: CashByMailAccountPayload): CashByMailAccountPayload.AsObject; - static serializeBinaryToWriter(message: CashByMailAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CashByMailAccountPayload; - static deserializeBinaryFromReader(message: CashByMailAccountPayload, reader: jspb.BinaryReader): CashByMailAccountPayload; -} - -export namespace CashByMailAccountPayload { - export type AsObject = { - postalAddress: string, - contact: string, - extraInfo: string, - } -} - -export class PromptPayAccountPayload extends jspb.Message { - getPromptPayId(): string; - setPromptPayId(value: string): PromptPayAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PromptPayAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: PromptPayAccountPayload): PromptPayAccountPayload.AsObject; - static serializeBinaryToWriter(message: PromptPayAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PromptPayAccountPayload; - static deserializeBinaryFromReader(message: PromptPayAccountPayload, reader: jspb.BinaryReader): PromptPayAccountPayload; -} - -export namespace PromptPayAccountPayload { - export type AsObject = { - promptPayId: string, - } -} - -export class AdvancedCashAccountPayload extends jspb.Message { - getAccountNr(): string; - setAccountNr(value: string): AdvancedCashAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AdvancedCashAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: AdvancedCashAccountPayload): AdvancedCashAccountPayload.AsObject; - static serializeBinaryToWriter(message: AdvancedCashAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AdvancedCashAccountPayload; - static deserializeBinaryFromReader(message: AdvancedCashAccountPayload, reader: jspb.BinaryReader): AdvancedCashAccountPayload; -} - -export namespace AdvancedCashAccountPayload { - export type AsObject = { - accountNr: string, - } -} - -export class TransferwiseAccountPayload extends jspb.Message { - getEmail(): string; - setEmail(value: string): TransferwiseAccountPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TransferwiseAccountPayload.AsObject; - static toObject(includeInstance: boolean, msg: TransferwiseAccountPayload): TransferwiseAccountPayload.AsObject; - static serializeBinaryToWriter(message: TransferwiseAccountPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TransferwiseAccountPayload; - static deserializeBinaryFromReader(message: TransferwiseAccountPayload, reader: jspb.BinaryReader): TransferwiseAccountPayload; -} - -export namespace TransferwiseAccountPayload { - export type AsObject = { - email: string, - } -} - -export class PersistableEnvelope extends jspb.Message { - getSequenceNumberMap(): SequenceNumberMap | undefined; - setSequenceNumberMap(value?: SequenceNumberMap): PersistableEnvelope; - hasSequenceNumberMap(): boolean; - clearSequenceNumberMap(): PersistableEnvelope; - - getPersistedEntryMap(): PersistedEntryMap | undefined; - setPersistedEntryMap(value?: PersistedEntryMap): PersistableEnvelope; - hasPersistedEntryMap(): boolean; - clearPersistedEntryMap(): PersistableEnvelope; - - getPeerList(): PeerList | undefined; - setPeerList(value?: PeerList): PersistableEnvelope; - hasPeerList(): boolean; - clearPeerList(): PersistableEnvelope; - - getAddressEntryList(): AddressEntryList | undefined; - setAddressEntryList(value?: AddressEntryList): PersistableEnvelope; - hasAddressEntryList(): boolean; - clearAddressEntryList(): PersistableEnvelope; - - getNavigationPath(): NavigationPath | undefined; - setNavigationPath(value?: NavigationPath): PersistableEnvelope; - hasNavigationPath(): boolean; - clearNavigationPath(): PersistableEnvelope; - - getTradableList(): TradableList | undefined; - setTradableList(value?: TradableList): PersistableEnvelope; - hasTradableList(): boolean; - clearTradableList(): PersistableEnvelope; - - getArbitrationDisputeList(): ArbitrationDisputeList | undefined; - setArbitrationDisputeList(value?: ArbitrationDisputeList): PersistableEnvelope; - hasArbitrationDisputeList(): boolean; - clearArbitrationDisputeList(): PersistableEnvelope; - - getPreferencesPayload(): PreferencesPayload | undefined; - setPreferencesPayload(value?: PreferencesPayload): PersistableEnvelope; - hasPreferencesPayload(): boolean; - clearPreferencesPayload(): PersistableEnvelope; - - getUserPayload(): UserPayload | undefined; - setUserPayload(value?: UserPayload): PersistableEnvelope; - hasUserPayload(): boolean; - clearUserPayload(): PersistableEnvelope; - - getPaymentAccountList(): PaymentAccountList | undefined; - setPaymentAccountList(value?: PaymentAccountList): PersistableEnvelope; - hasPaymentAccountList(): boolean; - clearPaymentAccountList(): PersistableEnvelope; - - getAccountAgeWitnessStore(): AccountAgeWitnessStore | undefined; - setAccountAgeWitnessStore(value?: AccountAgeWitnessStore): PersistableEnvelope; - hasAccountAgeWitnessStore(): boolean; - clearAccountAgeWitnessStore(): PersistableEnvelope; - - getTradeStatistics2Store(): TradeStatistics2Store | undefined; - setTradeStatistics2Store(value?: TradeStatistics2Store): PersistableEnvelope; - hasTradeStatistics2Store(): boolean; - clearTradeStatistics2Store(): PersistableEnvelope; - - getSignedWitnessStore(): SignedWitnessStore | undefined; - setSignedWitnessStore(value?: SignedWitnessStore): PersistableEnvelope; - hasSignedWitnessStore(): boolean; - clearSignedWitnessStore(): PersistableEnvelope; - - getMediationDisputeList(): MediationDisputeList | undefined; - setMediationDisputeList(value?: MediationDisputeList): PersistableEnvelope; - hasMediationDisputeList(): boolean; - clearMediationDisputeList(): PersistableEnvelope; - - getRefundDisputeList(): RefundDisputeList | undefined; - setRefundDisputeList(value?: RefundDisputeList): PersistableEnvelope; - hasRefundDisputeList(): boolean; - clearRefundDisputeList(): PersistableEnvelope; - - getTradeStatistics3Store(): TradeStatistics3Store | undefined; - setTradeStatistics3Store(value?: TradeStatistics3Store): PersistableEnvelope; - hasTradeStatistics3Store(): boolean; - clearTradeStatistics3Store(): PersistableEnvelope; - - getMailboxMessageList(): MailboxMessageList | undefined; - setMailboxMessageList(value?: MailboxMessageList): PersistableEnvelope; - hasMailboxMessageList(): boolean; - clearMailboxMessageList(): PersistableEnvelope; - - getIgnoredMailboxMap(): IgnoredMailboxMap | undefined; - setIgnoredMailboxMap(value?: IgnoredMailboxMap): PersistableEnvelope; - hasIgnoredMailboxMap(): boolean; - clearIgnoredMailboxMap(): PersistableEnvelope; - - getRemovedPayloadsMap(): RemovedPayloadsMap | undefined; - setRemovedPayloadsMap(value?: RemovedPayloadsMap): PersistableEnvelope; - hasRemovedPayloadsMap(): boolean; - clearRemovedPayloadsMap(): PersistableEnvelope; - - getXmrAddressEntryList(): XmrAddressEntryList | undefined; - setXmrAddressEntryList(value?: XmrAddressEntryList): PersistableEnvelope; - hasXmrAddressEntryList(): boolean; - clearXmrAddressEntryList(): PersistableEnvelope; - - getSignedOfferList(): SignedOfferList | undefined; - setSignedOfferList(value?: SignedOfferList): PersistableEnvelope; - hasSignedOfferList(): boolean; - clearSignedOfferList(): PersistableEnvelope; - - getMessageCase(): PersistableEnvelope.MessageCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PersistableEnvelope.AsObject; - static toObject(includeInstance: boolean, msg: PersistableEnvelope): PersistableEnvelope.AsObject; - static serializeBinaryToWriter(message: PersistableEnvelope, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PersistableEnvelope; - static deserializeBinaryFromReader(message: PersistableEnvelope, reader: jspb.BinaryReader): PersistableEnvelope; -} - -export namespace PersistableEnvelope { - export type AsObject = { - sequenceNumberMap?: SequenceNumberMap.AsObject, - persistedEntryMap?: PersistedEntryMap.AsObject, - peerList?: PeerList.AsObject, - addressEntryList?: AddressEntryList.AsObject, - navigationPath?: NavigationPath.AsObject, - tradableList?: TradableList.AsObject, - arbitrationDisputeList?: ArbitrationDisputeList.AsObject, - preferencesPayload?: PreferencesPayload.AsObject, - userPayload?: UserPayload.AsObject, - paymentAccountList?: PaymentAccountList.AsObject, - accountAgeWitnessStore?: AccountAgeWitnessStore.AsObject, - tradeStatistics2Store?: TradeStatistics2Store.AsObject, - signedWitnessStore?: SignedWitnessStore.AsObject, - mediationDisputeList?: MediationDisputeList.AsObject, - refundDisputeList?: RefundDisputeList.AsObject, - tradeStatistics3Store?: TradeStatistics3Store.AsObject, - mailboxMessageList?: MailboxMessageList.AsObject, - ignoredMailboxMap?: IgnoredMailboxMap.AsObject, - removedPayloadsMap?: RemovedPayloadsMap.AsObject, - xmrAddressEntryList?: XmrAddressEntryList.AsObject, - signedOfferList?: SignedOfferList.AsObject, - } - - export enum MessageCase { - MESSAGE_NOT_SET = 0, - SEQUENCE_NUMBER_MAP = 1, - PERSISTED_ENTRY_MAP = 2, - PEER_LIST = 3, - ADDRESS_ENTRY_LIST = 4, - NAVIGATION_PATH = 5, - TRADABLE_LIST = 6, - ARBITRATION_DISPUTE_LIST = 8, - PREFERENCES_PAYLOAD = 9, - USER_PAYLOAD = 10, - PAYMENT_ACCOUNT_LIST = 11, - ACCOUNT_AGE_WITNESS_STORE = 12, - TRADE_STATISTICS2_STORE = 13, - SIGNED_WITNESS_STORE = 15, - MEDIATION_DISPUTE_LIST = 16, - REFUND_DISPUTE_LIST = 17, - TRADE_STATISTICS3_STORE = 18, - MAILBOX_MESSAGE_LIST = 19, - IGNORED_MAILBOX_MAP = 20, - REMOVED_PAYLOADS_MAP = 21, - XMR_ADDRESS_ENTRY_LIST = 1001, - SIGNED_OFFER_LIST = 1002, - } -} - -export class SequenceNumberMap extends jspb.Message { - getSequenceNumberEntriesList(): Array; - setSequenceNumberEntriesList(value: Array): SequenceNumberMap; - clearSequenceNumberEntriesList(): SequenceNumberMap; - addSequenceNumberEntries(value?: SequenceNumberEntry, index?: number): SequenceNumberEntry; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SequenceNumberMap.AsObject; - static toObject(includeInstance: boolean, msg: SequenceNumberMap): SequenceNumberMap.AsObject; - static serializeBinaryToWriter(message: SequenceNumberMap, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SequenceNumberMap; - static deserializeBinaryFromReader(message: SequenceNumberMap, reader: jspb.BinaryReader): SequenceNumberMap; -} - -export namespace SequenceNumberMap { - export type AsObject = { - sequenceNumberEntriesList: Array, - } -} - -export class SequenceNumberEntry extends jspb.Message { - getBytes(): ByteArray | undefined; - setBytes(value?: ByteArray): SequenceNumberEntry; - hasBytes(): boolean; - clearBytes(): SequenceNumberEntry; - - getMapValue(): MapValue | undefined; - setMapValue(value?: MapValue): SequenceNumberEntry; - hasMapValue(): boolean; - clearMapValue(): SequenceNumberEntry; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SequenceNumberEntry.AsObject; - static toObject(includeInstance: boolean, msg: SequenceNumberEntry): SequenceNumberEntry.AsObject; - static serializeBinaryToWriter(message: SequenceNumberEntry, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SequenceNumberEntry; - static deserializeBinaryFromReader(message: SequenceNumberEntry, reader: jspb.BinaryReader): SequenceNumberEntry; -} - -export namespace SequenceNumberEntry { - export type AsObject = { - bytes?: ByteArray.AsObject, - mapValue?: MapValue.AsObject, - } -} - -export class ByteArray extends jspb.Message { - getBytes(): Uint8Array | string; - getBytes_asU8(): Uint8Array; - getBytes_asB64(): string; - setBytes(value: Uint8Array | string): ByteArray; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ByteArray.AsObject; - static toObject(includeInstance: boolean, msg: ByteArray): ByteArray.AsObject; - static serializeBinaryToWriter(message: ByteArray, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ByteArray; - static deserializeBinaryFromReader(message: ByteArray, reader: jspb.BinaryReader): ByteArray; -} - -export namespace ByteArray { - export type AsObject = { - bytes: Uint8Array | string, - } -} - -export class MapValue extends jspb.Message { - getSequenceNr(): number; - setSequenceNr(value: number): MapValue; - - getTimeStamp(): number; - setTimeStamp(value: number): MapValue; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MapValue.AsObject; - static toObject(includeInstance: boolean, msg: MapValue): MapValue.AsObject; - static serializeBinaryToWriter(message: MapValue, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MapValue; - static deserializeBinaryFromReader(message: MapValue, reader: jspb.BinaryReader): MapValue; -} - -export namespace MapValue { - export type AsObject = { - sequenceNr: number, - timeStamp: number, - } -} - -export class PersistedEntryMap extends jspb.Message { - getPersistedEntryMapMap(): jspb.Map; - clearPersistedEntryMapMap(): PersistedEntryMap; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PersistedEntryMap.AsObject; - static toObject(includeInstance: boolean, msg: PersistedEntryMap): PersistedEntryMap.AsObject; - static serializeBinaryToWriter(message: PersistedEntryMap, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PersistedEntryMap; - static deserializeBinaryFromReader(message: PersistedEntryMap, reader: jspb.BinaryReader): PersistedEntryMap; -} - -export namespace PersistedEntryMap { - export type AsObject = { - persistedEntryMapMap: Array<[string, ProtectedStorageEntry.AsObject]>, - } -} - -export class AccountAgeWitnessStore extends jspb.Message { - getItemsList(): Array; - setItemsList(value: Array): AccountAgeWitnessStore; - clearItemsList(): AccountAgeWitnessStore; - addItems(value?: AccountAgeWitness, index?: number): AccountAgeWitness; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AccountAgeWitnessStore.AsObject; - static toObject(includeInstance: boolean, msg: AccountAgeWitnessStore): AccountAgeWitnessStore.AsObject; - static serializeBinaryToWriter(message: AccountAgeWitnessStore, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AccountAgeWitnessStore; - static deserializeBinaryFromReader(message: AccountAgeWitnessStore, reader: jspb.BinaryReader): AccountAgeWitnessStore; -} - -export namespace AccountAgeWitnessStore { - export type AsObject = { - itemsList: Array, - } -} - -export class SignedWitnessStore extends jspb.Message { - getItemsList(): Array; - setItemsList(value: Array): SignedWitnessStore; - clearItemsList(): SignedWitnessStore; - addItems(value?: SignedWitness, index?: number): SignedWitness; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SignedWitnessStore.AsObject; - static toObject(includeInstance: boolean, msg: SignedWitnessStore): SignedWitnessStore.AsObject; - static serializeBinaryToWriter(message: SignedWitnessStore, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SignedWitnessStore; - static deserializeBinaryFromReader(message: SignedWitnessStore, reader: jspb.BinaryReader): SignedWitnessStore; -} - -export namespace SignedWitnessStore { - export type AsObject = { - itemsList: Array, - } -} - -export class TradeStatistics2Store extends jspb.Message { - getItemsList(): Array; - setItemsList(value: Array): TradeStatistics2Store; - clearItemsList(): TradeStatistics2Store; - addItems(value?: TradeStatistics2, index?: number): TradeStatistics2; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TradeStatistics2Store.AsObject; - static toObject(includeInstance: boolean, msg: TradeStatistics2Store): TradeStatistics2Store.AsObject; - static serializeBinaryToWriter(message: TradeStatistics2Store, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TradeStatistics2Store; - static deserializeBinaryFromReader(message: TradeStatistics2Store, reader: jspb.BinaryReader): TradeStatistics2Store; -} - -export namespace TradeStatistics2Store { - export type AsObject = { - itemsList: Array, - } -} - -export class TradeStatistics3Store extends jspb.Message { - getItemsList(): Array; - setItemsList(value: Array): TradeStatistics3Store; - clearItemsList(): TradeStatistics3Store; - addItems(value?: TradeStatistics3, index?: number): TradeStatistics3; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TradeStatistics3Store.AsObject; - static toObject(includeInstance: boolean, msg: TradeStatistics3Store): TradeStatistics3Store.AsObject; - static serializeBinaryToWriter(message: TradeStatistics3Store, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TradeStatistics3Store; - static deserializeBinaryFromReader(message: TradeStatistics3Store, reader: jspb.BinaryReader): TradeStatistics3Store; -} - -export namespace TradeStatistics3Store { - export type AsObject = { - itemsList: Array, - } -} - -export class PeerList extends jspb.Message { - getPeerList(): Array; - setPeerList(value: Array): PeerList; - clearPeerList(): PeerList; - addPeer(value?: Peer, index?: number): Peer; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PeerList.AsObject; - static toObject(includeInstance: boolean, msg: PeerList): PeerList.AsObject; - static serializeBinaryToWriter(message: PeerList, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PeerList; - static deserializeBinaryFromReader(message: PeerList, reader: jspb.BinaryReader): PeerList; -} - -export namespace PeerList { - export type AsObject = { - peerList: Array, - } -} - -export class AddressEntryList extends jspb.Message { - getAddressEntryList(): Array; - setAddressEntryList(value: Array): AddressEntryList; - clearAddressEntryList(): AddressEntryList; - addAddressEntry(value?: AddressEntry, index?: number): AddressEntry; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AddressEntryList.AsObject; - static toObject(includeInstance: boolean, msg: AddressEntryList): AddressEntryList.AsObject; - static serializeBinaryToWriter(message: AddressEntryList, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AddressEntryList; - static deserializeBinaryFromReader(message: AddressEntryList, reader: jspb.BinaryReader): AddressEntryList; -} - -export namespace AddressEntryList { - export type AsObject = { - addressEntryList: Array, - } -} - -export class AddressEntry extends jspb.Message { - getOfferId(): string; - setOfferId(value: string): AddressEntry; - - getContext(): AddressEntry.Context; - setContext(value: AddressEntry.Context): AddressEntry; - - getPubKey(): Uint8Array | string; - getPubKey_asU8(): Uint8Array; - getPubKey_asB64(): string; - setPubKey(value: Uint8Array | string): AddressEntry; - - getPubKeyHash(): Uint8Array | string; - getPubKeyHash_asU8(): Uint8Array; - getPubKeyHash_asB64(): string; - setPubKeyHash(value: Uint8Array | string): AddressEntry; - - getCoinLockedInMultiSig(): number; - setCoinLockedInMultiSig(value: number): AddressEntry; - - getSegwit(): boolean; - setSegwit(value: boolean): AddressEntry; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AddressEntry.AsObject; - static toObject(includeInstance: boolean, msg: AddressEntry): AddressEntry.AsObject; - static serializeBinaryToWriter(message: AddressEntry, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AddressEntry; - static deserializeBinaryFromReader(message: AddressEntry, reader: jspb.BinaryReader): AddressEntry; -} - -export namespace AddressEntry { - export type AsObject = { - offerId: string, - context: AddressEntry.Context, - pubKey: Uint8Array | string, - pubKeyHash: Uint8Array | string, - coinLockedInMultiSig: number, - segwit: boolean, - } - - export enum Context { - PB_ERROR = 0, - ARBITRATOR = 1, - AVAILABLE = 2, - OFFER_FUNDING = 3, - RESERVED_FOR_TRADE = 4, - MULTI_SIG = 5, - TRADE_PAYOUT = 6, - } -} - -export class XmrAddressEntryList extends jspb.Message { - getXmrAddressEntryList(): Array; - setXmrAddressEntryList(value: Array): XmrAddressEntryList; - clearXmrAddressEntryList(): XmrAddressEntryList; - addXmrAddressEntry(value?: XmrAddressEntry, index?: number): XmrAddressEntry; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): XmrAddressEntryList.AsObject; - static toObject(includeInstance: boolean, msg: XmrAddressEntryList): XmrAddressEntryList.AsObject; - static serializeBinaryToWriter(message: XmrAddressEntryList, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): XmrAddressEntryList; - static deserializeBinaryFromReader(message: XmrAddressEntryList, reader: jspb.BinaryReader): XmrAddressEntryList; -} - -export namespace XmrAddressEntryList { - export type AsObject = { - xmrAddressEntryList: Array, - } -} - -export class XmrAddressEntry extends jspb.Message { - getSubaddressIndex(): number; - setSubaddressIndex(value: number): XmrAddressEntry; - - getAddressString(): string; - setAddressString(value: string): XmrAddressEntry; - - getOfferId(): string; - setOfferId(value: string): XmrAddressEntry; - - getContext(): XmrAddressEntry.Context; - setContext(value: XmrAddressEntry.Context): XmrAddressEntry; - - getCoinLockedInMultiSig(): number; - setCoinLockedInMultiSig(value: number): XmrAddressEntry; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): XmrAddressEntry.AsObject; - static toObject(includeInstance: boolean, msg: XmrAddressEntry): XmrAddressEntry.AsObject; - static serializeBinaryToWriter(message: XmrAddressEntry, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): XmrAddressEntry; - static deserializeBinaryFromReader(message: XmrAddressEntry, reader: jspb.BinaryReader): XmrAddressEntry; -} - -export namespace XmrAddressEntry { - export type AsObject = { - subaddressIndex: number, - addressString: string, - offerId: string, - context: XmrAddressEntry.Context, - coinLockedInMultiSig: number, - } - - export enum Context { - PB_ERROR = 0, - ARBITRATOR = 1, - AVAILABLE = 2, - OFFER_FUNDING = 3, - RESERVED_FOR_TRADE = 4, - MULTI_SIG = 5, - TRADE_PAYOUT = 6, - } -} - -export class NavigationPath extends jspb.Message { - getPathList(): Array; - setPathList(value: Array): NavigationPath; - clearPathList(): NavigationPath; - addPath(value: string, index?: number): NavigationPath; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NavigationPath.AsObject; - static toObject(includeInstance: boolean, msg: NavigationPath): NavigationPath.AsObject; - static serializeBinaryToWriter(message: NavigationPath, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NavigationPath; - static deserializeBinaryFromReader(message: NavigationPath, reader: jspb.BinaryReader): NavigationPath; -} - -export namespace NavigationPath { - export type AsObject = { - pathList: Array, - } -} - -export class PaymentAccountList extends jspb.Message { - getPaymentAccountList(): Array; - setPaymentAccountList(value: Array): PaymentAccountList; - clearPaymentAccountList(): PaymentAccountList; - addPaymentAccount(value?: PaymentAccount, index?: number): PaymentAccount; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PaymentAccountList.AsObject; - static toObject(includeInstance: boolean, msg: PaymentAccountList): PaymentAccountList.AsObject; - static serializeBinaryToWriter(message: PaymentAccountList, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PaymentAccountList; - static deserializeBinaryFromReader(message: PaymentAccountList, reader: jspb.BinaryReader): PaymentAccountList; -} - -export namespace PaymentAccountList { - export type AsObject = { - paymentAccountList: Array, - } -} - -export class TradableList extends jspb.Message { - getTradableList(): Array; - setTradableList(value: Array): TradableList; - clearTradableList(): TradableList; - addTradable(value?: Tradable, index?: number): Tradable; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TradableList.AsObject; - static toObject(includeInstance: boolean, msg: TradableList): TradableList.AsObject; - static serializeBinaryToWriter(message: TradableList, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TradableList; - static deserializeBinaryFromReader(message: TradableList, reader: jspb.BinaryReader): TradableList; -} - -export namespace TradableList { - export type AsObject = { - tradableList: Array, - } -} - -export class Offer extends jspb.Message { - getOfferPayload(): OfferPayload | undefined; - setOfferPayload(value?: OfferPayload): Offer; - hasOfferPayload(): boolean; - clearOfferPayload(): Offer; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Offer.AsObject; - static toObject(includeInstance: boolean, msg: Offer): Offer.AsObject; - static serializeBinaryToWriter(message: Offer, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Offer; - static deserializeBinaryFromReader(message: Offer, reader: jspb.BinaryReader): Offer; -} - -export namespace Offer { - export type AsObject = { - offerPayload?: OfferPayload.AsObject, - } - - export enum State { - PB_ERROR = 0, - UNKNOWN = 1, - OFFER_FEE_PAID = 2, - AVAILABLE = 3, - NOT_AVAILABLE = 4, - REMOVED = 5, - MAKER_OFFLINE = 6, - } -} - -export class SignedOfferList extends jspb.Message { - getSignedOfferList(): Array; - setSignedOfferList(value: Array): SignedOfferList; - clearSignedOfferList(): SignedOfferList; - addSignedOffer(value?: SignedOffer, index?: number): SignedOffer; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SignedOfferList.AsObject; - static toObject(includeInstance: boolean, msg: SignedOfferList): SignedOfferList.AsObject; - static serializeBinaryToWriter(message: SignedOfferList, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SignedOfferList; - static deserializeBinaryFromReader(message: SignedOfferList, reader: jspb.BinaryReader): SignedOfferList; -} - -export namespace SignedOfferList { - export type AsObject = { - signedOfferList: Array, - } -} - -export class SignedOffer extends jspb.Message { - getOfferId(): string; - setOfferId(value: string): SignedOffer; - - getReserveTxHash(): string; - setReserveTxHash(value: string): SignedOffer; - - getReserveTxHex(): string; - setReserveTxHex(value: string): SignedOffer; - - getArbitratorSignature(): string; - setArbitratorSignature(value: string): SignedOffer; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SignedOffer.AsObject; - static toObject(includeInstance: boolean, msg: SignedOffer): SignedOffer.AsObject; - static serializeBinaryToWriter(message: SignedOffer, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SignedOffer; - static deserializeBinaryFromReader(message: SignedOffer, reader: jspb.BinaryReader): SignedOffer; -} - -export namespace SignedOffer { - export type AsObject = { - offerId: string, - reserveTxHash: string, - reserveTxHex: string, - arbitratorSignature: string, - } -} - -export class OpenOffer extends jspb.Message { - getOffer(): Offer | undefined; - setOffer(value?: Offer): OpenOffer; - hasOffer(): boolean; - clearOffer(): OpenOffer; - - getState(): OpenOffer.State; - setState(value: OpenOffer.State): OpenOffer; - - getBackupArbitrator(): NodeAddress | undefined; - setBackupArbitrator(value?: NodeAddress): OpenOffer; - hasBackupArbitrator(): boolean; - clearBackupArbitrator(): OpenOffer; - - getTriggerPrice(): number; - setTriggerPrice(value: number): OpenOffer; - - getReserveTxHash(): string; - setReserveTxHash(value: string): OpenOffer; - - getReserveTxHex(): string; - setReserveTxHex(value: string): OpenOffer; - - getReserveTxKey(): string; - setReserveTxKey(value: string): OpenOffer; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OpenOffer.AsObject; - static toObject(includeInstance: boolean, msg: OpenOffer): OpenOffer.AsObject; - static serializeBinaryToWriter(message: OpenOffer, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OpenOffer; - static deserializeBinaryFromReader(message: OpenOffer, reader: jspb.BinaryReader): OpenOffer; -} - -export namespace OpenOffer { - export type AsObject = { - offer?: Offer.AsObject, - state: OpenOffer.State, - backupArbitrator?: NodeAddress.AsObject, - triggerPrice: number, - reserveTxHash: string, - reserveTxHex: string, - reserveTxKey: string, - } - - export enum State { - PB_ERROR = 0, - AVAILABLE = 1, - RESERVED = 2, - CLOSED = 3, - CANCELED = 4, - DEACTIVATED = 5, - } -} - -export class Tradable extends jspb.Message { - getOpenOffer(): OpenOffer | undefined; - setOpenOffer(value?: OpenOffer): Tradable; - hasOpenOffer(): boolean; - clearOpenOffer(): Tradable; - - getBuyerAsMakerTrade(): BuyerAsMakerTrade | undefined; - setBuyerAsMakerTrade(value?: BuyerAsMakerTrade): Tradable; - hasBuyerAsMakerTrade(): boolean; - clearBuyerAsMakerTrade(): Tradable; - - getBuyerAsTakerTrade(): BuyerAsTakerTrade | undefined; - setBuyerAsTakerTrade(value?: BuyerAsTakerTrade): Tradable; - hasBuyerAsTakerTrade(): boolean; - clearBuyerAsTakerTrade(): Tradable; - - getSellerAsMakerTrade(): SellerAsMakerTrade | undefined; - setSellerAsMakerTrade(value?: SellerAsMakerTrade): Tradable; - hasSellerAsMakerTrade(): boolean; - clearSellerAsMakerTrade(): Tradable; - - getSellerAsTakerTrade(): SellerAsTakerTrade | undefined; - setSellerAsTakerTrade(value?: SellerAsTakerTrade): Tradable; - hasSellerAsTakerTrade(): boolean; - clearSellerAsTakerTrade(): Tradable; - - getArbitratorTrade(): ArbitratorTrade | undefined; - setArbitratorTrade(value?: ArbitratorTrade): Tradable; - hasArbitratorTrade(): boolean; - clearArbitratorTrade(): Tradable; - - getSignedOffer(): SignedOffer | undefined; - setSignedOffer(value?: SignedOffer): Tradable; - hasSignedOffer(): boolean; - clearSignedOffer(): Tradable; - - getMessageCase(): Tradable.MessageCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Tradable.AsObject; - static toObject(includeInstance: boolean, msg: Tradable): Tradable.AsObject; - static serializeBinaryToWriter(message: Tradable, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Tradable; - static deserializeBinaryFromReader(message: Tradable, reader: jspb.BinaryReader): Tradable; -} - -export namespace Tradable { - export type AsObject = { - openOffer?: OpenOffer.AsObject, - buyerAsMakerTrade?: BuyerAsMakerTrade.AsObject, - buyerAsTakerTrade?: BuyerAsTakerTrade.AsObject, - sellerAsMakerTrade?: SellerAsMakerTrade.AsObject, - sellerAsTakerTrade?: SellerAsTakerTrade.AsObject, - arbitratorTrade?: ArbitratorTrade.AsObject, - signedOffer?: SignedOffer.AsObject, - } - - export enum MessageCase { - MESSAGE_NOT_SET = 0, - OPEN_OFFER = 1, - BUYER_AS_MAKER_TRADE = 2, - BUYER_AS_TAKER_TRADE = 3, - SELLER_AS_MAKER_TRADE = 4, - SELLER_AS_TAKER_TRADE = 5, - ARBITRATOR_TRADE = 6, - SIGNED_OFFER = 1001, - } -} - -export class Trade extends jspb.Message { - getOffer(): Offer | undefined; - setOffer(value?: Offer): Trade; - hasOffer(): boolean; - clearOffer(): Trade; - - getProcessModel(): ProcessModel | undefined; - setProcessModel(value?: ProcessModel): Trade; - hasProcessModel(): boolean; - clearProcessModel(): Trade; - - getTakerFeeTxId(): string; - setTakerFeeTxId(value: string): Trade; - - getPayoutTxId(): string; - setPayoutTxId(value: string): Trade; - - getTradeAmountAsLong(): number; - setTradeAmountAsLong(value: number): Trade; - - getTxFeeAsLong(): number; - setTxFeeAsLong(value: number): Trade; - - getTakerFeeAsLong(): number; - setTakerFeeAsLong(value: number): Trade; - - getTakeOfferDate(): number; - setTakeOfferDate(value: number): Trade; - - getTradePrice(): number; - setTradePrice(value: number): Trade; - - getState(): Trade.State; - setState(value: Trade.State): Trade; - - getDisputeState(): Trade.DisputeState; - setDisputeState(value: Trade.DisputeState): Trade; - - getTradePeriodState(): Trade.TradePeriodState; - setTradePeriodState(value: Trade.TradePeriodState): Trade; - - getContract(): Contract | undefined; - setContract(value?: Contract): Trade; - hasContract(): boolean; - clearContract(): Trade; - - getContractAsJson(): string; - setContractAsJson(value: string): Trade; - - getContractHash(): Uint8Array | string; - getContractHash_asU8(): Uint8Array; - getContractHash_asB64(): string; - setContractHash(value: Uint8Array | string): Trade; - - getArbitratorNodeAddress(): NodeAddress | undefined; - setArbitratorNodeAddress(value?: NodeAddress): Trade; - hasArbitratorNodeAddress(): boolean; - clearArbitratorNodeAddress(): Trade; - - getMediatorNodeAddress(): NodeAddress | undefined; - setMediatorNodeAddress(value?: NodeAddress): Trade; - hasMediatorNodeAddress(): boolean; - clearMediatorNodeAddress(): Trade; - - getArbitratorBtcPubKey(): Uint8Array | string; - getArbitratorBtcPubKey_asU8(): Uint8Array; - getArbitratorBtcPubKey_asB64(): string; - setArbitratorBtcPubKey(value: Uint8Array | string): Trade; - - getTakerPaymentAccountId(): string; - setTakerPaymentAccountId(value: string): Trade; - - getErrorMessage(): string; - setErrorMessage(value: string): Trade; - - getArbitratorPubKeyRing(): PubKeyRing | undefined; - setArbitratorPubKeyRing(value?: PubKeyRing): Trade; - hasArbitratorPubKeyRing(): boolean; - clearArbitratorPubKeyRing(): Trade; - - getMediatorPubKeyRing(): PubKeyRing | undefined; - setMediatorPubKeyRing(value?: PubKeyRing): Trade; - hasMediatorPubKeyRing(): boolean; - clearMediatorPubKeyRing(): Trade; - - getCounterCurrencyTxId(): string; - setCounterCurrencyTxId(value: string): Trade; - - getChatMessageList(): Array; - setChatMessageList(value: Array): Trade; - clearChatMessageList(): Trade; - addChatMessage(value?: ChatMessage, index?: number): ChatMessage; - - getMediationResultState(): MediationResultState; - setMediationResultState(value: MediationResultState): Trade; - - getLockTime(): number; - setLockTime(value: number): Trade; - - getDelayedPayoutTxBytes(): Uint8Array | string; - getDelayedPayoutTxBytes_asU8(): Uint8Array; - getDelayedPayoutTxBytes_asB64(): string; - setDelayedPayoutTxBytes(value: Uint8Array | string): Trade; - - getRefundAgentNodeAddress(): NodeAddress | undefined; - setRefundAgentNodeAddress(value?: NodeAddress): Trade; - hasRefundAgentNodeAddress(): boolean; - clearRefundAgentNodeAddress(): Trade; - - getRefundAgentPubKeyRing(): PubKeyRing | undefined; - setRefundAgentPubKeyRing(value?: PubKeyRing): Trade; - hasRefundAgentPubKeyRing(): boolean; - clearRefundAgentPubKeyRing(): Trade; - - getRefundResultState(): RefundResultState; - setRefundResultState(value: RefundResultState): Trade; - - getLastRefreshRequestDate(): number; - setLastRefreshRequestDate(value: number): Trade; - - getCounterCurrencyExtraData(): string; - setCounterCurrencyExtraData(value: string): Trade; - - getAssetTxProofResult(): string; - setAssetTxProofResult(value: string): Trade; - - getUid(): string; - setUid(value: string): Trade; - - getMakerNodeAddress(): NodeAddress | undefined; - setMakerNodeAddress(value?: NodeAddress): Trade; - hasMakerNodeAddress(): boolean; - clearMakerNodeAddress(): Trade; - - getTakerNodeAddress(): NodeAddress | undefined; - setTakerNodeAddress(value?: NodeAddress): Trade; - hasTakerNodeAddress(): boolean; - clearTakerNodeAddress(): Trade; - - getTakerPubKeyRing(): PubKeyRing | undefined; - setTakerPubKeyRing(value?: PubKeyRing): Trade; - hasTakerPubKeyRing(): boolean; - clearTakerPubKeyRing(): Trade; - - getMakerPubKeyRing(): PubKeyRing | undefined; - setMakerPubKeyRing(value?: PubKeyRing): Trade; - hasMakerPubKeyRing(): boolean; - clearMakerPubKeyRing(): Trade; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Trade.AsObject; - static toObject(includeInstance: boolean, msg: Trade): Trade.AsObject; - static serializeBinaryToWriter(message: Trade, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Trade; - static deserializeBinaryFromReader(message: Trade, reader: jspb.BinaryReader): Trade; -} - -export namespace Trade { - export type AsObject = { - offer?: Offer.AsObject, - processModel?: ProcessModel.AsObject, - takerFeeTxId: string, - payoutTxId: string, - tradeAmountAsLong: number, - txFeeAsLong: number, - takerFeeAsLong: number, - takeOfferDate: number, - tradePrice: number, - state: Trade.State, - disputeState: Trade.DisputeState, - tradePeriodState: Trade.TradePeriodState, - contract?: Contract.AsObject, - contractAsJson: string, - contractHash: Uint8Array | string, - arbitratorNodeAddress?: NodeAddress.AsObject, - mediatorNodeAddress?: NodeAddress.AsObject, - arbitratorBtcPubKey: Uint8Array | string, - takerPaymentAccountId: string, - errorMessage: string, - arbitratorPubKeyRing?: PubKeyRing.AsObject, - mediatorPubKeyRing?: PubKeyRing.AsObject, - counterCurrencyTxId: string, - chatMessageList: Array, - mediationResultState: MediationResultState, - lockTime: number, - delayedPayoutTxBytes: Uint8Array | string, - refundAgentNodeAddress?: NodeAddress.AsObject, - refundAgentPubKeyRing?: PubKeyRing.AsObject, - refundResultState: RefundResultState, - lastRefreshRequestDate: number, - counterCurrencyExtraData: string, - assetTxProofResult: string, - uid: string, - makerNodeAddress?: NodeAddress.AsObject, - takerNodeAddress?: NodeAddress.AsObject, - takerPubKeyRing?: PubKeyRing.AsObject, - makerPubKeyRing?: PubKeyRing.AsObject, - } - - export enum State { - PB_ERROR_STATE = 0, - PREPARATION = 1, - TAKER_PUBLISHED_TAKER_FEE_TX = 2, - MAKER_SENT_PUBLISH_DEPOSIT_TX_REQUEST = 3, - MAKER_SAW_ARRIVED_PUBLISH_DEPOSIT_TX_REQUEST = 4, - MAKER_STORED_IN_MAILBOX_PUBLISH_DEPOSIT_TX_REQUEST = 5, - MAKER_SEND_FAILED_PUBLISH_DEPOSIT_TX_REQUEST = 6, - TAKER_RECEIVED_PUBLISH_DEPOSIT_TX_REQUEST = 7, - TAKER_PUBLISHED_DEPOSIT_TX = 8, - TAKER_SAW_DEPOSIT_TX_IN_NETWORK = 9, - TAKER_SENT_DEPOSIT_TX_PUBLISHED_MSG = 10, - TAKER_SAW_ARRIVED_DEPOSIT_TX_PUBLISHED_MSG = 11, - TAKER_STORED_IN_MAILBOX_DEPOSIT_TX_PUBLISHED_MSG = 12, - TAKER_SEND_FAILED_DEPOSIT_TX_PUBLISHED_MSG = 13, - MAKER_RECEIVED_DEPOSIT_TX_PUBLISHED_MSG = 14, - MAKER_SAW_DEPOSIT_TX_IN_NETWORK = 15, - DEPOSIT_CONFIRMED_IN_BLOCK_CHAIN = 16, - BUYER_CONFIRMED_IN_UI_FIAT_PAYMENT_INITIATED = 17, - BUYER_SENT_FIAT_PAYMENT_INITIATED_MSG = 18, - BUYER_SAW_ARRIVED_FIAT_PAYMENT_INITIATED_MSG = 19, - BUYER_STORED_IN_MAILBOX_FIAT_PAYMENT_INITIATED_MSG = 20, - BUYER_SEND_FAILED_FIAT_PAYMENT_INITIATED_MSG = 21, - SELLER_RECEIVED_FIAT_PAYMENT_INITIATED_MSG = 22, - SELLER_CONFIRMED_IN_UI_FIAT_PAYMENT_RECEIPT = 23, - SELLER_PUBLISHED_PAYOUT_TX = 24, - SELLER_SENT_PAYOUT_TX_PUBLISHED_MSG = 25, - SELLER_SAW_ARRIVED_PAYOUT_TX_PUBLISHED_MSG = 26, - SELLER_STORED_IN_MAILBOX_PAYOUT_TX_PUBLISHED_MSG = 27, - SELLER_SEND_FAILED_PAYOUT_TX_PUBLISHED_MSG = 28, - BUYER_RECEIVED_PAYOUT_TX_PUBLISHED_MSG = 29, - BUYER_SAW_PAYOUT_TX_IN_NETWORK = 30, - WITHDRAW_COMPLETED = 31, - } - - export enum Phase { - PB_ERROR_PHASE = 0, - INIT = 1, - TAKER_FEE_PUBLISHED = 2, - DEPOSIT_PUBLISHED = 3, - DEPOSIT_CONFIRMED = 4, - FIAT_SENT = 5, - FIAT_RECEIVED = 6, - PAYOUT_PUBLISHED = 7, - WITHDRAWN = 8, - } - - export enum DisputeState { - PB_ERROR_DISPUTE_STATE = 0, - NO_DISPUTE = 1, - DISPUTE_REQUESTED = 2, - DISPUTE_STARTED_BY_PEER = 3, - DISPUTE_CLOSED = 4, - MEDIATION_REQUESTED = 5, - MEDIATION_STARTED_BY_PEER = 6, - MEDIATION_CLOSED = 7, - REFUND_REQUESTED = 8, - REFUND_REQUEST_STARTED_BY_PEER = 9, - REFUND_REQUEST_CLOSED = 10, - } - - export enum TradePeriodState { - PB_ERROR_TRADE_PERIOD_STATE = 0, - FIRST_HALF = 1, - SECOND_HALF = 2, - TRADE_PERIOD_OVER = 3, - } -} - -export class BuyerAsMakerTrade extends jspb.Message { - getTrade(): Trade | undefined; - setTrade(value?: Trade): BuyerAsMakerTrade; - hasTrade(): boolean; - clearTrade(): BuyerAsMakerTrade; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BuyerAsMakerTrade.AsObject; - static toObject(includeInstance: boolean, msg: BuyerAsMakerTrade): BuyerAsMakerTrade.AsObject; - static serializeBinaryToWriter(message: BuyerAsMakerTrade, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BuyerAsMakerTrade; - static deserializeBinaryFromReader(message: BuyerAsMakerTrade, reader: jspb.BinaryReader): BuyerAsMakerTrade; -} - -export namespace BuyerAsMakerTrade { - export type AsObject = { - trade?: Trade.AsObject, - } -} - -export class BuyerAsTakerTrade extends jspb.Message { - getTrade(): Trade | undefined; - setTrade(value?: Trade): BuyerAsTakerTrade; - hasTrade(): boolean; - clearTrade(): BuyerAsTakerTrade; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BuyerAsTakerTrade.AsObject; - static toObject(includeInstance: boolean, msg: BuyerAsTakerTrade): BuyerAsTakerTrade.AsObject; - static serializeBinaryToWriter(message: BuyerAsTakerTrade, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BuyerAsTakerTrade; - static deserializeBinaryFromReader(message: BuyerAsTakerTrade, reader: jspb.BinaryReader): BuyerAsTakerTrade; -} - -export namespace BuyerAsTakerTrade { - export type AsObject = { - trade?: Trade.AsObject, - } -} - -export class SellerAsMakerTrade extends jspb.Message { - getTrade(): Trade | undefined; - setTrade(value?: Trade): SellerAsMakerTrade; - hasTrade(): boolean; - clearTrade(): SellerAsMakerTrade; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SellerAsMakerTrade.AsObject; - static toObject(includeInstance: boolean, msg: SellerAsMakerTrade): SellerAsMakerTrade.AsObject; - static serializeBinaryToWriter(message: SellerAsMakerTrade, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SellerAsMakerTrade; - static deserializeBinaryFromReader(message: SellerAsMakerTrade, reader: jspb.BinaryReader): SellerAsMakerTrade; -} - -export namespace SellerAsMakerTrade { - export type AsObject = { - trade?: Trade.AsObject, - } -} - -export class SellerAsTakerTrade extends jspb.Message { - getTrade(): Trade | undefined; - setTrade(value?: Trade): SellerAsTakerTrade; - hasTrade(): boolean; - clearTrade(): SellerAsTakerTrade; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SellerAsTakerTrade.AsObject; - static toObject(includeInstance: boolean, msg: SellerAsTakerTrade): SellerAsTakerTrade.AsObject; - static serializeBinaryToWriter(message: SellerAsTakerTrade, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SellerAsTakerTrade; - static deserializeBinaryFromReader(message: SellerAsTakerTrade, reader: jspb.BinaryReader): SellerAsTakerTrade; -} - -export namespace SellerAsTakerTrade { - export type AsObject = { - trade?: Trade.AsObject, - } -} - -export class ArbitratorTrade extends jspb.Message { - getTrade(): Trade | undefined; - setTrade(value?: Trade): ArbitratorTrade; - hasTrade(): boolean; - clearTrade(): ArbitratorTrade; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ArbitratorTrade.AsObject; - static toObject(includeInstance: boolean, msg: ArbitratorTrade): ArbitratorTrade.AsObject; - static serializeBinaryToWriter(message: ArbitratorTrade, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ArbitratorTrade; - static deserializeBinaryFromReader(message: ArbitratorTrade, reader: jspb.BinaryReader): ArbitratorTrade; -} - -export namespace ArbitratorTrade { - export type AsObject = { - trade?: Trade.AsObject, - } -} - -export class ProcessModel extends jspb.Message { - getOfferId(): string; - setOfferId(value: string): ProcessModel; - - getAccountId(): string; - setAccountId(value: string): ProcessModel; - - getPubKeyRing(): PubKeyRing | undefined; - setPubKeyRing(value?: PubKeyRing): ProcessModel; - hasPubKeyRing(): boolean; - clearPubKeyRing(): ProcessModel; - - getTakeOfferFeeTxId(): string; - setTakeOfferFeeTxId(value: string): ProcessModel; - - getPayoutTxSignature(): Uint8Array | string; - getPayoutTxSignature_asU8(): Uint8Array; - getPayoutTxSignature_asB64(): string; - setPayoutTxSignature(value: Uint8Array | string): ProcessModel; - - getRawTransactionInputsList(): Array; - setRawTransactionInputsList(value: Array): ProcessModel; - clearRawTransactionInputsList(): ProcessModel; - addRawTransactionInputs(value?: RawTransactionInput, index?: number): RawTransactionInput; - - getChangeOutputValue(): number; - setChangeOutputValue(value: number): ProcessModel; - - getChangeOutputAddress(): string; - setChangeOutputAddress(value: string): ProcessModel; - - getUseSavingsWallet(): boolean; - setUseSavingsWallet(value: boolean): ProcessModel; - - getFundsNeededForTradeAsLong(): number; - setFundsNeededForTradeAsLong(value: number): ProcessModel; - - getMyMultiSigPubKey(): Uint8Array | string; - getMyMultiSigPubKey_asU8(): Uint8Array; - getMyMultiSigPubKey_asB64(): string; - setMyMultiSigPubKey(value: Uint8Array | string): ProcessModel; - - getPaymentStartedMessageState(): string; - setPaymentStartedMessageState(value: string): ProcessModel; - - getMediatedPayoutTxSignature(): Uint8Array | string; - getMediatedPayoutTxSignature_asU8(): Uint8Array; - getMediatedPayoutTxSignature_asB64(): string; - setMediatedPayoutTxSignature(value: Uint8Array | string): ProcessModel; - - getBuyerPayoutAmountFromMediation(): number; - setBuyerPayoutAmountFromMediation(value: number): ProcessModel; - - getSellerPayoutAmountFromMediation(): number; - setSellerPayoutAmountFromMediation(value: number): ProcessModel; - - getMakerSignature(): string; - setMakerSignature(value: string): ProcessModel; - - getBackupArbitrator(): NodeAddress | undefined; - setBackupArbitrator(value?: NodeAddress): ProcessModel; - hasBackupArbitrator(): boolean; - clearBackupArbitrator(): ProcessModel; - - getMaker(): TradingPeer | undefined; - setMaker(value?: TradingPeer): ProcessModel; - hasMaker(): boolean; - clearMaker(): ProcessModel; - - getTaker(): TradingPeer | undefined; - setTaker(value?: TradingPeer): ProcessModel; - hasTaker(): boolean; - clearTaker(): ProcessModel; - - getArbitrator(): TradingPeer | undefined; - setArbitrator(value?: TradingPeer): ProcessModel; - hasArbitrator(): boolean; - clearArbitrator(): ProcessModel; - - getTempTradingPeerNodeAddress(): NodeAddress | undefined; - setTempTradingPeerNodeAddress(value?: NodeAddress): ProcessModel; - hasTempTradingPeerNodeAddress(): boolean; - clearTempTradingPeerNodeAddress(): ProcessModel; - - getPreparedMultisigHex(): string; - setPreparedMultisigHex(value: string): ProcessModel; - - getMadeMultisigHex(): string; - setMadeMultisigHex(value: string): ProcessModel; - - getMultisigSetupComplete(): boolean; - setMultisigSetupComplete(value: boolean): ProcessModel; - - getMakerReadyToFundMultisig(): boolean; - setMakerReadyToFundMultisig(value: boolean): ProcessModel; - - getMultisigDepositInitiated(): boolean; - setMultisigDepositInitiated(value: boolean): ProcessModel; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProcessModel.AsObject; - static toObject(includeInstance: boolean, msg: ProcessModel): ProcessModel.AsObject; - static serializeBinaryToWriter(message: ProcessModel, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProcessModel; - static deserializeBinaryFromReader(message: ProcessModel, reader: jspb.BinaryReader): ProcessModel; -} - -export namespace ProcessModel { - export type AsObject = { - offerId: string, - accountId: string, - pubKeyRing?: PubKeyRing.AsObject, - takeOfferFeeTxId: string, - payoutTxSignature: Uint8Array | string, - rawTransactionInputsList: Array, - changeOutputValue: number, - changeOutputAddress: string, - useSavingsWallet: boolean, - fundsNeededForTradeAsLong: number, - myMultiSigPubKey: Uint8Array | string, - paymentStartedMessageState: string, - mediatedPayoutTxSignature: Uint8Array | string, - buyerPayoutAmountFromMediation: number, - sellerPayoutAmountFromMediation: number, - makerSignature: string, - backupArbitrator?: NodeAddress.AsObject, - maker?: TradingPeer.AsObject, - taker?: TradingPeer.AsObject, - arbitrator?: TradingPeer.AsObject, - tempTradingPeerNodeAddress?: NodeAddress.AsObject, - preparedMultisigHex: string, - madeMultisigHex: string, - multisigSetupComplete: boolean, - makerReadyToFundMultisig: boolean, - multisigDepositInitiated: boolean, - } -} - -export class TradingPeer extends jspb.Message { - getAccountId(): string; - setAccountId(value: string): TradingPeer; - - getPaymentAccountId(): string; - setPaymentAccountId(value: string): TradingPeer; - - getPaymentMethodId(): string; - setPaymentMethodId(value: string): TradingPeer; - - getPaymentAccountPayloadHash(): Uint8Array | string; - getPaymentAccountPayloadHash_asU8(): Uint8Array; - getPaymentAccountPayloadHash_asB64(): string; - setPaymentAccountPayloadHash(value: Uint8Array | string): TradingPeer; - - getPaymentAccountPayload(): PaymentAccountPayload | undefined; - setPaymentAccountPayload(value?: PaymentAccountPayload): TradingPeer; - hasPaymentAccountPayload(): boolean; - clearPaymentAccountPayload(): TradingPeer; - - getPayoutAddressString(): string; - setPayoutAddressString(value: string): TradingPeer; - - getContractAsJson(): string; - setContractAsJson(value: string): TradingPeer; - - getContractSignature(): string; - setContractSignature(value: string): TradingPeer; - - getSignature(): Uint8Array | string; - getSignature_asU8(): Uint8Array; - getSignature_asB64(): string; - setSignature(value: Uint8Array | string): TradingPeer; - - getPubKeyRing(): PubKeyRing | undefined; - setPubKeyRing(value?: PubKeyRing): TradingPeer; - hasPubKeyRing(): boolean; - clearPubKeyRing(): TradingPeer; - - getMultiSigPubKey(): Uint8Array | string; - getMultiSigPubKey_asU8(): Uint8Array; - getMultiSigPubKey_asB64(): string; - setMultiSigPubKey(value: Uint8Array | string): TradingPeer; - - getRawTransactionInputsList(): Array; - setRawTransactionInputsList(value: Array): TradingPeer; - clearRawTransactionInputsList(): TradingPeer; - addRawTransactionInputs(value?: RawTransactionInput, index?: number): RawTransactionInput; - - getChangeOutputValue(): number; - setChangeOutputValue(value: number): TradingPeer; - - getChangeOutputAddress(): string; - setChangeOutputAddress(value: string): TradingPeer; - - getAccountAgeWitnessNonce(): Uint8Array | string; - getAccountAgeWitnessNonce_asU8(): Uint8Array; - getAccountAgeWitnessNonce_asB64(): string; - setAccountAgeWitnessNonce(value: Uint8Array | string): TradingPeer; - - getAccountAgeWitnessSignature(): Uint8Array | string; - getAccountAgeWitnessSignature_asU8(): Uint8Array; - getAccountAgeWitnessSignature_asB64(): string; - setAccountAgeWitnessSignature(value: Uint8Array | string): TradingPeer; - - getCurrentDate(): number; - setCurrentDate(value: number): TradingPeer; - - getMediatedPayoutTxSignature(): Uint8Array | string; - getMediatedPayoutTxSignature_asU8(): Uint8Array; - getMediatedPayoutTxSignature_asB64(): string; - setMediatedPayoutTxSignature(value: Uint8Array | string): TradingPeer; - - getReserveTxHash(): string; - setReserveTxHash(value: string): TradingPeer; - - getReserveTxHex(): string; - setReserveTxHex(value: string): TradingPeer; - - getReserveTxKey(): string; - setReserveTxKey(value: string): TradingPeer; - - getReserveTxKeyImagesList(): Array; - setReserveTxKeyImagesList(value: Array): TradingPeer; - clearReserveTxKeyImagesList(): TradingPeer; - addReserveTxKeyImages(value: string, index?: number): TradingPeer; - - getPreparedMultisigHex(): string; - setPreparedMultisigHex(value: string): TradingPeer; - - getMadeMultisigHex(): string; - setMadeMultisigHex(value: string): TradingPeer; - - getSignedPayoutTxHex(): string; - setSignedPayoutTxHex(value: string): TradingPeer; - - getDepositTxHash(): string; - setDepositTxHash(value: string): TradingPeer; - - getDepositTxHex(): string; - setDepositTxHex(value: string): TradingPeer; - - getDepositTxKey(): string; - setDepositTxKey(value: string): TradingPeer; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TradingPeer.AsObject; - static toObject(includeInstance: boolean, msg: TradingPeer): TradingPeer.AsObject; - static serializeBinaryToWriter(message: TradingPeer, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TradingPeer; - static deserializeBinaryFromReader(message: TradingPeer, reader: jspb.BinaryReader): TradingPeer; -} - -export namespace TradingPeer { - export type AsObject = { - accountId: string, - paymentAccountId: string, - paymentMethodId: string, - paymentAccountPayloadHash: Uint8Array | string, - paymentAccountPayload?: PaymentAccountPayload.AsObject, - payoutAddressString: string, - contractAsJson: string, - contractSignature: string, - signature: Uint8Array | string, - pubKeyRing?: PubKeyRing.AsObject, - multiSigPubKey: Uint8Array | string, - rawTransactionInputsList: Array, - changeOutputValue: number, - changeOutputAddress: string, - accountAgeWitnessNonce: Uint8Array | string, - accountAgeWitnessSignature: Uint8Array | string, - currentDate: number, - mediatedPayoutTxSignature: Uint8Array | string, - reserveTxHash: string, - reserveTxHex: string, - reserveTxKey: string, - reserveTxKeyImagesList: Array, - preparedMultisigHex: string, - madeMultisigHex: string, - signedPayoutTxHex: string, - depositTxHash: string, - depositTxHex: string, - depositTxKey: string, - } -} - -export class ArbitrationDisputeList extends jspb.Message { - getDisputeList(): Array; - setDisputeList(value: Array): ArbitrationDisputeList; - clearDisputeList(): ArbitrationDisputeList; - addDispute(value?: Dispute, index?: number): Dispute; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ArbitrationDisputeList.AsObject; - static toObject(includeInstance: boolean, msg: ArbitrationDisputeList): ArbitrationDisputeList.AsObject; - static serializeBinaryToWriter(message: ArbitrationDisputeList, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ArbitrationDisputeList; - static deserializeBinaryFromReader(message: ArbitrationDisputeList, reader: jspb.BinaryReader): ArbitrationDisputeList; -} - -export namespace ArbitrationDisputeList { - export type AsObject = { - disputeList: Array, - } -} - -export class MediationDisputeList extends jspb.Message { - getDisputeList(): Array; - setDisputeList(value: Array): MediationDisputeList; - clearDisputeList(): MediationDisputeList; - addDispute(value?: Dispute, index?: number): Dispute; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MediationDisputeList.AsObject; - static toObject(includeInstance: boolean, msg: MediationDisputeList): MediationDisputeList.AsObject; - static serializeBinaryToWriter(message: MediationDisputeList, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MediationDisputeList; - static deserializeBinaryFromReader(message: MediationDisputeList, reader: jspb.BinaryReader): MediationDisputeList; -} - -export namespace MediationDisputeList { - export type AsObject = { - disputeList: Array, - } -} - -export class RefundDisputeList extends jspb.Message { - getDisputeList(): Array; - setDisputeList(value: Array): RefundDisputeList; - clearDisputeList(): RefundDisputeList; - addDispute(value?: Dispute, index?: number): Dispute; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RefundDisputeList.AsObject; - static toObject(includeInstance: boolean, msg: RefundDisputeList): RefundDisputeList.AsObject; - static serializeBinaryToWriter(message: RefundDisputeList, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RefundDisputeList; - static deserializeBinaryFromReader(message: RefundDisputeList, reader: jspb.BinaryReader): RefundDisputeList; -} - -export namespace RefundDisputeList { - export type AsObject = { - disputeList: Array, - } -} - -export class PreferencesPayload extends jspb.Message { - getUserLanguage(): string; - setUserLanguage(value: string): PreferencesPayload; - - getUserCountry(): Country | undefined; - setUserCountry(value?: Country): PreferencesPayload; - hasUserCountry(): boolean; - clearUserCountry(): PreferencesPayload; - - getFiatCurrenciesList(): Array; - setFiatCurrenciesList(value: Array): PreferencesPayload; - clearFiatCurrenciesList(): PreferencesPayload; - addFiatCurrencies(value?: TradeCurrency, index?: number): TradeCurrency; - - getCryptoCurrenciesList(): Array; - setCryptoCurrenciesList(value: Array): PreferencesPayload; - clearCryptoCurrenciesList(): PreferencesPayload; - addCryptoCurrencies(value?: TradeCurrency, index?: number): TradeCurrency; - - getBlockChainExplorerMainNet(): BlockChainExplorer | undefined; - setBlockChainExplorerMainNet(value?: BlockChainExplorer): PreferencesPayload; - hasBlockChainExplorerMainNet(): boolean; - clearBlockChainExplorerMainNet(): PreferencesPayload; - - getBlockChainExplorerTestNet(): BlockChainExplorer | undefined; - setBlockChainExplorerTestNet(value?: BlockChainExplorer): PreferencesPayload; - hasBlockChainExplorerTestNet(): boolean; - clearBlockChainExplorerTestNet(): PreferencesPayload; - - getBackupDirectory(): string; - setBackupDirectory(value: string): PreferencesPayload; - - getAutoSelectArbitrators(): boolean; - setAutoSelectArbitrators(value: boolean): PreferencesPayload; - - getDontShowAgainMapMap(): jspb.Map; - clearDontShowAgainMapMap(): PreferencesPayload; - - getTacAccepted(): boolean; - setTacAccepted(value: boolean): PreferencesPayload; - - getUseTorForBitcoinJ(): boolean; - setUseTorForBitcoinJ(value: boolean): PreferencesPayload; - - getShowOwnOffersInOfferBook(): boolean; - setShowOwnOffersInOfferBook(value: boolean): PreferencesPayload; - - getPreferredTradeCurrency(): TradeCurrency | undefined; - setPreferredTradeCurrency(value?: TradeCurrency): PreferencesPayload; - hasPreferredTradeCurrency(): boolean; - clearPreferredTradeCurrency(): PreferencesPayload; - - getWithdrawalTxFeeInVbytes(): number; - setWithdrawalTxFeeInVbytes(value: number): PreferencesPayload; - - getUseCustomWithdrawalTxFee(): boolean; - setUseCustomWithdrawalTxFee(value: boolean): PreferencesPayload; - - getMaxPriceDistanceInPercent(): number; - setMaxPriceDistanceInPercent(value: number): PreferencesPayload; - - getOfferBookChartScreenCurrencyCode(): string; - setOfferBookChartScreenCurrencyCode(value: string): PreferencesPayload; - - getTradeChartsScreenCurrencyCode(): string; - setTradeChartsScreenCurrencyCode(value: string): PreferencesPayload; - - getBuyScreenCurrencyCode(): string; - setBuyScreenCurrencyCode(value: string): PreferencesPayload; - - getSellScreenCurrencyCode(): string; - setSellScreenCurrencyCode(value: string): PreferencesPayload; - - getTradeStatisticsTickUnitIndex(): number; - setTradeStatisticsTickUnitIndex(value: number): PreferencesPayload; - - getResyncSpvRequested(): boolean; - setResyncSpvRequested(value: boolean): PreferencesPayload; - - getSortMarketCurrenciesNumerically(): boolean; - setSortMarketCurrenciesNumerically(value: boolean): PreferencesPayload; - - getUsePercentageBasedPrice(): boolean; - setUsePercentageBasedPrice(value: boolean): PreferencesPayload; - - getPeerTagMapMap(): jspb.Map; - clearPeerTagMapMap(): PreferencesPayload; - - getBitcoinNodes(): string; - setBitcoinNodes(value: string): PreferencesPayload; - - getIgnoreTradersListList(): Array; - setIgnoreTradersListList(value: Array): PreferencesPayload; - clearIgnoreTradersListList(): PreferencesPayload; - addIgnoreTradersList(value: string, index?: number): PreferencesPayload; - - getDirectoryChooserPath(): string; - setDirectoryChooserPath(value: string): PreferencesPayload; - - getBuyerSecurityDepositAsLong(): number; - setBuyerSecurityDepositAsLong(value: number): PreferencesPayload; - - getUseAnimations(): boolean; - setUseAnimations(value: boolean): PreferencesPayload; - - getSelectedpaymentAccountForCreateoffer(): PaymentAccount | undefined; - setSelectedpaymentAccountForCreateoffer(value?: PaymentAccount): PreferencesPayload; - hasSelectedpaymentAccountForCreateoffer(): boolean; - clearSelectedpaymentAccountForCreateoffer(): PreferencesPayload; - - getBridgeAddressesList(): Array; - setBridgeAddressesList(value: Array): PreferencesPayload; - clearBridgeAddressesList(): PreferencesPayload; - addBridgeAddresses(value: string, index?: number): PreferencesPayload; - - getBridgeOptionOrdinal(): number; - setBridgeOptionOrdinal(value: number): PreferencesPayload; - - getTorTransportOrdinal(): number; - setTorTransportOrdinal(value: number): PreferencesPayload; - - getCustomBridges(): string; - setCustomBridges(value: string): PreferencesPayload; - - getBitcoinNodesOptionOrdinal(): number; - setBitcoinNodesOptionOrdinal(value: number): PreferencesPayload; - - getReferralId(): string; - setReferralId(value: string): PreferencesPayload; - - getPhoneKeyAndToken(): string; - setPhoneKeyAndToken(value: string): PreferencesPayload; - - getUseSoundForMobileNotifications(): boolean; - setUseSoundForMobileNotifications(value: boolean): PreferencesPayload; - - getUseTradeNotifications(): boolean; - setUseTradeNotifications(value: boolean): PreferencesPayload; - - getUseMarketNotifications(): boolean; - setUseMarketNotifications(value: boolean): PreferencesPayload; - - getUsePriceNotifications(): boolean; - setUsePriceNotifications(value: boolean): PreferencesPayload; - - getUseStandbyMode(): boolean; - setUseStandbyMode(value: boolean): PreferencesPayload; - - getRpcUser(): string; - setRpcUser(value: string): PreferencesPayload; - - getRpcPw(): string; - setRpcPw(value: string): PreferencesPayload; - - getTakeOfferSelectedPaymentAccountId(): string; - setTakeOfferSelectedPaymentAccountId(value: string): PreferencesPayload; - - getBuyerSecurityDepositAsPercent(): number; - setBuyerSecurityDepositAsPercent(value: number): PreferencesPayload; - - getIgnoreDustThreshold(): number; - setIgnoreDustThreshold(value: number): PreferencesPayload; - - getBuyerSecurityDepositAsPercentForCrypto(): number; - setBuyerSecurityDepositAsPercentForCrypto(value: number): PreferencesPayload; - - getBlockNotifyPort(): number; - setBlockNotifyPort(value: number): PreferencesPayload; - - getCssTheme(): number; - setCssTheme(value: number): PreferencesPayload; - - getTacAcceptedV120(): boolean; - setTacAcceptedV120(value: boolean): PreferencesPayload; - - getAutoConfirmSettingsList(): Array; - setAutoConfirmSettingsList(value: Array): PreferencesPayload; - clearAutoConfirmSettingsList(): PreferencesPayload; - addAutoConfirmSettings(value?: AutoConfirmSettings, index?: number): AutoConfirmSettings; - - getHideNonAccountPaymentMethods(): boolean; - setHideNonAccountPaymentMethods(value: boolean): PreferencesPayload; - - getShowOffersMatchingMyAccounts(): boolean; - setShowOffersMatchingMyAccounts(value: boolean): PreferencesPayload; - - getDenyApiTaker(): boolean; - setDenyApiTaker(value: boolean): PreferencesPayload; - - getNotifyOnPreRelease(): boolean; - setNotifyOnPreRelease(value: boolean): PreferencesPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PreferencesPayload.AsObject; - static toObject(includeInstance: boolean, msg: PreferencesPayload): PreferencesPayload.AsObject; - static serializeBinaryToWriter(message: PreferencesPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PreferencesPayload; - static deserializeBinaryFromReader(message: PreferencesPayload, reader: jspb.BinaryReader): PreferencesPayload; -} - -export namespace PreferencesPayload { - export type AsObject = { - userLanguage: string, - userCountry?: Country.AsObject, - fiatCurrenciesList: Array, - cryptoCurrenciesList: Array, - blockChainExplorerMainNet?: BlockChainExplorer.AsObject, - blockChainExplorerTestNet?: BlockChainExplorer.AsObject, - backupDirectory: string, - autoSelectArbitrators: boolean, - dontShowAgainMapMap: Array<[string, boolean]>, - tacAccepted: boolean, - useTorForBitcoinJ: boolean, - showOwnOffersInOfferBook: boolean, - preferredTradeCurrency?: TradeCurrency.AsObject, - withdrawalTxFeeInVbytes: number, - useCustomWithdrawalTxFee: boolean, - maxPriceDistanceInPercent: number, - offerBookChartScreenCurrencyCode: string, - tradeChartsScreenCurrencyCode: string, - buyScreenCurrencyCode: string, - sellScreenCurrencyCode: string, - tradeStatisticsTickUnitIndex: number, - resyncSpvRequested: boolean, - sortMarketCurrenciesNumerically: boolean, - usePercentageBasedPrice: boolean, - peerTagMapMap: Array<[string, string]>, - bitcoinNodes: string, - ignoreTradersListList: Array, - directoryChooserPath: string, - buyerSecurityDepositAsLong: number, - useAnimations: boolean, - selectedpaymentAccountForCreateoffer?: PaymentAccount.AsObject, - bridgeAddressesList: Array, - bridgeOptionOrdinal: number, - torTransportOrdinal: number, - customBridges: string, - bitcoinNodesOptionOrdinal: number, - referralId: string, - phoneKeyAndToken: string, - useSoundForMobileNotifications: boolean, - useTradeNotifications: boolean, - useMarketNotifications: boolean, - usePriceNotifications: boolean, - useStandbyMode: boolean, - rpcUser: string, - rpcPw: string, - takeOfferSelectedPaymentAccountId: string, - buyerSecurityDepositAsPercent: number, - ignoreDustThreshold: number, - buyerSecurityDepositAsPercentForCrypto: number, - blockNotifyPort: number, - cssTheme: number, - tacAcceptedV120: boolean, - autoConfirmSettingsList: Array, - hideNonAccountPaymentMethods: boolean, - showOffersMatchingMyAccounts: boolean, - denyApiTaker: boolean, - notifyOnPreRelease: boolean, - } -} - -export class AutoConfirmSettings extends jspb.Message { - getEnabled(): boolean; - setEnabled(value: boolean): AutoConfirmSettings; - - getRequiredConfirmations(): number; - setRequiredConfirmations(value: number): AutoConfirmSettings; - - getTradeLimit(): number; - setTradeLimit(value: number): AutoConfirmSettings; - - getServiceAddressesList(): Array; - setServiceAddressesList(value: Array): AutoConfirmSettings; - clearServiceAddressesList(): AutoConfirmSettings; - addServiceAddresses(value: string, index?: number): AutoConfirmSettings; - - getCurrencyCode(): string; - setCurrencyCode(value: string): AutoConfirmSettings; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AutoConfirmSettings.AsObject; - static toObject(includeInstance: boolean, msg: AutoConfirmSettings): AutoConfirmSettings.AsObject; - static serializeBinaryToWriter(message: AutoConfirmSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AutoConfirmSettings; - static deserializeBinaryFromReader(message: AutoConfirmSettings, reader: jspb.BinaryReader): AutoConfirmSettings; -} - -export namespace AutoConfirmSettings { - export type AsObject = { - enabled: boolean, - requiredConfirmations: number, - tradeLimit: number, - serviceAddressesList: Array, - currencyCode: string, - } -} - -export class UserPayload extends jspb.Message { - getAccountId(): string; - setAccountId(value: string): UserPayload; - - getPaymentAccountsList(): Array; - setPaymentAccountsList(value: Array): UserPayload; - clearPaymentAccountsList(): UserPayload; - addPaymentAccounts(value?: PaymentAccount, index?: number): PaymentAccount; - - getCurrentPaymentAccount(): PaymentAccount | undefined; - setCurrentPaymentAccount(value?: PaymentAccount): UserPayload; - hasCurrentPaymentAccount(): boolean; - clearCurrentPaymentAccount(): UserPayload; - - getAcceptedLanguageLocaleCodesList(): Array; - setAcceptedLanguageLocaleCodesList(value: Array): UserPayload; - clearAcceptedLanguageLocaleCodesList(): UserPayload; - addAcceptedLanguageLocaleCodes(value: string, index?: number): UserPayload; - - getDevelopersAlert(): Alert | undefined; - setDevelopersAlert(value?: Alert): UserPayload; - hasDevelopersAlert(): boolean; - clearDevelopersAlert(): UserPayload; - - getDisplayedAlert(): Alert | undefined; - setDisplayedAlert(value?: Alert): UserPayload; - hasDisplayedAlert(): boolean; - clearDisplayedAlert(): UserPayload; - - getDevelopersFilter(): Filter | undefined; - setDevelopersFilter(value?: Filter): UserPayload; - hasDevelopersFilter(): boolean; - clearDevelopersFilter(): UserPayload; - - getAcceptedArbitratorsList(): Array; - setAcceptedArbitratorsList(value: Array): UserPayload; - clearAcceptedArbitratorsList(): UserPayload; - addAcceptedArbitrators(value?: Arbitrator, index?: number): Arbitrator; - - getAcceptedMediatorsList(): Array; - setAcceptedMediatorsList(value: Array): UserPayload; - clearAcceptedMediatorsList(): UserPayload; - addAcceptedMediators(value?: Mediator, index?: number): Mediator; - - getRegisteredArbitrator(): Arbitrator | undefined; - setRegisteredArbitrator(value?: Arbitrator): UserPayload; - hasRegisteredArbitrator(): boolean; - clearRegisteredArbitrator(): UserPayload; - - getRegisteredMediator(): Mediator | undefined; - setRegisteredMediator(value?: Mediator): UserPayload; - hasRegisteredMediator(): boolean; - clearRegisteredMediator(): UserPayload; - - getPriceAlertFilter(): PriceAlertFilter | undefined; - setPriceAlertFilter(value?: PriceAlertFilter): UserPayload; - hasPriceAlertFilter(): boolean; - clearPriceAlertFilter(): UserPayload; - - getMarketAlertFiltersList(): Array; - setMarketAlertFiltersList(value: Array): UserPayload; - clearMarketAlertFiltersList(): UserPayload; - addMarketAlertFilters(value?: MarketAlertFilter, index?: number): MarketAlertFilter; - - getAcceptedRefundAgentsList(): Array; - setAcceptedRefundAgentsList(value: Array): UserPayload; - clearAcceptedRefundAgentsList(): UserPayload; - addAcceptedRefundAgents(value?: RefundAgent, index?: number): RefundAgent; - - getRegisteredRefundAgent(): RefundAgent | undefined; - setRegisteredRefundAgent(value?: RefundAgent): UserPayload; - hasRegisteredRefundAgent(): boolean; - clearRegisteredRefundAgent(): UserPayload; - - getCookieMap(): jspb.Map; - clearCookieMap(): UserPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserPayload.AsObject; - static toObject(includeInstance: boolean, msg: UserPayload): UserPayload.AsObject; - static serializeBinaryToWriter(message: UserPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserPayload; - static deserializeBinaryFromReader(message: UserPayload, reader: jspb.BinaryReader): UserPayload; -} - -export namespace UserPayload { - export type AsObject = { - accountId: string, - paymentAccountsList: Array, - currentPaymentAccount?: PaymentAccount.AsObject, - acceptedLanguageLocaleCodesList: Array, - developersAlert?: Alert.AsObject, - displayedAlert?: Alert.AsObject, - developersFilter?: Filter.AsObject, - acceptedArbitratorsList: Array, - acceptedMediatorsList: Array, - registeredArbitrator?: Arbitrator.AsObject, - registeredMediator?: Mediator.AsObject, - priceAlertFilter?: PriceAlertFilter.AsObject, - marketAlertFiltersList: Array, - acceptedRefundAgentsList: Array, - registeredRefundAgent?: RefundAgent.AsObject, - cookieMap: Array<[string, string]>, - } -} - -export class BlockChainExplorer extends jspb.Message { - getName(): string; - setName(value: string): BlockChainExplorer; - - getTxUrl(): string; - setTxUrl(value: string): BlockChainExplorer; - - getAddressUrl(): string; - setAddressUrl(value: string): BlockChainExplorer; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BlockChainExplorer.AsObject; - static toObject(includeInstance: boolean, msg: BlockChainExplorer): BlockChainExplorer.AsObject; - static serializeBinaryToWriter(message: BlockChainExplorer, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BlockChainExplorer; - static deserializeBinaryFromReader(message: BlockChainExplorer, reader: jspb.BinaryReader): BlockChainExplorer; -} - -export namespace BlockChainExplorer { - export type AsObject = { - name: string, - txUrl: string, - addressUrl: string, - } -} - -export class PaymentAccount extends jspb.Message { - getId(): string; - setId(value: string): PaymentAccount; - - getCreationDate(): string; - setCreationDate(value: string): PaymentAccount; - - getPaymentMethod(): PaymentMethod | undefined; - setPaymentMethod(value?: PaymentMethod): PaymentAccount; - hasPaymentMethod(): boolean; - clearPaymentMethod(): PaymentAccount; - - getAccountName(): string; - setAccountName(value: string): PaymentAccount; - - getTradeCurrenciesList(): Array; - setTradeCurrenciesList(value: Array): PaymentAccount; - clearTradeCurrenciesList(): PaymentAccount; - addTradeCurrencies(value?: TradeCurrency, index?: number): TradeCurrency; - - getSelectedTradeCurrency(): TradeCurrency | undefined; - setSelectedTradeCurrency(value?: TradeCurrency): PaymentAccount; - hasSelectedTradeCurrency(): boolean; - clearSelectedTradeCurrency(): PaymentAccount; - - getPaymentAccountPayload(): PaymentAccountPayload | undefined; - setPaymentAccountPayload(value?: PaymentAccountPayload): PaymentAccount; - hasPaymentAccountPayload(): boolean; - clearPaymentAccountPayload(): PaymentAccount; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PaymentAccount.AsObject; - static toObject(includeInstance: boolean, msg: PaymentAccount): PaymentAccount.AsObject; - static serializeBinaryToWriter(message: PaymentAccount, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PaymentAccount; - static deserializeBinaryFromReader(message: PaymentAccount, reader: jspb.BinaryReader): PaymentAccount; -} - -export namespace PaymentAccount { - export type AsObject = { - id: string, - creationDate: string, - paymentMethod?: PaymentMethod.AsObject, - accountName: string, - tradeCurrenciesList: Array, - selectedTradeCurrency?: TradeCurrency.AsObject, - paymentAccountPayload?: PaymentAccountPayload.AsObject, - } -} - -export class PaymentMethod extends jspb.Message { - getId(): string; - setId(value: string): PaymentMethod; - - getMaxTradePeriod(): string; - setMaxTradePeriod(value: string): PaymentMethod; - - getMaxTradeLimit(): string; - setMaxTradeLimit(value: string): PaymentMethod; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PaymentMethod.AsObject; - static toObject(includeInstance: boolean, msg: PaymentMethod): PaymentMethod.AsObject; - static serializeBinaryToWriter(message: PaymentMethod, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PaymentMethod; - static deserializeBinaryFromReader(message: PaymentMethod, reader: jspb.BinaryReader): PaymentMethod; -} - -export namespace PaymentMethod { - export type AsObject = { - id: string, - maxTradePeriod: string, - maxTradeLimit: string, - } -} - -export class Currency extends jspb.Message { - getCurrencyCode(): string; - setCurrencyCode(value: string): Currency; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Currency.AsObject; - static toObject(includeInstance: boolean, msg: Currency): Currency.AsObject; - static serializeBinaryToWriter(message: Currency, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Currency; - static deserializeBinaryFromReader(message: Currency, reader: jspb.BinaryReader): Currency; -} - -export namespace Currency { - export type AsObject = { - currencyCode: string, - } -} - -export class TradeCurrency extends jspb.Message { - getCode(): string; - setCode(value: string): TradeCurrency; - - getName(): string; - setName(value: string): TradeCurrency; - - getCryptoCurrency(): CryptoCurrency | undefined; - setCryptoCurrency(value?: CryptoCurrency): TradeCurrency; - hasCryptoCurrency(): boolean; - clearCryptoCurrency(): TradeCurrency; - - getFiatCurrency(): FiatCurrency | undefined; - setFiatCurrency(value?: FiatCurrency): TradeCurrency; - hasFiatCurrency(): boolean; - clearFiatCurrency(): TradeCurrency; - - getMessageCase(): TradeCurrency.MessageCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TradeCurrency.AsObject; - static toObject(includeInstance: boolean, msg: TradeCurrency): TradeCurrency.AsObject; - static serializeBinaryToWriter(message: TradeCurrency, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TradeCurrency; - static deserializeBinaryFromReader(message: TradeCurrency, reader: jspb.BinaryReader): TradeCurrency; -} - -export namespace TradeCurrency { - export type AsObject = { - code: string, - name: string, - cryptoCurrency?: CryptoCurrency.AsObject, - fiatCurrency?: FiatCurrency.AsObject, - } - - export enum MessageCase { - MESSAGE_NOT_SET = 0, - CRYPTO_CURRENCY = 3, - FIAT_CURRENCY = 4, - } -} - -export class CryptoCurrency extends jspb.Message { - getIsAsset(): boolean; - setIsAsset(value: boolean): CryptoCurrency; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CryptoCurrency.AsObject; - static toObject(includeInstance: boolean, msg: CryptoCurrency): CryptoCurrency.AsObject; - static serializeBinaryToWriter(message: CryptoCurrency, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CryptoCurrency; - static deserializeBinaryFromReader(message: CryptoCurrency, reader: jspb.BinaryReader): CryptoCurrency; -} - -export namespace CryptoCurrency { - export type AsObject = { - isAsset: boolean, - } -} - -export class FiatCurrency extends jspb.Message { - getCurrency(): Currency | undefined; - setCurrency(value?: Currency): FiatCurrency; - hasCurrency(): boolean; - clearCurrency(): FiatCurrency; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FiatCurrency.AsObject; - static toObject(includeInstance: boolean, msg: FiatCurrency): FiatCurrency.AsObject; - static serializeBinaryToWriter(message: FiatCurrency, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FiatCurrency; - static deserializeBinaryFromReader(message: FiatCurrency, reader: jspb.BinaryReader): FiatCurrency; -} - -export namespace FiatCurrency { - export type AsObject = { - currency?: Currency.AsObject, - } -} - -export class Country extends jspb.Message { - getCode(): string; - setCode(value: string): Country; - - getName(): string; - setName(value: string): Country; - - getRegion(): Region | undefined; - setRegion(value?: Region): Country; - hasRegion(): boolean; - clearRegion(): Country; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Country.AsObject; - static toObject(includeInstance: boolean, msg: Country): Country.AsObject; - static serializeBinaryToWriter(message: Country, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Country; - static deserializeBinaryFromReader(message: Country, reader: jspb.BinaryReader): Country; -} - -export namespace Country { - export type AsObject = { - code: string, - name: string, - region?: Region.AsObject, - } -} - -export class Region extends jspb.Message { - getCode(): string; - setCode(value: string): Region; - - getName(): string; - setName(value: string): Region; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Region.AsObject; - static toObject(includeInstance: boolean, msg: Region): Region.AsObject; - static serializeBinaryToWriter(message: Region, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Region; - static deserializeBinaryFromReader(message: Region, reader: jspb.BinaryReader): Region; -} - -export namespace Region { - export type AsObject = { - code: string, - name: string, - } -} - -export class PriceAlertFilter extends jspb.Message { - getCurrencycode(): string; - setCurrencycode(value: string): PriceAlertFilter; - - getHigh(): number; - setHigh(value: number): PriceAlertFilter; - - getLow(): number; - setLow(value: number): PriceAlertFilter; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PriceAlertFilter.AsObject; - static toObject(includeInstance: boolean, msg: PriceAlertFilter): PriceAlertFilter.AsObject; - static serializeBinaryToWriter(message: PriceAlertFilter, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PriceAlertFilter; - static deserializeBinaryFromReader(message: PriceAlertFilter, reader: jspb.BinaryReader): PriceAlertFilter; -} - -export namespace PriceAlertFilter { - export type AsObject = { - currencycode: string, - high: number, - low: number, - } -} - -export class MarketAlertFilter extends jspb.Message { - getPaymentAccount(): PaymentAccount | undefined; - setPaymentAccount(value?: PaymentAccount): MarketAlertFilter; - hasPaymentAccount(): boolean; - clearPaymentAccount(): MarketAlertFilter; - - getTriggerValue(): number; - setTriggerValue(value: number): MarketAlertFilter; - - getIsBuyOffer(): boolean; - setIsBuyOffer(value: boolean): MarketAlertFilter; - - getAlertIdsList(): Array; - setAlertIdsList(value: Array): MarketAlertFilter; - clearAlertIdsList(): MarketAlertFilter; - addAlertIds(value: string, index?: number): MarketAlertFilter; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MarketAlertFilter.AsObject; - static toObject(includeInstance: boolean, msg: MarketAlertFilter): MarketAlertFilter.AsObject; - static serializeBinaryToWriter(message: MarketAlertFilter, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MarketAlertFilter; - static deserializeBinaryFromReader(message: MarketAlertFilter, reader: jspb.BinaryReader): MarketAlertFilter; -} - -export namespace MarketAlertFilter { - export type AsObject = { - paymentAccount?: PaymentAccount.AsObject, - triggerValue: number, - isBuyOffer: boolean, - alertIdsList: Array, - } -} - -export class MockMailboxPayload extends jspb.Message { - getMessage(): string; - setMessage(value: string): MockMailboxPayload; - - getSenderNodeAddress(): NodeAddress | undefined; - setSenderNodeAddress(value?: NodeAddress): MockMailboxPayload; - hasSenderNodeAddress(): boolean; - clearSenderNodeAddress(): MockMailboxPayload; - - getUid(): string; - setUid(value: string): MockMailboxPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MockMailboxPayload.AsObject; - static toObject(includeInstance: boolean, msg: MockMailboxPayload): MockMailboxPayload.AsObject; - static serializeBinaryToWriter(message: MockMailboxPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MockMailboxPayload; - static deserializeBinaryFromReader(message: MockMailboxPayload, reader: jspb.BinaryReader): MockMailboxPayload; -} - -export namespace MockMailboxPayload { - export type AsObject = { - message: string, - senderNodeAddress?: NodeAddress.AsObject, - uid: string, - } -} - -export class MockPayload extends jspb.Message { - getMessageVersion(): string; - setMessageVersion(value: string): MockPayload; - - getMessage(): string; - setMessage(value: string): MockPayload; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MockPayload.AsObject; - static toObject(includeInstance: boolean, msg: MockPayload): MockPayload.AsObject; - static serializeBinaryToWriter(message: MockPayload, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MockPayload; - static deserializeBinaryFromReader(message: MockPayload, reader: jspb.BinaryReader): MockPayload; -} - -export namespace MockPayload { - export type AsObject = { - messageVersion: string, - message: string, - } -} - -export enum SupportType { - ARBITRATION = 0, - MEDIATION = 1, - TRADE = 2, - REFUND = 3, -} -export enum AvailabilityResult { - PB_ERROR = 0, - UNKNOWN_FAILURE = 1, - AVAILABLE = 2, - OFFER_TAKEN = 3, - PRICE_OUT_OF_TOLERANCE = 4, - MARKET_PRICE_NOT_AVAILABLE = 5, - NO_ARBITRATORS = 6, - NO_MEDIATORS = 7, - 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, - MAKER_DENIED_TAKER = 14, -} -export enum MediationResultState { - PB_ERROR_MEDIATION_RESULT = 0, - UNDEFINED_MEDIATION_RESULT = 1, - MEDIATION_RESULT_ACCEPTED = 2, - MEDIATION_RESULT_REJECTED = 3, - SIG_MSG_SENT = 4, - SIG_MSG_ARRIVED = 5, - SIG_MSG_IN_MAILBOX = 6, - SIG_MSG_SEND_FAILED = 7, - RECEIVED_SIG_MSG = 8, - PAYOUT_TX_PUBLISHED = 9, - PAYOUT_TX_PUBLISHED_MSG_SENT = 10, - PAYOUT_TX_PUBLISHED_MSG_ARRIVED = 11, - PAYOUT_TX_PUBLISHED_MSG_IN_MAILBOX = 12, - PAYOUT_TX_PUBLISHED_MSG_SEND_FAILED = 13, - RECEIVED_PAYOUT_TX_PUBLISHED_MSG = 14, - PAYOUT_TX_SEEN_IN_NETWORK = 15, -} -export enum RefundResultState { - PB_ERROR_REFUND_RESULT = 0, - UNDEFINED_REFUND_RESULT = 1, -} diff --git a/src/protobuf/pb_pb.js b/src/protobuf/pb_pb.js deleted file mode 100644 index a9c0b61d..00000000 --- a/src/protobuf/pb_pb.js +++ /dev/null @@ -1,62486 +0,0 @@ -// source: pb.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.io.bisq.protobuffer.AccountAgeWitness', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.AccountAgeWitnessStore', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.AckMessage', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.AddDataMessage', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.AddressEntry', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.AddressEntry.Context', null, global); -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.BankAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.BankAccountPayload.MessageCase', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.BlockChainExplorer', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.BundleOfEnvelopes', null, global); -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.ChaseQuickPayAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.ChatMessage', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.ClearXchangeAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.CloseConnectionMessage', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.Contract', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.Country', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.MessageCase', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.CryptoCurrency', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.Currency', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.DataAndSeqNrPair', 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.DepositRequest', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.DepositResponse', 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); -goog.exportSymbol('proto.io.bisq.protobuffer.DisputeResultMessage', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.F2FAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.FasterPaymentsAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.FiatCurrency', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.Filter', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.FinalizePayoutTxRequest', 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.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.InitMultisigRequest', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.InitTradeRequest', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.InputsForDepositTxRequest', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.InputsForDepositTxResponse', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.InteracETransferAccountPayload', 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.MapValue', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.MarketAlertFilter', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.MediationDisputeList', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.MediationResultState', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.Mediator', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.MockMailboxPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.MockPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.MoneyBeamAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.MoneyGramAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.NationalBankAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.NavigationPath', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.NetworkEnvelope', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.NetworkEnvelope.MessageCase', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.NodeAddress', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.OKPayAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.Offer', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.Offer.State', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.OfferAvailabilityRequest', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.OfferAvailabilityResponse', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.OfferPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.OfferPayload.Direction', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.OpenNewDisputeMessage', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.OpenOffer', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.OpenOffer.State', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PaymentAccount', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PaymentAccountFilter', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PaymentAccountList', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PaymentAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PaymentAccountPayload.MessageCase', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PaymentAccountPayloadRequest', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PaymentMethod', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PayoutTxPublishedMessage', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.Peer', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PeerList', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PeerOpenedDisputeMessage', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PerfectMoneyAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PersistableEnvelope', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PersistableEnvelope.MessageCase', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PersistableNetworkPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PersistableNetworkPayload.MessageCase', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PersistedEntryMap', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.Ping', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.Pong', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PopmoneyAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PreferencesPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PreliminaryGetDataRequest', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PriceAlertFilter', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PrivateNotificationMessage', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PrivateNotificationPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.ProcessModel', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PromptPayAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.ProtectedStorageEntry', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.PubKeyRing', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.RawTransactionInput', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.RefreshOfferMessage', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.RefreshTradeStateRequest', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.RefundAgent', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.RefundDisputeList', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.RefundResultState', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.Region', 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.RevolutAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SameBankAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SealedAndSigned', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SellerAsMakerTrade', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SellerAsTakerTrade', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SepaAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SepaInstantAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SequenceNumberEntry', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SequenceNumberMap', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SignContractRequest', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SignContractResponse', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SignOfferRequest', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SignOfferResponse', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SignedOffer', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SignedOfferList', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SignedWitness', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SignedWitness.VerificationMethod', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SignedWitnessStore', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SpecificBanksAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.StorageEntryWrapper', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.StorageEntryWrapper.MessageCase', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.StoragePayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.StoragePayload.MessageCase', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SupportType', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.SwishAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.Tradable', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.Tradable.MessageCase', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.TradableList', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.Trade', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.Trade.DisputeState', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.Trade.Phase', null, global); -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.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.USPostalMoneyOrderAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.UpdateMultisigRequest', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.UpdateMultisigResponse', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.UpholdAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.UserPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.VenmoAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.WeChatPayAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.WesternUnionAccountPayload', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.XmrAddressEntry', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.XmrAddressEntry.Context', null, global); -goog.exportSymbol('proto.io.bisq.protobuffer.XmrAddressEntryList', null, global); -/** - * 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.NetworkEnvelope = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, 500, null, proto.io.bisq.protobuffer.NetworkEnvelope.oneofGroups_); -}; -goog.inherits(proto.io.bisq.protobuffer.NetworkEnvelope, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.NetworkEnvelope.displayName = 'proto.io.bisq.protobuffer.NetworkEnvelope'; -} -/** - * 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.BundleOfEnvelopes = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.BundleOfEnvelopes.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.BundleOfEnvelopes, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.BundleOfEnvelopes.displayName = 'proto.io.bisq.protobuffer.BundleOfEnvelopes'; -} -/** - * 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.PreliminaryGetDataRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.PreliminaryGetDataRequest.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PreliminaryGetDataRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PreliminaryGetDataRequest.displayName = 'proto.io.bisq.protobuffer.PreliminaryGetDataRequest'; -} -/** - * 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.GetDataResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.GetDataResponse.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.GetDataResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.GetDataResponse.displayName = 'proto.io.bisq.protobuffer.GetDataResponse'; -} -/** - * 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.GetUpdatedDataRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.GetUpdatedDataRequest.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.GetUpdatedDataRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.GetUpdatedDataRequest.displayName = 'proto.io.bisq.protobuffer.GetUpdatedDataRequest'; -} -/** - * 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.GetPeersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.GetPeersRequest.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.GetPeersRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.GetPeersRequest.displayName = 'proto.io.bisq.protobuffer.GetPeersRequest'; -} -/** - * 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.GetPeersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.GetPeersResponse.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.GetPeersResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.GetPeersResponse.displayName = 'proto.io.bisq.protobuffer.GetPeersResponse'; -} -/** - * 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.Ping = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.Ping, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.Ping.displayName = 'proto.io.bisq.protobuffer.Ping'; -} -/** - * 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.Pong = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.Pong, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - 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 - * 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.SignOfferRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.SignOfferRequest.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SignOfferRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SignOfferRequest.displayName = 'proto.io.bisq.protobuffer.SignOfferRequest'; -} -/** - * 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.SignOfferResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SignOfferResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SignOfferResponse.displayName = 'proto.io.bisq.protobuffer.SignOfferResponse'; -} -/** - * 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.OfferAvailabilityRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.OfferAvailabilityRequest.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.OfferAvailabilityRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.OfferAvailabilityRequest.displayName = 'proto.io.bisq.protobuffer.OfferAvailabilityRequest'; -} -/** - * 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.OfferAvailabilityResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.OfferAvailabilityResponse.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.OfferAvailabilityResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.OfferAvailabilityResponse.displayName = 'proto.io.bisq.protobuffer.OfferAvailabilityResponse'; -} -/** - * 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.RefreshOfferMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.RefreshOfferMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.RefreshOfferMessage.displayName = 'proto.io.bisq.protobuffer.RefreshOfferMessage'; -} -/** - * 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.AddDataMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.AddDataMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.AddDataMessage.displayName = 'proto.io.bisq.protobuffer.AddDataMessage'; -} -/** - * 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.RemoveDataMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.RemoveDataMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.RemoveDataMessage.displayName = 'proto.io.bisq.protobuffer.RemoveDataMessage'; -} -/** - * 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.RemoveMailboxDataMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.RemoveMailboxDataMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.RemoveMailboxDataMessage.displayName = 'proto.io.bisq.protobuffer.RemoveMailboxDataMessage'; -} -/** - * 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.AddPersistableNetworkPayloadMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage.displayName = 'proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage'; -} -/** - * 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.CloseConnectionMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.CloseConnectionMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.CloseConnectionMessage.displayName = 'proto.io.bisq.protobuffer.CloseConnectionMessage'; -} -/** - * 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.AckMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.AckMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.AckMessage.displayName = 'proto.io.bisq.protobuffer.AckMessage'; -} -/** - * 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.PrefixedSealedAndSignedMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.displayName = 'proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage'; -} -/** - * 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.InputsForDepositTxRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.InputsForDepositTxRequest.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.InputsForDepositTxRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.InputsForDepositTxRequest.displayName = 'proto.io.bisq.protobuffer.InputsForDepositTxRequest'; -} -/** - * 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.InputsForDepositTxResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.InputsForDepositTxResponse.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.InputsForDepositTxResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.InputsForDepositTxResponse.displayName = 'proto.io.bisq.protobuffer.InputsForDepositTxResponse'; -} -/** - * 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.InitTradeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.InitTradeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.InitTradeRequest.displayName = 'proto.io.bisq.protobuffer.InitTradeRequest'; -} -/** - * 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.InitMultisigRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.InitMultisigRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.InitMultisigRequest.displayName = 'proto.io.bisq.protobuffer.InitMultisigRequest'; -} -/** - * 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.SignContractRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SignContractRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SignContractRequest.displayName = 'proto.io.bisq.protobuffer.SignContractRequest'; -} -/** - * 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.SignContractResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SignContractResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SignContractResponse.displayName = 'proto.io.bisq.protobuffer.SignContractResponse'; -} -/** - * 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.DepositRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.DepositRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.DepositRequest.displayName = 'proto.io.bisq.protobuffer.DepositRequest'; -} -/** - * 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.DepositResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.DepositResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.DepositResponse.displayName = 'proto.io.bisq.protobuffer.DepositResponse'; -} -/** - * 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.PaymentAccountPayloadRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PaymentAccountPayloadRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.displayName = 'proto.io.bisq.protobuffer.PaymentAccountPayloadRequest'; -} -/** - * 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.UpdateMultisigRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.UpdateMultisigRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.UpdateMultisigRequest.displayName = 'proto.io.bisq.protobuffer.UpdateMultisigRequest'; -} -/** - * 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.UpdateMultisigResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.UpdateMultisigResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.UpdateMultisigResponse.displayName = 'proto.io.bisq.protobuffer.UpdateMultisigResponse'; -} -/** - * 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.DelayedPayoutTxSignatureRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.displayName = 'proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest'; -} -/** - * 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.DelayedPayoutTxSignatureResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.displayName = 'proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse'; -} -/** - * 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.DepositTxAndDelayedPayoutTxMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.displayName = 'proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage'; -} -/** - * 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.DepositTxMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.DepositTxMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.DepositTxMessage.displayName = 'proto.io.bisq.protobuffer.DepositTxMessage'; -} -/** - * 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.PeerPublishedDelayedPayoutTxMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.displayName = 'proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage'; -} -/** - * 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.CounterCurrencyTransferStartedMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.displayName = 'proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage'; -} -/** - * 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.FinalizePayoutTxRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.FinalizePayoutTxRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.FinalizePayoutTxRequest.displayName = 'proto.io.bisq.protobuffer.FinalizePayoutTxRequest'; -} -/** - * 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.ArbitratorPayoutTxRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.displayName = 'proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest'; -} -/** - * 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.ArbitratorPayoutTxResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.displayName = 'proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse'; -} -/** - * 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.PayoutTxPublishedMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PayoutTxPublishedMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PayoutTxPublishedMessage.displayName = 'proto.io.bisq.protobuffer.PayoutTxPublishedMessage'; -} -/** - * 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.MediatedPayoutTxPublishedMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.displayName = 'proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage'; -} -/** - * 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.MediatedPayoutTxSignatureMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.displayName = 'proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage'; -} -/** - * 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.RefreshTradeStateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.RefreshTradeStateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.RefreshTradeStateRequest.displayName = 'proto.io.bisq.protobuffer.RefreshTradeStateRequest'; -} -/** - * 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.TraderSignedWitnessMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.TraderSignedWitnessMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.TraderSignedWitnessMessage.displayName = 'proto.io.bisq.protobuffer.TraderSignedWitnessMessage'; -} -/** - * 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.OpenNewDisputeMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.OpenNewDisputeMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.OpenNewDisputeMessage.displayName = 'proto.io.bisq.protobuffer.OpenNewDisputeMessage'; -} -/** - * 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.PeerOpenedDisputeMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PeerOpenedDisputeMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.displayName = 'proto.io.bisq.protobuffer.PeerOpenedDisputeMessage'; -} -/** - * 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.ChatMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.ChatMessage.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.ChatMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.ChatMessage.displayName = 'proto.io.bisq.protobuffer.ChatMessage'; -} -/** - * 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.DisputeResultMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.DisputeResultMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.DisputeResultMessage.displayName = 'proto.io.bisq.protobuffer.DisputeResultMessage'; -} -/** - * 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.PeerPublishedDisputePayoutTxMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.displayName = 'proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage'; -} -/** - * 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.PrivateNotificationMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PrivateNotificationMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PrivateNotificationMessage.displayName = 'proto.io.bisq.protobuffer.PrivateNotificationMessage'; -} -/** - * 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.NodeAddress = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.NodeAddress, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.NodeAddress.displayName = 'proto.io.bisq.protobuffer.NodeAddress'; -} -/** - * 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.Peer = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.Peer.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.Peer, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.Peer.displayName = 'proto.io.bisq.protobuffer.Peer'; -} -/** - * 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.PubKeyRing = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PubKeyRing, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PubKeyRing.displayName = 'proto.io.bisq.protobuffer.PubKeyRing'; -} -/** - * 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.SealedAndSigned = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SealedAndSigned, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SealedAndSigned.displayName = 'proto.io.bisq.protobuffer.SealedAndSigned'; -} -/** - * 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.StoragePayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.bisq.protobuffer.StoragePayload.oneofGroups_); -}; -goog.inherits(proto.io.bisq.protobuffer.StoragePayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.StoragePayload.displayName = 'proto.io.bisq.protobuffer.StoragePayload'; -} -/** - * 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.PersistableNetworkPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.bisq.protobuffer.PersistableNetworkPayload.oneofGroups_); -}; -goog.inherits(proto.io.bisq.protobuffer.PersistableNetworkPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PersistableNetworkPayload.displayName = 'proto.io.bisq.protobuffer.PersistableNetworkPayload'; -} -/** - * 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.ProtectedStorageEntry = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.ProtectedStorageEntry, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.ProtectedStorageEntry.displayName = 'proto.io.bisq.protobuffer.ProtectedStorageEntry'; -} -/** - * 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.StorageEntryWrapper = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.bisq.protobuffer.StorageEntryWrapper.oneofGroups_); -}; -goog.inherits(proto.io.bisq.protobuffer.StorageEntryWrapper, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.StorageEntryWrapper.displayName = 'proto.io.bisq.protobuffer.StorageEntryWrapper'; -} -/** - * 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.ProtectedMailboxStorageEntry = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.displayName = 'proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry'; -} -/** - * 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.DataAndSeqNrPair = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.DataAndSeqNrPair, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - 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 - * 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.PrivateNotificationPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PrivateNotificationPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PrivateNotificationPayload.displayName = 'proto.io.bisq.protobuffer.PrivateNotificationPayload'; -} -/** - * 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.PaymentAccountFilter = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PaymentAccountFilter, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PaymentAccountFilter.displayName = 'proto.io.bisq.protobuffer.PaymentAccountFilter'; -} -/** - * 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.Alert = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.Alert, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.Alert.displayName = 'proto.io.bisq.protobuffer.Alert'; -} -/** - * 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.Arbitrator = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.Arbitrator.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.Arbitrator, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.Arbitrator.displayName = 'proto.io.bisq.protobuffer.Arbitrator'; -} -/** - * 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.Mediator = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.Mediator.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.Mediator, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.Mediator.displayName = 'proto.io.bisq.protobuffer.Mediator'; -} -/** - * 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.RefundAgent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.RefundAgent.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.RefundAgent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.RefundAgent.displayName = 'proto.io.bisq.protobuffer.RefundAgent'; -} -/** - * 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.Filter = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.Filter.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.Filter, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.Filter.displayName = 'proto.io.bisq.protobuffer.Filter'; -} -/** - * 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.TradeStatistics2 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.TradeStatistics2, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.TradeStatistics2.displayName = 'proto.io.bisq.protobuffer.TradeStatistics2'; -} -/** - * 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.TradeStatistics3 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.TradeStatistics3, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.TradeStatistics3.displayName = 'proto.io.bisq.protobuffer.TradeStatistics3'; -} -/** - * 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.MailboxStoragePayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.MailboxStoragePayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.MailboxStoragePayload.displayName = 'proto.io.bisq.protobuffer.MailboxStoragePayload'; -} -/** - * 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.OfferPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, 500, proto.io.bisq.protobuffer.OfferPayload.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.OfferPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.OfferPayload.displayName = 'proto.io.bisq.protobuffer.OfferPayload'; -} -/** - * 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.AccountAgeWitness = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.AccountAgeWitness, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.AccountAgeWitness.displayName = 'proto.io.bisq.protobuffer.AccountAgeWitness'; -} -/** - * 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.SignedWitness = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SignedWitness, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SignedWitness.displayName = 'proto.io.bisq.protobuffer.SignedWitness'; -} -/** - * 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.Dispute = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.Dispute.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.Dispute, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.Dispute.displayName = 'proto.io.bisq.protobuffer.Dispute'; -} -/** - * 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.Attachment = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.Attachment, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.Attachment.displayName = 'proto.io.bisq.protobuffer.Attachment'; -} -/** - * 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.DisputeResult = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.DisputeResult, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.DisputeResult.displayName = 'proto.io.bisq.protobuffer.DisputeResult'; -} -/** - * 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.Contract = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.Contract, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.Contract.displayName = 'proto.io.bisq.protobuffer.Contract'; -} -/** - * 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.RawTransactionInput = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.RawTransactionInput, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.RawTransactionInput.displayName = 'proto.io.bisq.protobuffer.RawTransactionInput'; -} -/** - * 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.PaymentAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.bisq.protobuffer.PaymentAccountPayload.oneofGroups_); -}; -goog.inherits(proto.io.bisq.protobuffer.PaymentAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PaymentAccountPayload.displayName = 'proto.io.bisq.protobuffer.PaymentAccountPayload'; -} -/** - * 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.AliPayAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.AliPayAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.AliPayAccountPayload.displayName = 'proto.io.bisq.protobuffer.AliPayAccountPayload'; -} -/** - * 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.WeChatPayAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.WeChatPayAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.WeChatPayAccountPayload.displayName = 'proto.io.bisq.protobuffer.WeChatPayAccountPayload'; -} -/** - * 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.ChaseQuickPayAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload.displayName = 'proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload'; -} -/** - * 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.ClearXchangeAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.ClearXchangeAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.ClearXchangeAccountPayload.displayName = 'proto.io.bisq.protobuffer.ClearXchangeAccountPayload'; -} -/** - * 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.CountryBasedPaymentAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.oneofGroups_); -}; -goog.inherits(proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.displayName = 'proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload'; -} -/** - * 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.BankAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.bisq.protobuffer.BankAccountPayload.oneofGroups_); -}; -goog.inherits(proto.io.bisq.protobuffer.BankAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.BankAccountPayload.displayName = 'proto.io.bisq.protobuffer.BankAccountPayload'; -} -/** - * 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.NationalBankAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.NationalBankAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.NationalBankAccountPayload.displayName = 'proto.io.bisq.protobuffer.NationalBankAccountPayload'; -} -/** - * 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.SameBankAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SameBankAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SameBankAccountPayload.displayName = 'proto.io.bisq.protobuffer.SameBankAccountPayload'; -} -/** - * 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.JapanBankAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.JapanBankAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - 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 - * 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.SpecificBanksAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.SpecificBanksAccountPayload.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SpecificBanksAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SpecificBanksAccountPayload.displayName = 'proto.io.bisq.protobuffer.SpecificBanksAccountPayload'; -} -/** - * 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.CashDepositAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.CashDepositAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.CashDepositAccountPayload.displayName = 'proto.io.bisq.protobuffer.CashDepositAccountPayload'; -} -/** - * 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.MoneyGramAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.MoneyGramAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.MoneyGramAccountPayload.displayName = 'proto.io.bisq.protobuffer.MoneyGramAccountPayload'; -} -/** - * 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.HalCashAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.HalCashAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.HalCashAccountPayload.displayName = 'proto.io.bisq.protobuffer.HalCashAccountPayload'; -} -/** - * 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.WesternUnionAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.WesternUnionAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - 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 - * 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.SepaAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.SepaAccountPayload.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SepaAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SepaAccountPayload.displayName = 'proto.io.bisq.protobuffer.SepaAccountPayload'; -} -/** - * 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.SepaInstantAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.SepaInstantAccountPayload.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SepaInstantAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SepaInstantAccountPayload.displayName = 'proto.io.bisq.protobuffer.SepaInstantAccountPayload'; -} -/** - * 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.CryptoCurrencyAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload.displayName = 'proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload'; -} -/** - * 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.InstantCryptoCurrencyAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload.displayName = 'proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload'; -} -/** - * 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.FasterPaymentsAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.FasterPaymentsAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.FasterPaymentsAccountPayload.displayName = 'proto.io.bisq.protobuffer.FasterPaymentsAccountPayload'; -} -/** - * 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.InteracETransferAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.InteracETransferAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.InteracETransferAccountPayload.displayName = 'proto.io.bisq.protobuffer.InteracETransferAccountPayload'; -} -/** - * 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.OKPayAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.OKPayAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.OKPayAccountPayload.displayName = 'proto.io.bisq.protobuffer.OKPayAccountPayload'; -} -/** - * 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.UpholdAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.UpholdAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.UpholdAccountPayload.displayName = 'proto.io.bisq.protobuffer.UpholdAccountPayload'; -} -/** - * 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.CashAppAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.CashAppAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.CashAppAccountPayload.displayName = 'proto.io.bisq.protobuffer.CashAppAccountPayload'; -} -/** - * 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.MoneyBeamAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.MoneyBeamAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.MoneyBeamAccountPayload.displayName = 'proto.io.bisq.protobuffer.MoneyBeamAccountPayload'; -} -/** - * 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.VenmoAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.VenmoAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.VenmoAccountPayload.displayName = 'proto.io.bisq.protobuffer.VenmoAccountPayload'; -} -/** - * 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.PopmoneyAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PopmoneyAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PopmoneyAccountPayload.displayName = 'proto.io.bisq.protobuffer.PopmoneyAccountPayload'; -} -/** - * 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.RevolutAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.RevolutAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.RevolutAccountPayload.displayName = 'proto.io.bisq.protobuffer.RevolutAccountPayload'; -} -/** - * 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.PerfectMoneyAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PerfectMoneyAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PerfectMoneyAccountPayload.displayName = 'proto.io.bisq.protobuffer.PerfectMoneyAccountPayload'; -} -/** - * 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.SwishAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SwishAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SwishAccountPayload.displayName = 'proto.io.bisq.protobuffer.SwishAccountPayload'; -} -/** - * 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.USPostalMoneyOrderAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload.displayName = 'proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload'; -} -/** - * 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.F2FAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.F2FAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - 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 - * 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.PromptPayAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PromptPayAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PromptPayAccountPayload.displayName = 'proto.io.bisq.protobuffer.PromptPayAccountPayload'; -} -/** - * 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.AdvancedCashAccountPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.AdvancedCashAccountPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - 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 - * 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.PersistableEnvelope = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, 500, null, proto.io.bisq.protobuffer.PersistableEnvelope.oneofGroups_); -}; -goog.inherits(proto.io.bisq.protobuffer.PersistableEnvelope, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PersistableEnvelope.displayName = 'proto.io.bisq.protobuffer.PersistableEnvelope'; -} -/** - * 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.SequenceNumberMap = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.SequenceNumberMap.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SequenceNumberMap, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SequenceNumberMap.displayName = 'proto.io.bisq.protobuffer.SequenceNumberMap'; -} -/** - * 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.SequenceNumberEntry = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SequenceNumberEntry, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SequenceNumberEntry.displayName = 'proto.io.bisq.protobuffer.SequenceNumberEntry'; -} -/** - * 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.ByteArray = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.ByteArray, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.ByteArray.displayName = 'proto.io.bisq.protobuffer.ByteArray'; -} -/** - * 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.MapValue = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.MapValue, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.MapValue.displayName = 'proto.io.bisq.protobuffer.MapValue'; -} -/** - * 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.PersistedEntryMap = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PersistedEntryMap, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PersistedEntryMap.displayName = 'proto.io.bisq.protobuffer.PersistedEntryMap'; -} -/** - * 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.AccountAgeWitnessStore = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.AccountAgeWitnessStore.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.AccountAgeWitnessStore, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.AccountAgeWitnessStore.displayName = 'proto.io.bisq.protobuffer.AccountAgeWitnessStore'; -} -/** - * 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.SignedWitnessStore = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.SignedWitnessStore.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SignedWitnessStore, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SignedWitnessStore.displayName = 'proto.io.bisq.protobuffer.SignedWitnessStore'; -} -/** - * 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.TradeStatistics2Store = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.TradeStatistics2Store.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.TradeStatistics2Store, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - 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 - * 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.PeerList = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.PeerList.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PeerList, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PeerList.displayName = 'proto.io.bisq.protobuffer.PeerList'; -} -/** - * 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.AddressEntryList = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.AddressEntryList.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.AddressEntryList, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.AddressEntryList.displayName = 'proto.io.bisq.protobuffer.AddressEntryList'; -} -/** - * 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.AddressEntry = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.AddressEntry, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.AddressEntry.displayName = 'proto.io.bisq.protobuffer.AddressEntry'; -} -/** - * 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.XmrAddressEntryList = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.XmrAddressEntryList.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.XmrAddressEntryList, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.XmrAddressEntryList.displayName = 'proto.io.bisq.protobuffer.XmrAddressEntryList'; -} -/** - * 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.XmrAddressEntry = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.XmrAddressEntry, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.XmrAddressEntry.displayName = 'proto.io.bisq.protobuffer.XmrAddressEntry'; -} -/** - * 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.NavigationPath = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.NavigationPath.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.NavigationPath, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.NavigationPath.displayName = 'proto.io.bisq.protobuffer.NavigationPath'; -} -/** - * 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.PaymentAccountList = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.PaymentAccountList.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PaymentAccountList, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PaymentAccountList.displayName = 'proto.io.bisq.protobuffer.PaymentAccountList'; -} -/** - * 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.TradableList = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.TradableList.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.TradableList, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.TradableList.displayName = 'proto.io.bisq.protobuffer.TradableList'; -} -/** - * 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.Offer = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.Offer, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.Offer.displayName = 'proto.io.bisq.protobuffer.Offer'; -} -/** - * 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.SignedOfferList = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.SignedOfferList.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SignedOfferList, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SignedOfferList.displayName = 'proto.io.bisq.protobuffer.SignedOfferList'; -} -/** - * 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.SignedOffer = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SignedOffer, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SignedOffer.displayName = 'proto.io.bisq.protobuffer.SignedOffer'; -} -/** - * 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.OpenOffer = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.OpenOffer, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.OpenOffer.displayName = 'proto.io.bisq.protobuffer.OpenOffer'; -} -/** - * 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.Tradable = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, 500, null, proto.io.bisq.protobuffer.Tradable.oneofGroups_); -}; -goog.inherits(proto.io.bisq.protobuffer.Tradable, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.Tradable.displayName = 'proto.io.bisq.protobuffer.Tradable'; -} -/** - * 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.Trade = function(opt_data) { - 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) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.Trade.displayName = 'proto.io.bisq.protobuffer.Trade'; -} -/** - * 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.BuyerAsMakerTrade = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.BuyerAsMakerTrade, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.BuyerAsMakerTrade.displayName = 'proto.io.bisq.protobuffer.BuyerAsMakerTrade'; -} -/** - * 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.BuyerAsTakerTrade = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.BuyerAsTakerTrade, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.BuyerAsTakerTrade.displayName = 'proto.io.bisq.protobuffer.BuyerAsTakerTrade'; -} -/** - * 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.SellerAsMakerTrade = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SellerAsMakerTrade, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SellerAsMakerTrade.displayName = 'proto.io.bisq.protobuffer.SellerAsMakerTrade'; -} -/** - * 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.SellerAsTakerTrade = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.SellerAsTakerTrade, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.SellerAsTakerTrade.displayName = 'proto.io.bisq.protobuffer.SellerAsTakerTrade'; -} -/** - * 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.ArbitratorTrade = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.ArbitratorTrade, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.ArbitratorTrade.displayName = 'proto.io.bisq.protobuffer.ArbitratorTrade'; -} -/** - * 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.ProcessModel = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, 500, proto.io.bisq.protobuffer.ProcessModel.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.ProcessModel, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.ProcessModel.displayName = 'proto.io.bisq.protobuffer.ProcessModel'; -} -/** - * 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.TradingPeer = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, 500, proto.io.bisq.protobuffer.TradingPeer.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.TradingPeer, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.TradingPeer.displayName = 'proto.io.bisq.protobuffer.TradingPeer'; -} -/** - * 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.ArbitrationDisputeList = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.ArbitrationDisputeList.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.ArbitrationDisputeList, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.ArbitrationDisputeList.displayName = 'proto.io.bisq.protobuffer.ArbitrationDisputeList'; -} -/** - * 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.MediationDisputeList = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.MediationDisputeList.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.MediationDisputeList, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.MediationDisputeList.displayName = 'proto.io.bisq.protobuffer.MediationDisputeList'; -} -/** - * 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.RefundDisputeList = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.RefundDisputeList.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.RefundDisputeList, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.RefundDisputeList.displayName = 'proto.io.bisq.protobuffer.RefundDisputeList'; -} -/** - * 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.PreferencesPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.PreferencesPayload.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PreferencesPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PreferencesPayload.displayName = 'proto.io.bisq.protobuffer.PreferencesPayload'; -} -/** - * 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.AutoConfirmSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.AutoConfirmSettings.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.AutoConfirmSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.AutoConfirmSettings.displayName = 'proto.io.bisq.protobuffer.AutoConfirmSettings'; -} -/** - * 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.UserPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.UserPayload.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.UserPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.UserPayload.displayName = 'proto.io.bisq.protobuffer.UserPayload'; -} -/** - * 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.BlockChainExplorer = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.BlockChainExplorer, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.BlockChainExplorer.displayName = 'proto.io.bisq.protobuffer.BlockChainExplorer'; -} -/** - * 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.PaymentAccount = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.PaymentAccount.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PaymentAccount, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PaymentAccount.displayName = 'proto.io.bisq.protobuffer.PaymentAccount'; -} -/** - * 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.PaymentMethod = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PaymentMethod, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PaymentMethod.displayName = 'proto.io.bisq.protobuffer.PaymentMethod'; -} -/** - * 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.Currency = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.Currency, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.Currency.displayName = 'proto.io.bisq.protobuffer.Currency'; -} -/** - * 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.TradeCurrency = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.bisq.protobuffer.TradeCurrency.oneofGroups_); -}; -goog.inherits(proto.io.bisq.protobuffer.TradeCurrency, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.TradeCurrency.displayName = 'proto.io.bisq.protobuffer.TradeCurrency'; -} -/** - * 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.CryptoCurrency = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.CryptoCurrency, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.CryptoCurrency.displayName = 'proto.io.bisq.protobuffer.CryptoCurrency'; -} -/** - * 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.FiatCurrency = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.FiatCurrency, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.FiatCurrency.displayName = 'proto.io.bisq.protobuffer.FiatCurrency'; -} -/** - * 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.Country = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.Country, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.Country.displayName = 'proto.io.bisq.protobuffer.Country'; -} -/** - * 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.Region = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.Region, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.Region.displayName = 'proto.io.bisq.protobuffer.Region'; -} -/** - * 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.PriceAlertFilter = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.PriceAlertFilter, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.PriceAlertFilter.displayName = 'proto.io.bisq.protobuffer.PriceAlertFilter'; -} -/** - * 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.MarketAlertFilter = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.MarketAlertFilter.repeatedFields_, null); -}; -goog.inherits(proto.io.bisq.protobuffer.MarketAlertFilter, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.MarketAlertFilter.displayName = 'proto.io.bisq.protobuffer.MarketAlertFilter'; -} -/** - * 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.MockMailboxPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.MockMailboxPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.MockMailboxPayload.displayName = 'proto.io.bisq.protobuffer.MockMailboxPayload'; -} -/** - * 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.MockPayload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.io.bisq.protobuffer.MockPayload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.io.bisq.protobuffer.MockPayload.displayName = 'proto.io.bisq.protobuffer.MockPayload'; -} - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @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,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013]]; - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.MessageCase = { - MESSAGE_NOT_SET: 0, - PRELIMINARY_GET_DATA_REQUEST: 2, - GET_DATA_RESPONSE: 3, - GET_UPDATED_DATA_REQUEST: 4, - GET_PEERS_REQUEST: 5, - GET_PEERS_RESPONSE: 6, - PING: 7, - PONG: 8, - OFFER_AVAILABILITY_REQUEST: 9, - OFFER_AVAILABILITY_RESPONSE: 10, - REFRESH_OFFER_MESSAGE: 11, - ADD_DATA_MESSAGE: 12, - REMOVE_DATA_MESSAGE: 13, - REMOVE_MAILBOX_DATA_MESSAGE: 14, - CLOSE_CONNECTION_MESSAGE: 15, - PREFIXED_SEALED_AND_SIGNED_MESSAGE: 16, - INPUTS_FOR_DEPOSIT_TX_REQUEST: 17, - INPUTS_FOR_DEPOSIT_TX_RESPONSE: 18, - DEPOSIT_TX_MESSAGE: 19, - COUNTER_CURRENCY_TRANSFER_STARTED_MESSAGE: 20, - PAYOUT_TX_PUBLISHED_MESSAGE: 21, - OPEN_NEW_DISPUTE_MESSAGE: 22, - PEER_OPENED_DISPUTE_MESSAGE: 23, - CHAT_MESSAGE: 24, - DISPUTE_RESULT_MESSAGE: 25, - PEER_PUBLISHED_DISPUTE_PAYOUT_TX_MESSAGE: 26, - PRIVATE_NOTIFICATION_MESSAGE: 27, - ADD_PERSISTABLE_NETWORK_PAYLOAD_MESSAGE: 28, - ACK_MESSAGE: 29, - BUNDLE_OF_ENVELOPES: 30, - MEDIATED_PAYOUT_TX_SIGNATURE_MESSAGE: 31, - MEDIATED_PAYOUT_TX_PUBLISHED_MESSAGE: 32, - DELAYED_PAYOUT_TX_SIGNATURE_REQUEST: 33, - DELAYED_PAYOUT_TX_SIGNATURE_RESPONSE: 34, - DEPOSIT_TX_AND_DELAYED_PAYOUT_TX_MESSAGE: 35, - PEER_PUBLISHED_DELAYED_PAYOUT_TX_MESSAGE: 36, - REFRESH_TRADE_STATE_REQUEST: 37, - TRADER_SIGNED_WITNESS_MESSAGE: 38, - GET_INVENTORY_REQUEST: 39, - GET_INVENTORY_RESPONSE: 40, - SIGN_OFFER_REQUEST: 1001, - SIGN_OFFER_RESPONSE: 1002, - INIT_TRADE_REQUEST: 1003, - INIT_MULTISIG_REQUEST: 1004, - SIGN_CONTRACT_REQUEST: 1005, - SIGN_CONTRACT_RESPONSE: 1006, - DEPOSIT_REQUEST: 1007, - DEPOSIT_RESPONSE: 1008, - PAYMENT_ACCOUNT_PAYLOAD_REQUEST: 1009, - UPDATE_MULTISIG_REQUEST: 1010, - UPDATE_MULTISIG_RESPONSE: 1011, - ARBITRATOR_PAYOUT_TX_REQUEST: 1012, - ARBITRATOR_PAYOUT_TX_RESPONSE: 1013 -}; - -/** - * @return {proto.io.bisq.protobuffer.NetworkEnvelope.MessageCase} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getMessageCase = function() { - return /** @type {proto.io.bisq.protobuffer.NetworkEnvelope.MessageCase} */(jspb.Message.computeOneofCase(this, proto.io.bisq.protobuffer.NetworkEnvelope.oneofGroups_[0])); -}; - - - -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.NetworkEnvelope.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.NetworkEnvelope.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.NetworkEnvelope} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.NetworkEnvelope.toObject = function(includeInstance, msg) { - var f, obj = { - messageVersion: jspb.Message.getFieldWithDefault(msg, 1, 0), - preliminaryGetDataRequest: (f = msg.getPreliminaryGetDataRequest()) && proto.io.bisq.protobuffer.PreliminaryGetDataRequest.toObject(includeInstance, f), - getDataResponse: (f = msg.getGetDataResponse()) && proto.io.bisq.protobuffer.GetDataResponse.toObject(includeInstance, f), - getUpdatedDataRequest: (f = msg.getGetUpdatedDataRequest()) && proto.io.bisq.protobuffer.GetUpdatedDataRequest.toObject(includeInstance, f), - getPeersRequest: (f = msg.getGetPeersRequest()) && proto.io.bisq.protobuffer.GetPeersRequest.toObject(includeInstance, f), - getPeersResponse: (f = msg.getGetPeersResponse()) && proto.io.bisq.protobuffer.GetPeersResponse.toObject(includeInstance, f), - ping: (f = msg.getPing()) && proto.io.bisq.protobuffer.Ping.toObject(includeInstance, f), - pong: (f = msg.getPong()) && proto.io.bisq.protobuffer.Pong.toObject(includeInstance, f), - offerAvailabilityRequest: (f = msg.getOfferAvailabilityRequest()) && proto.io.bisq.protobuffer.OfferAvailabilityRequest.toObject(includeInstance, f), - offerAvailabilityResponse: (f = msg.getOfferAvailabilityResponse()) && proto.io.bisq.protobuffer.OfferAvailabilityResponse.toObject(includeInstance, f), - refreshOfferMessage: (f = msg.getRefreshOfferMessage()) && proto.io.bisq.protobuffer.RefreshOfferMessage.toObject(includeInstance, f), - addDataMessage: (f = msg.getAddDataMessage()) && proto.io.bisq.protobuffer.AddDataMessage.toObject(includeInstance, f), - removeDataMessage: (f = msg.getRemoveDataMessage()) && proto.io.bisq.protobuffer.RemoveDataMessage.toObject(includeInstance, f), - removeMailboxDataMessage: (f = msg.getRemoveMailboxDataMessage()) && proto.io.bisq.protobuffer.RemoveMailboxDataMessage.toObject(includeInstance, f), - closeConnectionMessage: (f = msg.getCloseConnectionMessage()) && proto.io.bisq.protobuffer.CloseConnectionMessage.toObject(includeInstance, f), - prefixedSealedAndSignedMessage: (f = msg.getPrefixedSealedAndSignedMessage()) && proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.toObject(includeInstance, f), - inputsForDepositTxRequest: (f = msg.getInputsForDepositTxRequest()) && proto.io.bisq.protobuffer.InputsForDepositTxRequest.toObject(includeInstance, f), - inputsForDepositTxResponse: (f = msg.getInputsForDepositTxResponse()) && proto.io.bisq.protobuffer.InputsForDepositTxResponse.toObject(includeInstance, f), - depositTxMessage: (f = msg.getDepositTxMessage()) && proto.io.bisq.protobuffer.DepositTxMessage.toObject(includeInstance, f), - counterCurrencyTransferStartedMessage: (f = msg.getCounterCurrencyTransferStartedMessage()) && proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.toObject(includeInstance, f), - payoutTxPublishedMessage: (f = msg.getPayoutTxPublishedMessage()) && proto.io.bisq.protobuffer.PayoutTxPublishedMessage.toObject(includeInstance, f), - openNewDisputeMessage: (f = msg.getOpenNewDisputeMessage()) && proto.io.bisq.protobuffer.OpenNewDisputeMessage.toObject(includeInstance, f), - peerOpenedDisputeMessage: (f = msg.getPeerOpenedDisputeMessage()) && proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.toObject(includeInstance, f), - chatMessage: (f = msg.getChatMessage()) && proto.io.bisq.protobuffer.ChatMessage.toObject(includeInstance, f), - disputeResultMessage: (f = msg.getDisputeResultMessage()) && proto.io.bisq.protobuffer.DisputeResultMessage.toObject(includeInstance, f), - peerPublishedDisputePayoutTxMessage: (f = msg.getPeerPublishedDisputePayoutTxMessage()) && proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.toObject(includeInstance, f), - privateNotificationMessage: (f = msg.getPrivateNotificationMessage()) && proto.io.bisq.protobuffer.PrivateNotificationMessage.toObject(includeInstance, f), - addPersistableNetworkPayloadMessage: (f = msg.getAddPersistableNetworkPayloadMessage()) && proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage.toObject(includeInstance, f), - ackMessage: (f = msg.getAckMessage()) && proto.io.bisq.protobuffer.AckMessage.toObject(includeInstance, f), - bundleOfEnvelopes: (f = msg.getBundleOfEnvelopes()) && proto.io.bisq.protobuffer.BundleOfEnvelopes.toObject(includeInstance, f), - mediatedPayoutTxSignatureMessage: (f = msg.getMediatedPayoutTxSignatureMessage()) && proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.toObject(includeInstance, f), - mediatedPayoutTxPublishedMessage: (f = msg.getMediatedPayoutTxPublishedMessage()) && proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.toObject(includeInstance, f), - delayedPayoutTxSignatureRequest: (f = msg.getDelayedPayoutTxSignatureRequest()) && proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.toObject(includeInstance, f), - delayedPayoutTxSignatureResponse: (f = msg.getDelayedPayoutTxSignatureResponse()) && proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.toObject(includeInstance, f), - depositTxAndDelayedPayoutTxMessage: (f = msg.getDepositTxAndDelayedPayoutTxMessage()) && proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.toObject(includeInstance, f), - 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), - signOfferRequest: (f = msg.getSignOfferRequest()) && proto.io.bisq.protobuffer.SignOfferRequest.toObject(includeInstance, f), - signOfferResponse: (f = msg.getSignOfferResponse()) && proto.io.bisq.protobuffer.SignOfferResponse.toObject(includeInstance, f), - initTradeRequest: (f = msg.getInitTradeRequest()) && proto.io.bisq.protobuffer.InitTradeRequest.toObject(includeInstance, f), - initMultisigRequest: (f = msg.getInitMultisigRequest()) && proto.io.bisq.protobuffer.InitMultisigRequest.toObject(includeInstance, f), - signContractRequest: (f = msg.getSignContractRequest()) && proto.io.bisq.protobuffer.SignContractRequest.toObject(includeInstance, f), - signContractResponse: (f = msg.getSignContractResponse()) && proto.io.bisq.protobuffer.SignContractResponse.toObject(includeInstance, f), - depositRequest: (f = msg.getDepositRequest()) && proto.io.bisq.protobuffer.DepositRequest.toObject(includeInstance, f), - depositResponse: (f = msg.getDepositResponse()) && proto.io.bisq.protobuffer.DepositResponse.toObject(includeInstance, f), - paymentAccountPayloadRequest: (f = msg.getPaymentAccountPayloadRequest()) && proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.toObject(includeInstance, f), - updateMultisigRequest: (f = msg.getUpdateMultisigRequest()) && proto.io.bisq.protobuffer.UpdateMultisigRequest.toObject(includeInstance, f), - updateMultisigResponse: (f = msg.getUpdateMultisigResponse()) && proto.io.bisq.protobuffer.UpdateMultisigResponse.toObject(includeInstance, f), - arbitratorPayoutTxRequest: (f = msg.getArbitratorPayoutTxRequest()) && proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.toObject(includeInstance, f), - arbitratorPayoutTxResponse: (f = msg.getArbitratorPayoutTxResponse()) && proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.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.NetworkEnvelope} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.NetworkEnvelope; - return proto.io.bisq.protobuffer.NetworkEnvelope.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.NetworkEnvelope} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMessageVersion(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.PreliminaryGetDataRequest; - reader.readMessage(value,proto.io.bisq.protobuffer.PreliminaryGetDataRequest.deserializeBinaryFromReader); - msg.setPreliminaryGetDataRequest(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.GetDataResponse; - reader.readMessage(value,proto.io.bisq.protobuffer.GetDataResponse.deserializeBinaryFromReader); - msg.setGetDataResponse(value); - break; - case 4: - var value = new proto.io.bisq.protobuffer.GetUpdatedDataRequest; - reader.readMessage(value,proto.io.bisq.protobuffer.GetUpdatedDataRequest.deserializeBinaryFromReader); - msg.setGetUpdatedDataRequest(value); - break; - case 5: - var value = new proto.io.bisq.protobuffer.GetPeersRequest; - reader.readMessage(value,proto.io.bisq.protobuffer.GetPeersRequest.deserializeBinaryFromReader); - msg.setGetPeersRequest(value); - break; - case 6: - var value = new proto.io.bisq.protobuffer.GetPeersResponse; - reader.readMessage(value,proto.io.bisq.protobuffer.GetPeersResponse.deserializeBinaryFromReader); - msg.setGetPeersResponse(value); - break; - case 7: - var value = new proto.io.bisq.protobuffer.Ping; - reader.readMessage(value,proto.io.bisq.protobuffer.Ping.deserializeBinaryFromReader); - msg.setPing(value); - break; - case 8: - var value = new proto.io.bisq.protobuffer.Pong; - reader.readMessage(value,proto.io.bisq.protobuffer.Pong.deserializeBinaryFromReader); - msg.setPong(value); - break; - case 9: - var value = new proto.io.bisq.protobuffer.OfferAvailabilityRequest; - reader.readMessage(value,proto.io.bisq.protobuffer.OfferAvailabilityRequest.deserializeBinaryFromReader); - msg.setOfferAvailabilityRequest(value); - break; - case 10: - var value = new proto.io.bisq.protobuffer.OfferAvailabilityResponse; - reader.readMessage(value,proto.io.bisq.protobuffer.OfferAvailabilityResponse.deserializeBinaryFromReader); - msg.setOfferAvailabilityResponse(value); - break; - case 11: - var value = new proto.io.bisq.protobuffer.RefreshOfferMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.RefreshOfferMessage.deserializeBinaryFromReader); - msg.setRefreshOfferMessage(value); - break; - case 12: - var value = new proto.io.bisq.protobuffer.AddDataMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.AddDataMessage.deserializeBinaryFromReader); - msg.setAddDataMessage(value); - break; - case 13: - var value = new proto.io.bisq.protobuffer.RemoveDataMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.RemoveDataMessage.deserializeBinaryFromReader); - msg.setRemoveDataMessage(value); - break; - case 14: - var value = new proto.io.bisq.protobuffer.RemoveMailboxDataMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.RemoveMailboxDataMessage.deserializeBinaryFromReader); - msg.setRemoveMailboxDataMessage(value); - break; - case 15: - var value = new proto.io.bisq.protobuffer.CloseConnectionMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.CloseConnectionMessage.deserializeBinaryFromReader); - msg.setCloseConnectionMessage(value); - break; - case 16: - var value = new proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.deserializeBinaryFromReader); - msg.setPrefixedSealedAndSignedMessage(value); - break; - case 17: - var value = new proto.io.bisq.protobuffer.InputsForDepositTxRequest; - reader.readMessage(value,proto.io.bisq.protobuffer.InputsForDepositTxRequest.deserializeBinaryFromReader); - msg.setInputsForDepositTxRequest(value); - break; - case 18: - var value = new proto.io.bisq.protobuffer.InputsForDepositTxResponse; - reader.readMessage(value,proto.io.bisq.protobuffer.InputsForDepositTxResponse.deserializeBinaryFromReader); - msg.setInputsForDepositTxResponse(value); - break; - case 19: - var value = new proto.io.bisq.protobuffer.DepositTxMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.DepositTxMessage.deserializeBinaryFromReader); - msg.setDepositTxMessage(value); - break; - case 20: - var value = new proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.deserializeBinaryFromReader); - msg.setCounterCurrencyTransferStartedMessage(value); - break; - case 21: - var value = new proto.io.bisq.protobuffer.PayoutTxPublishedMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.PayoutTxPublishedMessage.deserializeBinaryFromReader); - msg.setPayoutTxPublishedMessage(value); - break; - case 22: - var value = new proto.io.bisq.protobuffer.OpenNewDisputeMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.OpenNewDisputeMessage.deserializeBinaryFromReader); - msg.setOpenNewDisputeMessage(value); - break; - case 23: - var value = new proto.io.bisq.protobuffer.PeerOpenedDisputeMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.deserializeBinaryFromReader); - msg.setPeerOpenedDisputeMessage(value); - break; - case 24: - var value = new proto.io.bisq.protobuffer.ChatMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.ChatMessage.deserializeBinaryFromReader); - msg.setChatMessage(value); - break; - case 25: - var value = new proto.io.bisq.protobuffer.DisputeResultMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.DisputeResultMessage.deserializeBinaryFromReader); - msg.setDisputeResultMessage(value); - break; - case 26: - var value = new proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.deserializeBinaryFromReader); - msg.setPeerPublishedDisputePayoutTxMessage(value); - break; - case 27: - var value = new proto.io.bisq.protobuffer.PrivateNotificationMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.PrivateNotificationMessage.deserializeBinaryFromReader); - msg.setPrivateNotificationMessage(value); - break; - case 28: - var value = new proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage.deserializeBinaryFromReader); - msg.setAddPersistableNetworkPayloadMessage(value); - break; - case 29: - var value = new proto.io.bisq.protobuffer.AckMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.AckMessage.deserializeBinaryFromReader); - msg.setAckMessage(value); - break; - case 30: - var value = new proto.io.bisq.protobuffer.BundleOfEnvelopes; - reader.readMessage(value,proto.io.bisq.protobuffer.BundleOfEnvelopes.deserializeBinaryFromReader); - msg.setBundleOfEnvelopes(value); - break; - case 31: - var value = new proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.deserializeBinaryFromReader); - msg.setMediatedPayoutTxSignatureMessage(value); - break; - case 32: - var value = new proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.deserializeBinaryFromReader); - msg.setMediatedPayoutTxPublishedMessage(value); - break; - case 33: - var value = new proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest; - reader.readMessage(value,proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.deserializeBinaryFromReader); - msg.setDelayedPayoutTxSignatureRequest(value); - break; - case 34: - var value = new proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse; - reader.readMessage(value,proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.deserializeBinaryFromReader); - msg.setDelayedPayoutTxSignatureResponse(value); - break; - case 35: - var value = new proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.deserializeBinaryFromReader); - msg.setDepositTxAndDelayedPayoutTxMessage(value); - break; - case 36: - var value = new proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.deserializeBinaryFromReader); - msg.setPeerPublishedDelayedPayoutTxMessage(value); - break; - case 37: - var value = new proto.io.bisq.protobuffer.RefreshTradeStateRequest; - reader.readMessage(value,proto.io.bisq.protobuffer.RefreshTradeStateRequest.deserializeBinaryFromReader); - msg.setRefreshTradeStateRequest(value); - break; - case 38: - var value = new proto.io.bisq.protobuffer.TraderSignedWitnessMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.TraderSignedWitnessMessage.deserializeBinaryFromReader); - msg.setTraderSignedWitnessMessage(value); - break; - case 39: - var value = new proto.io.bisq.protobuffer.GetInventoryRequest; - reader.readMessage(value,proto.io.bisq.protobuffer.GetInventoryRequest.deserializeBinaryFromReader); - msg.setGetInventoryRequest(value); - break; - case 40: - 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.SignOfferRequest; - reader.readMessage(value,proto.io.bisq.protobuffer.SignOfferRequest.deserializeBinaryFromReader); - msg.setSignOfferRequest(value); - break; - case 1002: - var value = new proto.io.bisq.protobuffer.SignOfferResponse; - reader.readMessage(value,proto.io.bisq.protobuffer.SignOfferResponse.deserializeBinaryFromReader); - msg.setSignOfferResponse(value); - break; - case 1003: - var value = new proto.io.bisq.protobuffer.InitTradeRequest; - reader.readMessage(value,proto.io.bisq.protobuffer.InitTradeRequest.deserializeBinaryFromReader); - msg.setInitTradeRequest(value); - break; - case 1004: - var value = new proto.io.bisq.protobuffer.InitMultisigRequest; - reader.readMessage(value,proto.io.bisq.protobuffer.InitMultisigRequest.deserializeBinaryFromReader); - msg.setInitMultisigRequest(value); - break; - case 1005: - var value = new proto.io.bisq.protobuffer.SignContractRequest; - reader.readMessage(value,proto.io.bisq.protobuffer.SignContractRequest.deserializeBinaryFromReader); - msg.setSignContractRequest(value); - break; - case 1006: - var value = new proto.io.bisq.protobuffer.SignContractResponse; - reader.readMessage(value,proto.io.bisq.protobuffer.SignContractResponse.deserializeBinaryFromReader); - msg.setSignContractResponse(value); - break; - case 1007: - var value = new proto.io.bisq.protobuffer.DepositRequest; - reader.readMessage(value,proto.io.bisq.protobuffer.DepositRequest.deserializeBinaryFromReader); - msg.setDepositRequest(value); - break; - case 1008: - var value = new proto.io.bisq.protobuffer.DepositResponse; - reader.readMessage(value,proto.io.bisq.protobuffer.DepositResponse.deserializeBinaryFromReader); - msg.setDepositResponse(value); - break; - case 1009: - var value = new proto.io.bisq.protobuffer.PaymentAccountPayloadRequest; - reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.deserializeBinaryFromReader); - msg.setPaymentAccountPayloadRequest(value); - break; - case 1010: - var value = new proto.io.bisq.protobuffer.UpdateMultisigRequest; - reader.readMessage(value,proto.io.bisq.protobuffer.UpdateMultisigRequest.deserializeBinaryFromReader); - msg.setUpdateMultisigRequest(value); - break; - case 1011: - var value = new proto.io.bisq.protobuffer.UpdateMultisigResponse; - reader.readMessage(value,proto.io.bisq.protobuffer.UpdateMultisigResponse.deserializeBinaryFromReader); - msg.setUpdateMultisigResponse(value); - break; - case 1012: - var value = new proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest; - reader.readMessage(value,proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.deserializeBinaryFromReader); - msg.setArbitratorPayoutTxRequest(value); - break; - case 1013: - var value = new proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse; - reader.readMessage(value,proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.deserializeBinaryFromReader); - msg.setArbitratorPayoutTxResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.NetworkEnvelope.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.NetworkEnvelope} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.NetworkEnvelope.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMessageVersion(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getPreliminaryGetDataRequest(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.PreliminaryGetDataRequest.serializeBinaryToWriter - ); - } - f = message.getGetDataResponse(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.GetDataResponse.serializeBinaryToWriter - ); - } - f = message.getGetUpdatedDataRequest(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.io.bisq.protobuffer.GetUpdatedDataRequest.serializeBinaryToWriter - ); - } - f = message.getGetPeersRequest(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.io.bisq.protobuffer.GetPeersRequest.serializeBinaryToWriter - ); - } - f = message.getGetPeersResponse(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.io.bisq.protobuffer.GetPeersResponse.serializeBinaryToWriter - ); - } - f = message.getPing(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.io.bisq.protobuffer.Ping.serializeBinaryToWriter - ); - } - f = message.getPong(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.io.bisq.protobuffer.Pong.serializeBinaryToWriter - ); - } - f = message.getOfferAvailabilityRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - proto.io.bisq.protobuffer.OfferAvailabilityRequest.serializeBinaryToWriter - ); - } - f = message.getOfferAvailabilityResponse(); - if (f != null) { - writer.writeMessage( - 10, - f, - proto.io.bisq.protobuffer.OfferAvailabilityResponse.serializeBinaryToWriter - ); - } - f = message.getRefreshOfferMessage(); - if (f != null) { - writer.writeMessage( - 11, - f, - proto.io.bisq.protobuffer.RefreshOfferMessage.serializeBinaryToWriter - ); - } - f = message.getAddDataMessage(); - if (f != null) { - writer.writeMessage( - 12, - f, - proto.io.bisq.protobuffer.AddDataMessage.serializeBinaryToWriter - ); - } - f = message.getRemoveDataMessage(); - if (f != null) { - writer.writeMessage( - 13, - f, - proto.io.bisq.protobuffer.RemoveDataMessage.serializeBinaryToWriter - ); - } - f = message.getRemoveMailboxDataMessage(); - if (f != null) { - writer.writeMessage( - 14, - f, - proto.io.bisq.protobuffer.RemoveMailboxDataMessage.serializeBinaryToWriter - ); - } - f = message.getCloseConnectionMessage(); - if (f != null) { - writer.writeMessage( - 15, - f, - proto.io.bisq.protobuffer.CloseConnectionMessage.serializeBinaryToWriter - ); - } - f = message.getPrefixedSealedAndSignedMessage(); - if (f != null) { - writer.writeMessage( - 16, - f, - proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.serializeBinaryToWriter - ); - } - f = message.getInputsForDepositTxRequest(); - if (f != null) { - writer.writeMessage( - 17, - f, - proto.io.bisq.protobuffer.InputsForDepositTxRequest.serializeBinaryToWriter - ); - } - f = message.getInputsForDepositTxResponse(); - if (f != null) { - writer.writeMessage( - 18, - f, - proto.io.bisq.protobuffer.InputsForDepositTxResponse.serializeBinaryToWriter - ); - } - f = message.getDepositTxMessage(); - if (f != null) { - writer.writeMessage( - 19, - f, - proto.io.bisq.protobuffer.DepositTxMessage.serializeBinaryToWriter - ); - } - f = message.getCounterCurrencyTransferStartedMessage(); - if (f != null) { - writer.writeMessage( - 20, - f, - proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.serializeBinaryToWriter - ); - } - f = message.getPayoutTxPublishedMessage(); - if (f != null) { - writer.writeMessage( - 21, - f, - proto.io.bisq.protobuffer.PayoutTxPublishedMessage.serializeBinaryToWriter - ); - } - f = message.getOpenNewDisputeMessage(); - if (f != null) { - writer.writeMessage( - 22, - f, - proto.io.bisq.protobuffer.OpenNewDisputeMessage.serializeBinaryToWriter - ); - } - f = message.getPeerOpenedDisputeMessage(); - if (f != null) { - writer.writeMessage( - 23, - f, - proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.serializeBinaryToWriter - ); - } - f = message.getChatMessage(); - if (f != null) { - writer.writeMessage( - 24, - f, - proto.io.bisq.protobuffer.ChatMessage.serializeBinaryToWriter - ); - } - f = message.getDisputeResultMessage(); - if (f != null) { - writer.writeMessage( - 25, - f, - proto.io.bisq.protobuffer.DisputeResultMessage.serializeBinaryToWriter - ); - } - f = message.getPeerPublishedDisputePayoutTxMessage(); - if (f != null) { - writer.writeMessage( - 26, - f, - proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.serializeBinaryToWriter - ); - } - f = message.getPrivateNotificationMessage(); - if (f != null) { - writer.writeMessage( - 27, - f, - proto.io.bisq.protobuffer.PrivateNotificationMessage.serializeBinaryToWriter - ); - } - f = message.getAddPersistableNetworkPayloadMessage(); - if (f != null) { - writer.writeMessage( - 28, - f, - proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage.serializeBinaryToWriter - ); - } - f = message.getAckMessage(); - if (f != null) { - writer.writeMessage( - 29, - f, - proto.io.bisq.protobuffer.AckMessage.serializeBinaryToWriter - ); - } - f = message.getBundleOfEnvelopes(); - if (f != null) { - writer.writeMessage( - 30, - f, - proto.io.bisq.protobuffer.BundleOfEnvelopes.serializeBinaryToWriter - ); - } - f = message.getMediatedPayoutTxSignatureMessage(); - if (f != null) { - writer.writeMessage( - 31, - f, - proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.serializeBinaryToWriter - ); - } - f = message.getMediatedPayoutTxPublishedMessage(); - if (f != null) { - writer.writeMessage( - 32, - f, - proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.serializeBinaryToWriter - ); - } - f = message.getDelayedPayoutTxSignatureRequest(); - if (f != null) { - writer.writeMessage( - 33, - f, - proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.serializeBinaryToWriter - ); - } - f = message.getDelayedPayoutTxSignatureResponse(); - if (f != null) { - writer.writeMessage( - 34, - f, - proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.serializeBinaryToWriter - ); - } - f = message.getDepositTxAndDelayedPayoutTxMessage(); - if (f != null) { - writer.writeMessage( - 35, - f, - proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.serializeBinaryToWriter - ); - } - f = message.getPeerPublishedDelayedPayoutTxMessage(); - if (f != null) { - writer.writeMessage( - 36, - f, - proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.serializeBinaryToWriter - ); - } - f = message.getRefreshTradeStateRequest(); - if (f != null) { - writer.writeMessage( - 37, - f, - proto.io.bisq.protobuffer.RefreshTradeStateRequest.serializeBinaryToWriter - ); - } - f = message.getTraderSignedWitnessMessage(); - if (f != null) { - writer.writeMessage( - 38, - f, - proto.io.bisq.protobuffer.TraderSignedWitnessMessage.serializeBinaryToWriter - ); - } - f = message.getGetInventoryRequest(); - if (f != null) { - writer.writeMessage( - 39, - f, - proto.io.bisq.protobuffer.GetInventoryRequest.serializeBinaryToWriter - ); - } - f = message.getGetInventoryResponse(); - if (f != null) { - writer.writeMessage( - 40, - f, - proto.io.bisq.protobuffer.GetInventoryResponse.serializeBinaryToWriter - ); - } - f = message.getSignOfferRequest(); - if (f != null) { - writer.writeMessage( - 1001, - f, - proto.io.bisq.protobuffer.SignOfferRequest.serializeBinaryToWriter - ); - } - f = message.getSignOfferResponse(); - if (f != null) { - writer.writeMessage( - 1002, - f, - proto.io.bisq.protobuffer.SignOfferResponse.serializeBinaryToWriter - ); - } - f = message.getInitTradeRequest(); - if (f != null) { - writer.writeMessage( - 1003, - f, - proto.io.bisq.protobuffer.InitTradeRequest.serializeBinaryToWriter - ); - } - f = message.getInitMultisigRequest(); - if (f != null) { - writer.writeMessage( - 1004, - f, - proto.io.bisq.protobuffer.InitMultisigRequest.serializeBinaryToWriter - ); - } - f = message.getSignContractRequest(); - if (f != null) { - writer.writeMessage( - 1005, - f, - proto.io.bisq.protobuffer.SignContractRequest.serializeBinaryToWriter - ); - } - f = message.getSignContractResponse(); - if (f != null) { - writer.writeMessage( - 1006, - f, - proto.io.bisq.protobuffer.SignContractResponse.serializeBinaryToWriter - ); - } - f = message.getDepositRequest(); - if (f != null) { - writer.writeMessage( - 1007, - f, - proto.io.bisq.protobuffer.DepositRequest.serializeBinaryToWriter - ); - } - f = message.getDepositResponse(); - if (f != null) { - writer.writeMessage( - 1008, - f, - proto.io.bisq.protobuffer.DepositResponse.serializeBinaryToWriter - ); - } - f = message.getPaymentAccountPayloadRequest(); - if (f != null) { - writer.writeMessage( - 1009, - f, - proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.serializeBinaryToWriter - ); - } - f = message.getUpdateMultisigRequest(); - if (f != null) { - writer.writeMessage( - 1010, - f, - proto.io.bisq.protobuffer.UpdateMultisigRequest.serializeBinaryToWriter - ); - } - f = message.getUpdateMultisigResponse(); - if (f != null) { - writer.writeMessage( - 1011, - f, - proto.io.bisq.protobuffer.UpdateMultisigResponse.serializeBinaryToWriter - ); - } - f = message.getArbitratorPayoutTxRequest(); - if (f != null) { - writer.writeMessage( - 1012, - f, - proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.serializeBinaryToWriter - ); - } - f = message.getArbitratorPayoutTxResponse(); - if (f != null) { - writer.writeMessage( - 1013, - f, - proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 message_version = 1; - * @return {number} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getMessageVersion = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setMessageVersion = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional PreliminaryGetDataRequest preliminary_get_data_request = 2; - * @return {?proto.io.bisq.protobuffer.PreliminaryGetDataRequest} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getPreliminaryGetDataRequest = function() { - return /** @type{?proto.io.bisq.protobuffer.PreliminaryGetDataRequest} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PreliminaryGetDataRequest, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PreliminaryGetDataRequest|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setPreliminaryGetDataRequest = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, 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.clearPreliminaryGetDataRequest = function() { - return this.setPreliminaryGetDataRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasPreliminaryGetDataRequest = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional GetDataResponse get_data_response = 3; - * @return {?proto.io.bisq.protobuffer.GetDataResponse} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getGetDataResponse = function() { - return /** @type{?proto.io.bisq.protobuffer.GetDataResponse} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.GetDataResponse, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.GetDataResponse|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setGetDataResponse = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, 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.clearGetDataResponse = function() { - return this.setGetDataResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasGetDataResponse = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional GetUpdatedDataRequest get_updated_data_request = 4; - * @return {?proto.io.bisq.protobuffer.GetUpdatedDataRequest} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getGetUpdatedDataRequest = function() { - return /** @type{?proto.io.bisq.protobuffer.GetUpdatedDataRequest} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.GetUpdatedDataRequest, 4)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.GetUpdatedDataRequest|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setGetUpdatedDataRequest = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, 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.clearGetUpdatedDataRequest = function() { - return this.setGetUpdatedDataRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasGetUpdatedDataRequest = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional GetPeersRequest get_peers_request = 5; - * @return {?proto.io.bisq.protobuffer.GetPeersRequest} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getGetPeersRequest = function() { - return /** @type{?proto.io.bisq.protobuffer.GetPeersRequest} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.GetPeersRequest, 5)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.GetPeersRequest|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setGetPeersRequest = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, 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.clearGetPeersRequest = function() { - return this.setGetPeersRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasGetPeersRequest = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional GetPeersResponse get_peers_response = 6; - * @return {?proto.io.bisq.protobuffer.GetPeersResponse} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getGetPeersResponse = function() { - return /** @type{?proto.io.bisq.protobuffer.GetPeersResponse} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.GetPeersResponse, 6)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.GetPeersResponse|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setGetPeersResponse = function(value) { - return jspb.Message.setOneofWrapperField(this, 6, 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.clearGetPeersResponse = function() { - return this.setGetPeersResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasGetPeersResponse = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional Ping ping = 7; - * @return {?proto.io.bisq.protobuffer.Ping} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getPing = function() { - return /** @type{?proto.io.bisq.protobuffer.Ping} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Ping, 7)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Ping|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setPing = function(value) { - return jspb.Message.setOneofWrapperField(this, 7, 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.clearPing = function() { - return this.setPing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasPing = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional Pong pong = 8; - * @return {?proto.io.bisq.protobuffer.Pong} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getPong = function() { - return /** @type{?proto.io.bisq.protobuffer.Pong} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Pong, 8)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Pong|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setPong = function(value) { - return jspb.Message.setOneofWrapperField(this, 8, 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.clearPong = function() { - return this.setPong(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasPong = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional OfferAvailabilityRequest offer_availability_request = 9; - * @return {?proto.io.bisq.protobuffer.OfferAvailabilityRequest} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getOfferAvailabilityRequest = function() { - return /** @type{?proto.io.bisq.protobuffer.OfferAvailabilityRequest} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.OfferAvailabilityRequest, 9)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.OfferAvailabilityRequest|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setOfferAvailabilityRequest = function(value) { - return jspb.Message.setOneofWrapperField(this, 9, 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.clearOfferAvailabilityRequest = function() { - return this.setOfferAvailabilityRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasOfferAvailabilityRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional OfferAvailabilityResponse offer_availability_response = 10; - * @return {?proto.io.bisq.protobuffer.OfferAvailabilityResponse} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getOfferAvailabilityResponse = function() { - return /** @type{?proto.io.bisq.protobuffer.OfferAvailabilityResponse} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.OfferAvailabilityResponse, 10)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.OfferAvailabilityResponse|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setOfferAvailabilityResponse = function(value) { - return jspb.Message.setOneofWrapperField(this, 10, 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.clearOfferAvailabilityResponse = function() { - return this.setOfferAvailabilityResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasOfferAvailabilityResponse = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional RefreshOfferMessage refresh_offer_message = 11; - * @return {?proto.io.bisq.protobuffer.RefreshOfferMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getRefreshOfferMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.RefreshOfferMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.RefreshOfferMessage, 11)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.RefreshOfferMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setRefreshOfferMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 11, 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.clearRefreshOfferMessage = function() { - return this.setRefreshOfferMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasRefreshOfferMessage = function() { - return jspb.Message.getField(this, 11) != null; -}; - - -/** - * optional AddDataMessage add_data_message = 12; - * @return {?proto.io.bisq.protobuffer.AddDataMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getAddDataMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.AddDataMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.AddDataMessage, 12)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.AddDataMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setAddDataMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 12, 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.clearAddDataMessage = function() { - return this.setAddDataMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasAddDataMessage = function() { - return jspb.Message.getField(this, 12) != null; -}; - - -/** - * optional RemoveDataMessage remove_data_message = 13; - * @return {?proto.io.bisq.protobuffer.RemoveDataMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getRemoveDataMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.RemoveDataMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.RemoveDataMessage, 13)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.RemoveDataMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setRemoveDataMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 13, 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.clearRemoveDataMessage = function() { - return this.setRemoveDataMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasRemoveDataMessage = function() { - return jspb.Message.getField(this, 13) != null; -}; - - -/** - * optional RemoveMailboxDataMessage remove_mailbox_data_message = 14; - * @return {?proto.io.bisq.protobuffer.RemoveMailboxDataMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getRemoveMailboxDataMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.RemoveMailboxDataMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.RemoveMailboxDataMessage, 14)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.RemoveMailboxDataMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setRemoveMailboxDataMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 14, 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.clearRemoveMailboxDataMessage = function() { - return this.setRemoveMailboxDataMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasRemoveMailboxDataMessage = function() { - return jspb.Message.getField(this, 14) != null; -}; - - -/** - * optional CloseConnectionMessage close_connection_message = 15; - * @return {?proto.io.bisq.protobuffer.CloseConnectionMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getCloseConnectionMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.CloseConnectionMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.CloseConnectionMessage, 15)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.CloseConnectionMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setCloseConnectionMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 15, 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.clearCloseConnectionMessage = function() { - return this.setCloseConnectionMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasCloseConnectionMessage = function() { - return jspb.Message.getField(this, 15) != null; -}; - - -/** - * optional PrefixedSealedAndSignedMessage prefixed_sealed_and_signed_message = 16; - * @return {?proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getPrefixedSealedAndSignedMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage, 16)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setPrefixedSealedAndSignedMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 16, 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.clearPrefixedSealedAndSignedMessage = function() { - return this.setPrefixedSealedAndSignedMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasPrefixedSealedAndSignedMessage = function() { - return jspb.Message.getField(this, 16) != null; -}; - - -/** - * optional InputsForDepositTxRequest inputs_for_deposit_tx_request = 17; - * @return {?proto.io.bisq.protobuffer.InputsForDepositTxRequest} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getInputsForDepositTxRequest = function() { - return /** @type{?proto.io.bisq.protobuffer.InputsForDepositTxRequest} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.InputsForDepositTxRequest, 17)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.InputsForDepositTxRequest|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setInputsForDepositTxRequest = function(value) { - return jspb.Message.setOneofWrapperField(this, 17, 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.clearInputsForDepositTxRequest = function() { - return this.setInputsForDepositTxRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasInputsForDepositTxRequest = function() { - return jspb.Message.getField(this, 17) != null; -}; - - -/** - * optional InputsForDepositTxResponse inputs_for_deposit_tx_response = 18; - * @return {?proto.io.bisq.protobuffer.InputsForDepositTxResponse} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getInputsForDepositTxResponse = function() { - return /** @type{?proto.io.bisq.protobuffer.InputsForDepositTxResponse} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.InputsForDepositTxResponse, 18)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.InputsForDepositTxResponse|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setInputsForDepositTxResponse = function(value) { - return jspb.Message.setOneofWrapperField(this, 18, 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.clearInputsForDepositTxResponse = function() { - return this.setInputsForDepositTxResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasInputsForDepositTxResponse = function() { - return jspb.Message.getField(this, 18) != null; -}; - - -/** - * optional DepositTxMessage deposit_tx_message = 19; - * @return {?proto.io.bisq.protobuffer.DepositTxMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getDepositTxMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.DepositTxMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.DepositTxMessage, 19)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.DepositTxMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setDepositTxMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 19, 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.clearDepositTxMessage = function() { - return this.setDepositTxMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasDepositTxMessage = function() { - return jspb.Message.getField(this, 19) != null; -}; - - -/** - * optional CounterCurrencyTransferStartedMessage counter_currency_transfer_started_message = 20; - * @return {?proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getCounterCurrencyTransferStartedMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage, 20)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setCounterCurrencyTransferStartedMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 20, 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.clearCounterCurrencyTransferStartedMessage = function() { - return this.setCounterCurrencyTransferStartedMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasCounterCurrencyTransferStartedMessage = function() { - return jspb.Message.getField(this, 20) != null; -}; - - -/** - * optional PayoutTxPublishedMessage payout_tx_published_message = 21; - * @return {?proto.io.bisq.protobuffer.PayoutTxPublishedMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getPayoutTxPublishedMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.PayoutTxPublishedMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PayoutTxPublishedMessage, 21)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PayoutTxPublishedMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setPayoutTxPublishedMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 21, 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.clearPayoutTxPublishedMessage = function() { - return this.setPayoutTxPublishedMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasPayoutTxPublishedMessage = function() { - return jspb.Message.getField(this, 21) != null; -}; - - -/** - * optional OpenNewDisputeMessage open_new_dispute_message = 22; - * @return {?proto.io.bisq.protobuffer.OpenNewDisputeMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getOpenNewDisputeMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.OpenNewDisputeMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.OpenNewDisputeMessage, 22)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.OpenNewDisputeMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setOpenNewDisputeMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 22, 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.clearOpenNewDisputeMessage = function() { - return this.setOpenNewDisputeMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasOpenNewDisputeMessage = function() { - return jspb.Message.getField(this, 22) != null; -}; - - -/** - * optional PeerOpenedDisputeMessage peer_opened_dispute_message = 23; - * @return {?proto.io.bisq.protobuffer.PeerOpenedDisputeMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getPeerOpenedDisputeMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.PeerOpenedDisputeMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PeerOpenedDisputeMessage, 23)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PeerOpenedDisputeMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setPeerOpenedDisputeMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 23, 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.clearPeerOpenedDisputeMessage = function() { - return this.setPeerOpenedDisputeMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasPeerOpenedDisputeMessage = function() { - return jspb.Message.getField(this, 23) != null; -}; - - -/** - * optional ChatMessage chat_message = 24; - * @return {?proto.io.bisq.protobuffer.ChatMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getChatMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.ChatMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ChatMessage, 24)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.ChatMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setChatMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 24, 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.clearChatMessage = function() { - return this.setChatMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasChatMessage = function() { - return jspb.Message.getField(this, 24) != null; -}; - - -/** - * optional DisputeResultMessage dispute_result_message = 25; - * @return {?proto.io.bisq.protobuffer.DisputeResultMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getDisputeResultMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.DisputeResultMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.DisputeResultMessage, 25)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.DisputeResultMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setDisputeResultMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 25, 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.clearDisputeResultMessage = function() { - return this.setDisputeResultMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasDisputeResultMessage = function() { - return jspb.Message.getField(this, 25) != null; -}; - - -/** - * optional PeerPublishedDisputePayoutTxMessage peer_published_dispute_payout_tx_message = 26; - * @return {?proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getPeerPublishedDisputePayoutTxMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage, 26)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setPeerPublishedDisputePayoutTxMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 26, 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.clearPeerPublishedDisputePayoutTxMessage = function() { - return this.setPeerPublishedDisputePayoutTxMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasPeerPublishedDisputePayoutTxMessage = function() { - return jspb.Message.getField(this, 26) != null; -}; - - -/** - * optional PrivateNotificationMessage private_notification_message = 27; - * @return {?proto.io.bisq.protobuffer.PrivateNotificationMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getPrivateNotificationMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.PrivateNotificationMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PrivateNotificationMessage, 27)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PrivateNotificationMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setPrivateNotificationMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 27, 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.clearPrivateNotificationMessage = function() { - return this.setPrivateNotificationMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasPrivateNotificationMessage = function() { - return jspb.Message.getField(this, 27) != null; -}; - - -/** - * optional AddPersistableNetworkPayloadMessage add_persistable_network_payload_message = 28; - * @return {?proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getAddPersistableNetworkPayloadMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage, 28)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setAddPersistableNetworkPayloadMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 28, 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.clearAddPersistableNetworkPayloadMessage = function() { - return this.setAddPersistableNetworkPayloadMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasAddPersistableNetworkPayloadMessage = function() { - return jspb.Message.getField(this, 28) != null; -}; - - -/** - * optional AckMessage ack_message = 29; - * @return {?proto.io.bisq.protobuffer.AckMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getAckMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.AckMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.AckMessage, 29)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.AckMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setAckMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 29, 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.clearAckMessage = function() { - return this.setAckMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasAckMessage = function() { - return jspb.Message.getField(this, 29) != null; -}; - - -/** - * optional BundleOfEnvelopes bundle_of_envelopes = 30; - * @return {?proto.io.bisq.protobuffer.BundleOfEnvelopes} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getBundleOfEnvelopes = function() { - return /** @type{?proto.io.bisq.protobuffer.BundleOfEnvelopes} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.BundleOfEnvelopes, 30)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.BundleOfEnvelopes|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setBundleOfEnvelopes = function(value) { - return jspb.Message.setOneofWrapperField(this, 30, 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.clearBundleOfEnvelopes = function() { - return this.setBundleOfEnvelopes(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasBundleOfEnvelopes = function() { - return jspb.Message.getField(this, 30) != null; -}; - - -/** - * optional MediatedPayoutTxSignatureMessage mediated_payout_tx_signature_message = 31; - * @return {?proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getMediatedPayoutTxSignatureMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage, 31)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setMediatedPayoutTxSignatureMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 31, 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.clearMediatedPayoutTxSignatureMessage = function() { - return this.setMediatedPayoutTxSignatureMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasMediatedPayoutTxSignatureMessage = function() { - return jspb.Message.getField(this, 31) != null; -}; - - -/** - * optional MediatedPayoutTxPublishedMessage mediated_payout_tx_published_message = 32; - * @return {?proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getMediatedPayoutTxPublishedMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage, 32)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setMediatedPayoutTxPublishedMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 32, 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.clearMediatedPayoutTxPublishedMessage = function() { - return this.setMediatedPayoutTxPublishedMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasMediatedPayoutTxPublishedMessage = function() { - return jspb.Message.getField(this, 32) != null; -}; - - -/** - * optional DelayedPayoutTxSignatureRequest delayed_payout_tx_signature_request = 33; - * @return {?proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getDelayedPayoutTxSignatureRequest = function() { - return /** @type{?proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest, 33)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setDelayedPayoutTxSignatureRequest = function(value) { - return jspb.Message.setOneofWrapperField(this, 33, 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.clearDelayedPayoutTxSignatureRequest = function() { - return this.setDelayedPayoutTxSignatureRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasDelayedPayoutTxSignatureRequest = function() { - return jspb.Message.getField(this, 33) != null; -}; - - -/** - * optional DelayedPayoutTxSignatureResponse delayed_payout_tx_signature_response = 34; - * @return {?proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getDelayedPayoutTxSignatureResponse = function() { - return /** @type{?proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse, 34)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setDelayedPayoutTxSignatureResponse = function(value) { - return jspb.Message.setOneofWrapperField(this, 34, 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.clearDelayedPayoutTxSignatureResponse = function() { - return this.setDelayedPayoutTxSignatureResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasDelayedPayoutTxSignatureResponse = function() { - return jspb.Message.getField(this, 34) != null; -}; - - -/** - * optional DepositTxAndDelayedPayoutTxMessage deposit_tx_and_delayed_payout_tx_message = 35; - * @return {?proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getDepositTxAndDelayedPayoutTxMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage, 35)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setDepositTxAndDelayedPayoutTxMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 35, 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.clearDepositTxAndDelayedPayoutTxMessage = function() { - return this.setDepositTxAndDelayedPayoutTxMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasDepositTxAndDelayedPayoutTxMessage = function() { - return jspb.Message.getField(this, 35) != null; -}; - - -/** - * optional PeerPublishedDelayedPayoutTxMessage peer_published_delayed_payout_tx_message = 36; - * @return {?proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getPeerPublishedDelayedPayoutTxMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage, 36)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setPeerPublishedDelayedPayoutTxMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 36, 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.clearPeerPublishedDelayedPayoutTxMessage = function() { - return this.setPeerPublishedDelayedPayoutTxMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasPeerPublishedDelayedPayoutTxMessage = function() { - return jspb.Message.getField(this, 36) != null; -}; - - -/** - * optional RefreshTradeStateRequest refresh_trade_state_request = 37; - * @return {?proto.io.bisq.protobuffer.RefreshTradeStateRequest} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getRefreshTradeStateRequest = function() { - return /** @type{?proto.io.bisq.protobuffer.RefreshTradeStateRequest} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.RefreshTradeStateRequest, 37)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.RefreshTradeStateRequest|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setRefreshTradeStateRequest = function(value) { - return jspb.Message.setOneofWrapperField(this, 37, 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.clearRefreshTradeStateRequest = function() { - return this.setRefreshTradeStateRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasRefreshTradeStateRequest = function() { - return jspb.Message.getField(this, 37) != null; -}; - - -/** - * optional TraderSignedWitnessMessage trader_signed_witness_message = 38; - * @return {?proto.io.bisq.protobuffer.TraderSignedWitnessMessage} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getTraderSignedWitnessMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.TraderSignedWitnessMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TraderSignedWitnessMessage, 38)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.TraderSignedWitnessMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setTraderSignedWitnessMessage = function(value) { - return jspb.Message.setOneofWrapperField(this, 38, 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.clearTraderSignedWitnessMessage = function() { - return this.setTraderSignedWitnessMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasTraderSignedWitnessMessage = function() { - return jspb.Message.getField(this, 38) != null; -}; - - -/** - * optional GetInventoryRequest get_inventory_request = 39; - * @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, 39)); -}; - - -/** - * @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, 39, 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, 39) != null; -}; - - -/** - * optional GetInventoryResponse get_inventory_response = 40; - * @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, 40)); -}; - - -/** - * @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, 40, 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, 40) != null; -}; - - -/** - * optional SignOfferRequest sign_offer_request = 1001; - * @return {?proto.io.bisq.protobuffer.SignOfferRequest} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getSignOfferRequest = function() { - return /** @type{?proto.io.bisq.protobuffer.SignOfferRequest} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.SignOfferRequest, 1001)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.SignOfferRequest|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setSignOfferRequest = function(value) { - return jspb.Message.setOneofWrapperField(this, 1001, 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.clearSignOfferRequest = function() { - return this.setSignOfferRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasSignOfferRequest = function() { - return jspb.Message.getField(this, 1001) != null; -}; - - -/** - * optional SignOfferResponse sign_offer_response = 1002; - * @return {?proto.io.bisq.protobuffer.SignOfferResponse} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getSignOfferResponse = function() { - return /** @type{?proto.io.bisq.protobuffer.SignOfferResponse} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.SignOfferResponse, 1002)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.SignOfferResponse|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setSignOfferResponse = function(value) { - return jspb.Message.setOneofWrapperField(this, 1002, 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.clearSignOfferResponse = function() { - return this.setSignOfferResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasSignOfferResponse = function() { - return jspb.Message.getField(this, 1002) != null; -}; - - -/** - * optional InitTradeRequest init_trade_request = 1003; - * @return {?proto.io.bisq.protobuffer.InitTradeRequest} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getInitTradeRequest = function() { - return /** @type{?proto.io.bisq.protobuffer.InitTradeRequest} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.InitTradeRequest, 1003)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.InitTradeRequest|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setInitTradeRequest = function(value) { - return jspb.Message.setOneofWrapperField(this, 1003, 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.clearInitTradeRequest = function() { - return this.setInitTradeRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasInitTradeRequest = function() { - return jspb.Message.getField(this, 1003) != null; -}; - - -/** - * optional InitMultisigRequest init_multisig_request = 1004; - * @return {?proto.io.bisq.protobuffer.InitMultisigRequest} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getInitMultisigRequest = function() { - return /** @type{?proto.io.bisq.protobuffer.InitMultisigRequest} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.InitMultisigRequest, 1004)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.InitMultisigRequest|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setInitMultisigRequest = function(value) { - return jspb.Message.setOneofWrapperField(this, 1004, 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.clearInitMultisigRequest = function() { - return this.setInitMultisigRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasInitMultisigRequest = function() { - return jspb.Message.getField(this, 1004) != null; -}; - - -/** - * optional SignContractRequest sign_contract_request = 1005; - * @return {?proto.io.bisq.protobuffer.SignContractRequest} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getSignContractRequest = function() { - return /** @type{?proto.io.bisq.protobuffer.SignContractRequest} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.SignContractRequest, 1005)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.SignContractRequest|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setSignContractRequest = function(value) { - return jspb.Message.setOneofWrapperField(this, 1005, 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.clearSignContractRequest = function() { - return this.setSignContractRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasSignContractRequest = function() { - return jspb.Message.getField(this, 1005) != null; -}; - - -/** - * optional SignContractResponse sign_contract_response = 1006; - * @return {?proto.io.bisq.protobuffer.SignContractResponse} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getSignContractResponse = function() { - return /** @type{?proto.io.bisq.protobuffer.SignContractResponse} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.SignContractResponse, 1006)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.SignContractResponse|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setSignContractResponse = function(value) { - return jspb.Message.setOneofWrapperField(this, 1006, 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.clearSignContractResponse = function() { - return this.setSignContractResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasSignContractResponse = function() { - return jspb.Message.getField(this, 1006) != null; -}; - - -/** - * optional DepositRequest deposit_request = 1007; - * @return {?proto.io.bisq.protobuffer.DepositRequest} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getDepositRequest = function() { - return /** @type{?proto.io.bisq.protobuffer.DepositRequest} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.DepositRequest, 1007)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.DepositRequest|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setDepositRequest = function(value) { - return jspb.Message.setOneofWrapperField(this, 1007, 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.clearDepositRequest = function() { - return this.setDepositRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasDepositRequest = function() { - return jspb.Message.getField(this, 1007) != null; -}; - - -/** - * optional DepositResponse deposit_response = 1008; - * @return {?proto.io.bisq.protobuffer.DepositResponse} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getDepositResponse = function() { - return /** @type{?proto.io.bisq.protobuffer.DepositResponse} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.DepositResponse, 1008)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.DepositResponse|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setDepositResponse = function(value) { - return jspb.Message.setOneofWrapperField(this, 1008, 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.clearDepositResponse = function() { - return this.setDepositResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasDepositResponse = function() { - return jspb.Message.getField(this, 1008) != null; -}; - - -/** - * optional PaymentAccountPayloadRequest payment_account_payload_request = 1009; - * @return {?proto.io.bisq.protobuffer.PaymentAccountPayloadRequest} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getPaymentAccountPayloadRequest = function() { - return /** @type{?proto.io.bisq.protobuffer.PaymentAccountPayloadRequest} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PaymentAccountPayloadRequest, 1009)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PaymentAccountPayloadRequest|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setPaymentAccountPayloadRequest = function(value) { - return jspb.Message.setOneofWrapperField(this, 1009, 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.clearPaymentAccountPayloadRequest = function() { - return this.setPaymentAccountPayloadRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasPaymentAccountPayloadRequest = function() { - return jspb.Message.getField(this, 1009) != null; -}; - - -/** - * optional UpdateMultisigRequest update_multisig_request = 1010; - * @return {?proto.io.bisq.protobuffer.UpdateMultisigRequest} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getUpdateMultisigRequest = function() { - return /** @type{?proto.io.bisq.protobuffer.UpdateMultisigRequest} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.UpdateMultisigRequest, 1010)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.UpdateMultisigRequest|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setUpdateMultisigRequest = function(value) { - return jspb.Message.setOneofWrapperField(this, 1010, 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.clearUpdateMultisigRequest = function() { - return this.setUpdateMultisigRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasUpdateMultisigRequest = function() { - return jspb.Message.getField(this, 1010) != null; -}; - - -/** - * optional UpdateMultisigResponse update_multisig_response = 1011; - * @return {?proto.io.bisq.protobuffer.UpdateMultisigResponse} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getUpdateMultisigResponse = function() { - return /** @type{?proto.io.bisq.protobuffer.UpdateMultisigResponse} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.UpdateMultisigResponse, 1011)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.UpdateMultisigResponse|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setUpdateMultisigResponse = function(value) { - return jspb.Message.setOneofWrapperField(this, 1011, 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.clearUpdateMultisigResponse = function() { - return this.setUpdateMultisigResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasUpdateMultisigResponse = function() { - return jspb.Message.getField(this, 1011) != null; -}; - - -/** - * optional ArbitratorPayoutTxRequest arbitrator_payout_tx_request = 1012; - * @return {?proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getArbitratorPayoutTxRequest = function() { - return /** @type{?proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest, 1012)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setArbitratorPayoutTxRequest = function(value) { - return jspb.Message.setOneofWrapperField(this, 1012, 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.clearArbitratorPayoutTxRequest = function() { - return this.setArbitratorPayoutTxRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasArbitratorPayoutTxRequest = function() { - return jspb.Message.getField(this, 1012) != null; -}; - - -/** - * optional ArbitratorPayoutTxResponse arbitrator_payout_tx_response = 1013; - * @return {?proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getArbitratorPayoutTxResponse = function() { - return /** @type{?proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse, 1013)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse|undefined} value - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this -*/ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setArbitratorPayoutTxResponse = function(value) { - return jspb.Message.setOneofWrapperField(this, 1013, 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.clearArbitratorPayoutTxResponse = function() { - return this.setArbitratorPayoutTxResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasArbitratorPayoutTxResponse = function() { - return jspb.Message.getField(this, 1013) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.BundleOfEnvelopes.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.BundleOfEnvelopes.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.BundleOfEnvelopes.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.BundleOfEnvelopes} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.BundleOfEnvelopes.toObject = function(includeInstance, msg) { - var f, obj = { - envelopesList: jspb.Message.toObjectList(msg.getEnvelopesList(), - proto.io.bisq.protobuffer.NetworkEnvelope.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.BundleOfEnvelopes} - */ -proto.io.bisq.protobuffer.BundleOfEnvelopes.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.BundleOfEnvelopes; - return proto.io.bisq.protobuffer.BundleOfEnvelopes.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.BundleOfEnvelopes} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.BundleOfEnvelopes} - */ -proto.io.bisq.protobuffer.BundleOfEnvelopes.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.addEnvelopes(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.BundleOfEnvelopes.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.BundleOfEnvelopes.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.BundleOfEnvelopes} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.BundleOfEnvelopes.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEnvelopesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.io.bisq.protobuffer.NetworkEnvelope.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated NetworkEnvelope envelopes = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.BundleOfEnvelopes.prototype.getEnvelopesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.NetworkEnvelope, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.BundleOfEnvelopes} returns this -*/ -proto.io.bisq.protobuffer.BundleOfEnvelopes.prototype.setEnvelopesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.NetworkEnvelope=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} - */ -proto.io.bisq.protobuffer.BundleOfEnvelopes.prototype.addEnvelopes = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.NetworkEnvelope, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.BundleOfEnvelopes} returns this - */ -proto.io.bisq.protobuffer.BundleOfEnvelopes.prototype.clearEnvelopesList = function() { - return this.setEnvelopesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.PreliminaryGetDataRequest.repeatedFields_ = [2,3]; - - - -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.PreliminaryGetDataRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PreliminaryGetDataRequest.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.PreliminaryGetDataRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PreliminaryGetDataRequest.toObject = function(includeInstance, msg) { - var f, obj = { - nonce: jspb.Message.getFieldWithDefault(msg, 21, 0), - excludedKeysList: msg.getExcludedKeysList_asB64(), - supportedCapabilitiesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - version: 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.PreliminaryGetDataRequest} - */ -proto.io.bisq.protobuffer.PreliminaryGetDataRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PreliminaryGetDataRequest; - return proto.io.bisq.protobuffer.PreliminaryGetDataRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PreliminaryGetDataRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PreliminaryGetDataRequest} - */ -proto.io.bisq.protobuffer.PreliminaryGetDataRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 21: - var value = /** @type {number} */ (reader.readInt32()); - msg.setNonce(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.addExcludedKeys(value); - break; - case 3: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); - for (var i = 0; i < values.length; i++) { - msg.addSupportedCapabilities(values[i]); - } - break; - case 4: - 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.PreliminaryGetDataRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PreliminaryGetDataRequest.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.PreliminaryGetDataRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PreliminaryGetDataRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNonce(); - if (f !== 0) { - writer.writeInt32( - 21, - f - ); - } - f = message.getExcludedKeysList_asU8(); - if (f.length > 0) { - writer.writeRepeatedBytes( - 2, - f - ); - } - f = message.getSupportedCapabilitiesList(); - if (f.length > 0) { - writer.writePackedInt32( - 3, - f - ); - } - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional int32 nonce = 21; - * @return {number} - */ -proto.io.bisq.protobuffer.PreliminaryGetDataRequest.prototype.getNonce = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.PreliminaryGetDataRequest} returns this - */ -proto.io.bisq.protobuffer.PreliminaryGetDataRequest.prototype.setNonce = function(value) { - return jspb.Message.setProto3IntField(this, 21, value); -}; - - -/** - * repeated bytes excluded_keys = 2; - * @return {!(Array|Array)} - */ -proto.io.bisq.protobuffer.PreliminaryGetDataRequest.prototype.getExcludedKeysList = function() { - return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * repeated bytes excluded_keys = 2; - * This is a type-conversion wrapper around `getExcludedKeysList()` - * @return {!Array} - */ -proto.io.bisq.protobuffer.PreliminaryGetDataRequest.prototype.getExcludedKeysList_asB64 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsB64( - this.getExcludedKeysList())); -}; - - -/** - * repeated bytes excluded_keys = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getExcludedKeysList()` - * @return {!Array} - */ -proto.io.bisq.protobuffer.PreliminaryGetDataRequest.prototype.getExcludedKeysList_asU8 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsU8( - this.getExcludedKeysList())); -}; - - -/** - * @param {!(Array|Array)} value - * @return {!proto.io.bisq.protobuffer.PreliminaryGetDataRequest} returns this - */ -proto.io.bisq.protobuffer.PreliminaryGetDataRequest.prototype.setExcludedKeysList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.PreliminaryGetDataRequest} returns this - */ -proto.io.bisq.protobuffer.PreliminaryGetDataRequest.prototype.addExcludedKeys = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.PreliminaryGetDataRequest} returns this - */ -proto.io.bisq.protobuffer.PreliminaryGetDataRequest.prototype.clearExcludedKeysList = function() { - return this.setExcludedKeysList([]); -}; - - -/** - * repeated int32 supported_capabilities = 3; - * @return {!Array} - */ -proto.io.bisq.protobuffer.PreliminaryGetDataRequest.prototype.getSupportedCapabilitiesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.PreliminaryGetDataRequest} returns this - */ -proto.io.bisq.protobuffer.PreliminaryGetDataRequest.prototype.setSupportedCapabilitiesList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.PreliminaryGetDataRequest} returns this - */ -proto.io.bisq.protobuffer.PreliminaryGetDataRequest.prototype.addSupportedCapabilities = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.PreliminaryGetDataRequest} returns this - */ -proto.io.bisq.protobuffer.PreliminaryGetDataRequest.prototype.clearSupportedCapabilitiesList = function() { - return this.setSupportedCapabilitiesList([]); -}; - - -/** - * optional string version = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.PreliminaryGetDataRequest.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PreliminaryGetDataRequest} returns this - */ -proto.io.bisq.protobuffer.PreliminaryGetDataRequest.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.GetDataResponse.repeatedFields_ = [3,4,5]; - - - -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.GetDataResponse.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetDataResponse.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.GetDataResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetDataResponse.toObject = function(includeInstance, msg) { - var f, obj = { - requestNonce: jspb.Message.getFieldWithDefault(msg, 1, 0), - isGetUpdatedDataResponse: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - dataSetList: jspb.Message.toObjectList(msg.getDataSetList(), - proto.io.bisq.protobuffer.StorageEntryWrapper.toObject, includeInstance), - supportedCapabilitiesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, - persistableNetworkPayloadItemsList: jspb.Message.toObjectList(msg.getPersistableNetworkPayloadItemsList(), - proto.io.bisq.protobuffer.PersistableNetworkPayload.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.GetDataResponse} - */ -proto.io.bisq.protobuffer.GetDataResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetDataResponse; - return proto.io.bisq.protobuffer.GetDataResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetDataResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetDataResponse} - */ -proto.io.bisq.protobuffer.GetDataResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setRequestNonce(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsGetUpdatedDataResponse(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.StorageEntryWrapper; - reader.readMessage(value,proto.io.bisq.protobuffer.StorageEntryWrapper.deserializeBinaryFromReader); - msg.addDataSet(value); - break; - case 4: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); - for (var i = 0; i < values.length; i++) { - msg.addSupportedCapabilities(values[i]); - } - break; - case 5: - var value = new proto.io.bisq.protobuffer.PersistableNetworkPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.PersistableNetworkPayload.deserializeBinaryFromReader); - msg.addPersistableNetworkPayloadItems(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.GetDataResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetDataResponse.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.GetDataResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetDataResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequestNonce(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getIsGetUpdatedDataResponse(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getDataSetList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.io.bisq.protobuffer.StorageEntryWrapper.serializeBinaryToWriter - ); - } - f = message.getSupportedCapabilitiesList(); - if (f.length > 0) { - writer.writePackedInt32( - 4, - f - ); - } - f = message.getPersistableNetworkPayloadItemsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.io.bisq.protobuffer.PersistableNetworkPayload.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 request_nonce = 1; - * @return {number} - */ -proto.io.bisq.protobuffer.GetDataResponse.prototype.getRequestNonce = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.GetDataResponse} returns this - */ -proto.io.bisq.protobuffer.GetDataResponse.prototype.setRequestNonce = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool is_get_updated_data_response = 2; - * @return {boolean} - */ -proto.io.bisq.protobuffer.GetDataResponse.prototype.getIsGetUpdatedDataResponse = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.GetDataResponse} returns this - */ -proto.io.bisq.protobuffer.GetDataResponse.prototype.setIsGetUpdatedDataResponse = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * repeated StorageEntryWrapper data_set = 3; - * @return {!Array} - */ -proto.io.bisq.protobuffer.GetDataResponse.prototype.getDataSetList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.StorageEntryWrapper, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.GetDataResponse} returns this -*/ -proto.io.bisq.protobuffer.GetDataResponse.prototype.setDataSetList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.StorageEntryWrapper=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.StorageEntryWrapper} - */ -proto.io.bisq.protobuffer.GetDataResponse.prototype.addDataSet = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.io.bisq.protobuffer.StorageEntryWrapper, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.GetDataResponse} returns this - */ -proto.io.bisq.protobuffer.GetDataResponse.prototype.clearDataSetList = function() { - return this.setDataSetList([]); -}; - - -/** - * repeated int32 supported_capabilities = 4; - * @return {!Array} - */ -proto.io.bisq.protobuffer.GetDataResponse.prototype.getSupportedCapabilitiesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.GetDataResponse} returns this - */ -proto.io.bisq.protobuffer.GetDataResponse.prototype.setSupportedCapabilitiesList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.GetDataResponse} returns this - */ -proto.io.bisq.protobuffer.GetDataResponse.prototype.addSupportedCapabilities = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.GetDataResponse} returns this - */ -proto.io.bisq.protobuffer.GetDataResponse.prototype.clearSupportedCapabilitiesList = function() { - return this.setSupportedCapabilitiesList([]); -}; - - -/** - * repeated PersistableNetworkPayload persistable_network_payload_items = 5; - * @return {!Array} - */ -proto.io.bisq.protobuffer.GetDataResponse.prototype.getPersistableNetworkPayloadItemsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.PersistableNetworkPayload, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.GetDataResponse} returns this -*/ -proto.io.bisq.protobuffer.GetDataResponse.prototype.setPersistableNetworkPayloadItemsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.PersistableNetworkPayload=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.PersistableNetworkPayload} - */ -proto.io.bisq.protobuffer.GetDataResponse.prototype.addPersistableNetworkPayloadItems = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.io.bisq.protobuffer.PersistableNetworkPayload, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.GetDataResponse} returns this - */ -proto.io.bisq.protobuffer.GetDataResponse.prototype.clearPersistableNetworkPayloadItemsList = function() { - return this.setPersistableNetworkPayloadItemsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.GetUpdatedDataRequest.repeatedFields_ = [3]; - - - -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.GetUpdatedDataRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetUpdatedDataRequest.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.GetUpdatedDataRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetUpdatedDataRequest.toObject = function(includeInstance, msg) { - var f, obj = { - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - nonce: jspb.Message.getFieldWithDefault(msg, 2, 0), - excludedKeysList: msg.getExcludedKeysList_asB64(), - version: 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.GetUpdatedDataRequest} - */ -proto.io.bisq.protobuffer.GetUpdatedDataRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetUpdatedDataRequest; - return proto.io.bisq.protobuffer.GetUpdatedDataRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetUpdatedDataRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetUpdatedDataRequest} - */ -proto.io.bisq.protobuffer.GetUpdatedDataRequest.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.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setNonce(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.addExcludedKeys(value); - break; - case 4: - 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.GetUpdatedDataRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetUpdatedDataRequest.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.GetUpdatedDataRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetUpdatedDataRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getNonce(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getExcludedKeysList_asU8(); - if (f.length > 0) { - writer.writeRepeatedBytes( - 3, - f - ); - } - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional NodeAddress sender_node_address = 1; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.GetUpdatedDataRequest.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.GetUpdatedDataRequest} returns this -*/ -proto.io.bisq.protobuffer.GetUpdatedDataRequest.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.GetUpdatedDataRequest} returns this - */ -proto.io.bisq.protobuffer.GetUpdatedDataRequest.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.GetUpdatedDataRequest.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional int32 nonce = 2; - * @return {number} - */ -proto.io.bisq.protobuffer.GetUpdatedDataRequest.prototype.getNonce = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.GetUpdatedDataRequest} returns this - */ -proto.io.bisq.protobuffer.GetUpdatedDataRequest.prototype.setNonce = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * repeated bytes excluded_keys = 3; - * @return {!(Array|Array)} - */ -proto.io.bisq.protobuffer.GetUpdatedDataRequest.prototype.getExcludedKeysList = function() { - return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * repeated bytes excluded_keys = 3; - * This is a type-conversion wrapper around `getExcludedKeysList()` - * @return {!Array} - */ -proto.io.bisq.protobuffer.GetUpdatedDataRequest.prototype.getExcludedKeysList_asB64 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsB64( - this.getExcludedKeysList())); -}; - - -/** - * repeated bytes excluded_keys = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getExcludedKeysList()` - * @return {!Array} - */ -proto.io.bisq.protobuffer.GetUpdatedDataRequest.prototype.getExcludedKeysList_asU8 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsU8( - this.getExcludedKeysList())); -}; - - -/** - * @param {!(Array|Array)} value - * @return {!proto.io.bisq.protobuffer.GetUpdatedDataRequest} returns this - */ -proto.io.bisq.protobuffer.GetUpdatedDataRequest.prototype.setExcludedKeysList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.GetUpdatedDataRequest} returns this - */ -proto.io.bisq.protobuffer.GetUpdatedDataRequest.prototype.addExcludedKeys = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.GetUpdatedDataRequest} returns this - */ -proto.io.bisq.protobuffer.GetUpdatedDataRequest.prototype.clearExcludedKeysList = function() { - return this.setExcludedKeysList([]); -}; - - -/** - * optional string version = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.GetUpdatedDataRequest.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.GetUpdatedDataRequest} returns this - */ -proto.io.bisq.protobuffer.GetUpdatedDataRequest.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.GetPeersRequest.repeatedFields_ = [3,4]; - - - -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.GetPeersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetPeersRequest.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.GetPeersRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetPeersRequest.toObject = function(includeInstance, msg) { - var f, obj = { - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - nonce: jspb.Message.getFieldWithDefault(msg, 2, 0), - supportedCapabilitiesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - reportedPeersList: jspb.Message.toObjectList(msg.getReportedPeersList(), - proto.io.bisq.protobuffer.Peer.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.GetPeersRequest} - */ -proto.io.bisq.protobuffer.GetPeersRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetPeersRequest; - return proto.io.bisq.protobuffer.GetPeersRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetPeersRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetPeersRequest} - */ -proto.io.bisq.protobuffer.GetPeersRequest.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.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setNonce(value); - break; - case 3: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); - for (var i = 0; i < values.length; i++) { - msg.addSupportedCapabilities(values[i]); - } - break; - case 4: - var value = new proto.io.bisq.protobuffer.Peer; - reader.readMessage(value,proto.io.bisq.protobuffer.Peer.deserializeBinaryFromReader); - msg.addReportedPeers(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.GetPeersRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetPeersRequest.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.GetPeersRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetPeersRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getNonce(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getSupportedCapabilitiesList(); - if (f.length > 0) { - writer.writePackedInt32( - 3, - f - ); - } - f = message.getReportedPeersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.io.bisq.protobuffer.Peer.serializeBinaryToWriter - ); - } -}; - - -/** - * optional NodeAddress sender_node_address = 1; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.GetPeersRequest.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.GetPeersRequest} returns this -*/ -proto.io.bisq.protobuffer.GetPeersRequest.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.GetPeersRequest} returns this - */ -proto.io.bisq.protobuffer.GetPeersRequest.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.GetPeersRequest.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional int32 nonce = 2; - * @return {number} - */ -proto.io.bisq.protobuffer.GetPeersRequest.prototype.getNonce = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.GetPeersRequest} returns this - */ -proto.io.bisq.protobuffer.GetPeersRequest.prototype.setNonce = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * repeated int32 supported_capabilities = 3; - * @return {!Array} - */ -proto.io.bisq.protobuffer.GetPeersRequest.prototype.getSupportedCapabilitiesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.GetPeersRequest} returns this - */ -proto.io.bisq.protobuffer.GetPeersRequest.prototype.setSupportedCapabilitiesList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.GetPeersRequest} returns this - */ -proto.io.bisq.protobuffer.GetPeersRequest.prototype.addSupportedCapabilities = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.GetPeersRequest} returns this - */ -proto.io.bisq.protobuffer.GetPeersRequest.prototype.clearSupportedCapabilitiesList = function() { - return this.setSupportedCapabilitiesList([]); -}; - - -/** - * repeated Peer reported_peers = 4; - * @return {!Array} - */ -proto.io.bisq.protobuffer.GetPeersRequest.prototype.getReportedPeersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.Peer, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.GetPeersRequest} returns this -*/ -proto.io.bisq.protobuffer.GetPeersRequest.prototype.setReportedPeersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.Peer=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Peer} - */ -proto.io.bisq.protobuffer.GetPeersRequest.prototype.addReportedPeers = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.io.bisq.protobuffer.Peer, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.GetPeersRequest} returns this - */ -proto.io.bisq.protobuffer.GetPeersRequest.prototype.clearReportedPeersList = function() { - return this.setReportedPeersList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.GetPeersResponse.repeatedFields_ = [2,3]; - - - -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.GetPeersResponse.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.GetPeersResponse.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.GetPeersResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetPeersResponse.toObject = function(includeInstance, msg) { - var f, obj = { - requestNonce: jspb.Message.getFieldWithDefault(msg, 1, 0), - reportedPeersList: jspb.Message.toObjectList(msg.getReportedPeersList(), - proto.io.bisq.protobuffer.Peer.toObject, includeInstance), - supportedCapabilitiesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : 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.GetPeersResponse} - */ -proto.io.bisq.protobuffer.GetPeersResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.GetPeersResponse; - return proto.io.bisq.protobuffer.GetPeersResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.GetPeersResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.GetPeersResponse} - */ -proto.io.bisq.protobuffer.GetPeersResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setRequestNonce(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.Peer; - reader.readMessage(value,proto.io.bisq.protobuffer.Peer.deserializeBinaryFromReader); - msg.addReportedPeers(value); - break; - case 3: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); - for (var i = 0; i < values.length; i++) { - msg.addSupportedCapabilities(values[i]); - } - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.GetPeersResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.GetPeersResponse.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.GetPeersResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.GetPeersResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequestNonce(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getReportedPeersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.io.bisq.protobuffer.Peer.serializeBinaryToWriter - ); - } - f = message.getSupportedCapabilitiesList(); - if (f.length > 0) { - writer.writePackedInt32( - 3, - f - ); - } -}; - - -/** - * optional int32 request_nonce = 1; - * @return {number} - */ -proto.io.bisq.protobuffer.GetPeersResponse.prototype.getRequestNonce = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.GetPeersResponse} returns this - */ -proto.io.bisq.protobuffer.GetPeersResponse.prototype.setRequestNonce = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated Peer reported_peers = 2; - * @return {!Array} - */ -proto.io.bisq.protobuffer.GetPeersResponse.prototype.getReportedPeersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.Peer, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.GetPeersResponse} returns this -*/ -proto.io.bisq.protobuffer.GetPeersResponse.prototype.setReportedPeersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.Peer=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Peer} - */ -proto.io.bisq.protobuffer.GetPeersResponse.prototype.addReportedPeers = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.io.bisq.protobuffer.Peer, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.GetPeersResponse} returns this - */ -proto.io.bisq.protobuffer.GetPeersResponse.prototype.clearReportedPeersList = function() { - return this.setReportedPeersList([]); -}; - - -/** - * repeated int32 supported_capabilities = 3; - * @return {!Array} - */ -proto.io.bisq.protobuffer.GetPeersResponse.prototype.getSupportedCapabilitiesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.GetPeersResponse} returns this - */ -proto.io.bisq.protobuffer.GetPeersResponse.prototype.setSupportedCapabilitiesList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.GetPeersResponse} returns this - */ -proto.io.bisq.protobuffer.GetPeersResponse.prototype.addSupportedCapabilities = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.GetPeersResponse} returns this - */ -proto.io.bisq.protobuffer.GetPeersResponse.prototype.clearSupportedCapabilitiesList = function() { - return this.setSupportedCapabilitiesList([]); -}; - - - - - -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.Ping.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.Ping.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.Ping} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Ping.toObject = function(includeInstance, msg) { - var f, obj = { - nonce: jspb.Message.getFieldWithDefault(msg, 1, 0), - lastRoundTripTime: jspb.Message.getFieldWithDefault(msg, 2, 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.Ping} - */ -proto.io.bisq.protobuffer.Ping.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.Ping; - return proto.io.bisq.protobuffer.Ping.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.Ping} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.Ping} - */ -proto.io.bisq.protobuffer.Ping.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setNonce(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setLastRoundTripTime(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Ping.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.Ping.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.Ping} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Ping.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNonce(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getLastRoundTripTime(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } -}; - - -/** - * optional int32 nonce = 1; - * @return {number} - */ -proto.io.bisq.protobuffer.Ping.prototype.getNonce = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Ping} returns this - */ -proto.io.bisq.protobuffer.Ping.prototype.setNonce = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional int32 last_round_trip_time = 2; - * @return {number} - */ -proto.io.bisq.protobuffer.Ping.prototype.getLastRoundTripTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Ping} returns this - */ -proto.io.bisq.protobuffer.Ping.prototype.setLastRoundTripTime = function(value) { - return jspb.Message.setProto3IntField(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.Pong.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.Pong.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.Pong} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Pong.toObject = function(includeInstance, msg) { - var f, obj = { - requestNonce: 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.Pong} - */ -proto.io.bisq.protobuffer.Pong.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.Pong; - return proto.io.bisq.protobuffer.Pong.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.Pong} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.Pong} - */ -proto.io.bisq.protobuffer.Pong.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setRequestNonce(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Pong.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.Pong.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.Pong} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Pong.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequestNonce(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } -}; - - -/** - * optional int32 request_nonce = 1; - * @return {number} - */ -proto.io.bisq.protobuffer.Pong.prototype.getRequestNonce = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Pong} returns this - */ -proto.io.bisq.protobuffer.Pong.prototype.setRequestNonce = 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.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} - * @const - */ -proto.io.bisq.protobuffer.SignOfferRequest.repeatedFields_ = [11]; - - - -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.SignOfferRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SignOfferRequest.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.SignOfferRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SignOfferRequest.toObject = function(includeInstance, msg) { - var f, obj = { - offerId: jspb.Message.getFieldWithDefault(msg, 1, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - pubKeyRing: (f = msg.getPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - senderAccountId: jspb.Message.getFieldWithDefault(msg, 4, ""), - offerPayload: (f = msg.getOfferPayload()) && proto.io.bisq.protobuffer.OfferPayload.toObject(includeInstance, f), - uid: jspb.Message.getFieldWithDefault(msg, 6, ""), - currentDate: jspb.Message.getFieldWithDefault(msg, 7, 0), - reserveTxHash: jspb.Message.getFieldWithDefault(msg, 8, ""), - reserveTxHex: jspb.Message.getFieldWithDefault(msg, 9, ""), - reserveTxKey: jspb.Message.getFieldWithDefault(msg, 10, ""), - reserveTxKeyImagesList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f, - payoutAddress: jspb.Message.getFieldWithDefault(msg, 12, "") - }; - - 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.SignOfferRequest} - */ -proto.io.bisq.protobuffer.SignOfferRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SignOfferRequest; - return proto.io.bisq.protobuffer.SignOfferRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SignOfferRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SignOfferRequest} - */ -proto.io.bisq.protobuffer.SignOfferRequest.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.setOfferId(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setPubKeyRing(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setSenderAccountId(value); - break; - case 5: - var value = new proto.io.bisq.protobuffer.OfferPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.OfferPayload.deserializeBinaryFromReader); - msg.setOfferPayload(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 7: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCurrentDate(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setReserveTxHash(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setReserveTxHex(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setReserveTxKey(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.addReserveTxKeyImages(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setPayoutAddress(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SignOfferRequest.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.SignOfferRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SignOfferRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOfferId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getPubKeyRing(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getSenderAccountId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getOfferPayload(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.io.bisq.protobuffer.OfferPayload.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getCurrentDate(); - if (f !== 0) { - writer.writeInt64( - 7, - f - ); - } - f = message.getReserveTxHash(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getReserveTxHex(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getReserveTxKey(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getReserveTxKeyImagesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 11, - f - ); - } - f = message.getPayoutAddress(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } -}; - - -/** - * optional string offer_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.getOfferId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignOfferRequest} returns this - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.setOfferId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional NodeAddress sender_node_address = 2; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.SignOfferRequest} returns this -*/ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.SignOfferRequest} returns this - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional PubKeyRing pub_key_ring = 3; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.getPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.SignOfferRequest} returns this -*/ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.setPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.SignOfferRequest} returns this - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.clearPubKeyRing = function() { - return this.setPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.hasPubKeyRing = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string sender_account_id = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.getSenderAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignOfferRequest} returns this - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.setSenderAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional OfferPayload offer_payload = 5; - * @return {?proto.io.bisq.protobuffer.OfferPayload} - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.getOfferPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.OfferPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.OfferPayload, 5)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.OfferPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.SignOfferRequest} returns this -*/ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.setOfferPayload = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.SignOfferRequest} returns this - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.clearOfferPayload = function() { - return this.setOfferPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.hasOfferPayload = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional string uid = 6; - * @return {string} - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignOfferRequest} returns this - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional int64 current_date = 7; - * @return {number} - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.getCurrentDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.SignOfferRequest} returns this - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.setCurrentDate = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional string reserve_tx_hash = 8; - * @return {string} - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.getReserveTxHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignOfferRequest} returns this - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.setReserveTxHash = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string reserve_tx_hex = 9; - * @return {string} - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.getReserveTxHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignOfferRequest} returns this - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.setReserveTxHex = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional string reserve_tx_key = 10; - * @return {string} - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.getReserveTxKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignOfferRequest} returns this - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.setReserveTxKey = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); -}; - - -/** - * repeated string reserve_tx_key_images = 11; - * @return {!Array} - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.getReserveTxKeyImagesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 11)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.SignOfferRequest} returns this - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.setReserveTxKeyImagesList = function(value) { - return jspb.Message.setField(this, 11, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.SignOfferRequest} returns this - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.addReserveTxKeyImages = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 11, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.SignOfferRequest} returns this - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.clearReserveTxKeyImagesList = function() { - return this.setReserveTxKeyImagesList([]); -}; - - -/** - * optional string payout_address = 12; - * @return {string} - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.getPayoutAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignOfferRequest} returns this - */ -proto.io.bisq.protobuffer.SignOfferRequest.prototype.setPayoutAddress = function(value) { - return jspb.Message.setProto3StringField(this, 12, 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.SignOfferResponse.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SignOfferResponse.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.SignOfferResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SignOfferResponse.toObject = function(includeInstance, msg) { - var f, obj = { - offerId: jspb.Message.getFieldWithDefault(msg, 1, ""), - uid: jspb.Message.getFieldWithDefault(msg, 2, ""), - signedOfferPayload: (f = msg.getSignedOfferPayload()) && proto.io.bisq.protobuffer.OfferPayload.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.SignOfferResponse} - */ -proto.io.bisq.protobuffer.SignOfferResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SignOfferResponse; - return proto.io.bisq.protobuffer.SignOfferResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SignOfferResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SignOfferResponse} - */ -proto.io.bisq.protobuffer.SignOfferResponse.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.setOfferId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.OfferPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.OfferPayload.deserializeBinaryFromReader); - msg.setSignedOfferPayload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SignOfferResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SignOfferResponse.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.SignOfferResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SignOfferResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOfferId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSignedOfferPayload(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.OfferPayload.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string offer_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.SignOfferResponse.prototype.getOfferId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignOfferResponse} returns this - */ -proto.io.bisq.protobuffer.SignOfferResponse.prototype.setOfferId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string uid = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.SignOfferResponse.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignOfferResponse} returns this - */ -proto.io.bisq.protobuffer.SignOfferResponse.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional OfferPayload signed_offer_payload = 3; - * @return {?proto.io.bisq.protobuffer.OfferPayload} - */ -proto.io.bisq.protobuffer.SignOfferResponse.prototype.getSignedOfferPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.OfferPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.OfferPayload, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.OfferPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.SignOfferResponse} returns this -*/ -proto.io.bisq.protobuffer.SignOfferResponse.prototype.setSignedOfferPayload = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.SignOfferResponse} returns this - */ -proto.io.bisq.protobuffer.SignOfferResponse.prototype.clearSignedOfferPayload = function() { - return this.setSignedOfferPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.SignOfferResponse.prototype.hasSignedOfferPayload = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.repeatedFields_ = [4]; - - - -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.OfferAvailabilityRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.OfferAvailabilityRequest.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.OfferAvailabilityRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.toObject = function(includeInstance, msg) { - var f, obj = { - offerId: jspb.Message.getFieldWithDefault(msg, 1, ""), - 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, ""), - isTakerApiUser: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - tradeRequest: (f = msg.getTradeRequest()) && proto.io.bisq.protobuffer.InitTradeRequest.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.OfferAvailabilityRequest} - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.OfferAvailabilityRequest; - return proto.io.bisq.protobuffer.OfferAvailabilityRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.OfferAvailabilityRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityRequest} - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.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.setOfferId(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setPubKeyRing(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTakersTradePrice(value); - break; - case 4: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); - for (var i = 0; i < values.length; i++) { - msg.addSupportedCapabilities(values[i]); - } - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsTakerApiUser(value); - break; - case 7: - var value = new proto.io.bisq.protobuffer.InitTradeRequest; - reader.readMessage(value,proto.io.bisq.protobuffer.InitTradeRequest.deserializeBinaryFromReader); - msg.setTradeRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.OfferAvailabilityRequest.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.OfferAvailabilityRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOfferId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPubKeyRing(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getTakersTradePrice(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getSupportedCapabilitiesList(); - if (f.length > 0) { - writer.writePackedInt32( - 4, - f - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getIsTakerApiUser(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getTradeRequest(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.io.bisq.protobuffer.InitTradeRequest.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string offer_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.getOfferId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityRequest} returns this - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.setOfferId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional PubKeyRing pub_key_ring = 2; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.getPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityRequest} returns this -*/ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.setPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityRequest} returns this - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.clearPubKeyRing = function() { - return this.setPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.hasPubKeyRing = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional int64 takers_trade_price = 3; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.getTakersTradePrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityRequest} returns this - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.setTakersTradePrice = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated int32 supported_capabilities = 4; - * @return {!Array} - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.getSupportedCapabilitiesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityRequest} returns this - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.setSupportedCapabilitiesList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityRequest} returns this - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.addSupportedCapabilities = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityRequest} returns this - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.clearSupportedCapabilitiesList = function() { - return this.setSupportedCapabilitiesList([]); -}; - - -/** - * optional string uid = 5; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityRequest} returns this - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * 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); -}; - - -/** - * optional InitTradeRequest trade_request = 7; - * @return {?proto.io.bisq.protobuffer.InitTradeRequest} - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.getTradeRequest = function() { - return /** @type{?proto.io.bisq.protobuffer.InitTradeRequest} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.InitTradeRequest, 7)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.InitTradeRequest|undefined} value - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityRequest} returns this -*/ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.setTradeRequest = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityRequest} returns this - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.clearTradeRequest = function() { - return this.setTradeRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.OfferAvailabilityRequest.prototype.hasTradeRequest = function() { - return jspb.Message.getField(this, 7) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.repeatedFields_ = [3]; - - - -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.OfferAvailabilityResponse.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.OfferAvailabilityResponse.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.OfferAvailabilityResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.toObject = function(includeInstance, msg) { - var f, obj = { - offerId: jspb.Message.getFieldWithDefault(msg, 1, ""), - availabilityResult: jspb.Message.getFieldWithDefault(msg, 2, 0), - supportedCapabilitiesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - uid: jspb.Message.getFieldWithDefault(msg, 4, ""), - makerSignature: jspb.Message.getFieldWithDefault(msg, 5, ""), - backupArbitrator: (f = msg.getBackupArbitrator()) && proto.io.bisq.protobuffer.NodeAddress.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.OfferAvailabilityResponse} - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.OfferAvailabilityResponse; - return proto.io.bisq.protobuffer.OfferAvailabilityResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.OfferAvailabilityResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityResponse} - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.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.setOfferId(value); - break; - case 2: - var value = /** @type {!proto.io.bisq.protobuffer.AvailabilityResult} */ (reader.readEnum()); - msg.setAvailabilityResult(value); - break; - case 3: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); - for (var i = 0; i < values.length; i++) { - msg.addSupportedCapabilities(values[i]); - } - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setMakerSignature(value); - break; - case 6: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setBackupArbitrator(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.OfferAvailabilityResponse.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.OfferAvailabilityResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOfferId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAvailabilityResult(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getSupportedCapabilitiesList(); - if (f.length > 0) { - writer.writePackedInt32( - 3, - f - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getMakerSignature(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getBackupArbitrator(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string offer_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.getOfferId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityResponse} returns this - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.setOfferId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional AvailabilityResult availability_result = 2; - * @return {!proto.io.bisq.protobuffer.AvailabilityResult} - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.getAvailabilityResult = function() { - return /** @type {!proto.io.bisq.protobuffer.AvailabilityResult} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.AvailabilityResult} value - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityResponse} returns this - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.setAvailabilityResult = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * repeated int32 supported_capabilities = 3; - * @return {!Array} - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.getSupportedCapabilitiesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityResponse} returns this - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.setSupportedCapabilitiesList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityResponse} returns this - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.addSupportedCapabilities = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityResponse} returns this - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.clearSupportedCapabilitiesList = function() { - return this.setSupportedCapabilitiesList([]); -}; - - -/** - * optional string uid = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityResponse} returns this - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string maker_signature = 5; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.getMakerSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityResponse} returns this - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.setMakerSignature = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional NodeAddress backup_arbitrator = 6; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.getBackupArbitrator = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 6)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityResponse} returns this -*/ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.setBackupArbitrator = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.OfferAvailabilityResponse} returns this - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.clearBackupArbitrator = function() { - return this.setBackupArbitrator(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.hasBackupArbitrator = function() { - return jspb.Message.getField(this, 6) != 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.RefreshOfferMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.RefreshOfferMessage.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.RefreshOfferMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RefreshOfferMessage.toObject = function(includeInstance, msg) { - var f, obj = { - hashOfDataAndSeqNr: msg.getHashOfDataAndSeqNr_asB64(), - signature: msg.getSignature_asB64(), - hashOfPayload: msg.getHashOfPayload_asB64(), - sequenceNumber: 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.RefreshOfferMessage} - */ -proto.io.bisq.protobuffer.RefreshOfferMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.RefreshOfferMessage; - return proto.io.bisq.protobuffer.RefreshOfferMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.RefreshOfferMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.RefreshOfferMessage} - */ -proto.io.bisq.protobuffer.RefreshOfferMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setHashOfDataAndSeqNr(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSignature(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setHashOfPayload(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt32()); - msg.setSequenceNumber(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.RefreshOfferMessage.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.RefreshOfferMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RefreshOfferMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHashOfDataAndSeqNr_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getSignature_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getHashOfPayload_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getSequenceNumber(); - if (f !== 0) { - writer.writeInt32( - 4, - f - ); - } -}; - - -/** - * optional bytes hash_of_data_and_seq_nr = 1; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.getHashOfDataAndSeqNr = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes hash_of_data_and_seq_nr = 1; - * This is a type-conversion wrapper around `getHashOfDataAndSeqNr()` - * @return {string} - */ -proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.getHashOfDataAndSeqNr_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getHashOfDataAndSeqNr())); -}; - - -/** - * optional bytes hash_of_data_and_seq_nr = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getHashOfDataAndSeqNr()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.getHashOfDataAndSeqNr_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getHashOfDataAndSeqNr())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.RefreshOfferMessage} returns this - */ -proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.setHashOfDataAndSeqNr = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional bytes signature = 2; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.getSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes signature = 2; - * This is a type-conversion wrapper around `getSignature()` - * @return {string} - */ -proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.getSignature_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSignature())); -}; - - -/** - * optional bytes signature = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSignature()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.getSignature_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSignature())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.RefreshOfferMessage} returns this - */ -proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.setSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional bytes hash_of_payload = 3; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.getHashOfPayload = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes hash_of_payload = 3; - * This is a type-conversion wrapper around `getHashOfPayload()` - * @return {string} - */ -proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.getHashOfPayload_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getHashOfPayload())); -}; - - -/** - * optional bytes hash_of_payload = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getHashOfPayload()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.getHashOfPayload_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getHashOfPayload())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.RefreshOfferMessage} returns this - */ -proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.setHashOfPayload = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * optional int32 sequence_number = 4; - * @return {number} - */ -proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.getSequenceNumber = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.RefreshOfferMessage} returns this - */ -proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.setSequenceNumber = function(value) { - return jspb.Message.setProto3IntField(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.AddDataMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.AddDataMessage.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.AddDataMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AddDataMessage.toObject = function(includeInstance, msg) { - var f, obj = { - entry: (f = msg.getEntry()) && proto.io.bisq.protobuffer.StorageEntryWrapper.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.AddDataMessage} - */ -proto.io.bisq.protobuffer.AddDataMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.AddDataMessage; - return proto.io.bisq.protobuffer.AddDataMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.AddDataMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.AddDataMessage} - */ -proto.io.bisq.protobuffer.AddDataMessage.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.StorageEntryWrapper; - reader.readMessage(value,proto.io.bisq.protobuffer.StorageEntryWrapper.deserializeBinaryFromReader); - msg.setEntry(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.AddDataMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.AddDataMessage.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.AddDataMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AddDataMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEntry(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.StorageEntryWrapper.serializeBinaryToWriter - ); - } -}; - - -/** - * optional StorageEntryWrapper entry = 1; - * @return {?proto.io.bisq.protobuffer.StorageEntryWrapper} - */ -proto.io.bisq.protobuffer.AddDataMessage.prototype.getEntry = function() { - return /** @type{?proto.io.bisq.protobuffer.StorageEntryWrapper} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.StorageEntryWrapper, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.StorageEntryWrapper|undefined} value - * @return {!proto.io.bisq.protobuffer.AddDataMessage} returns this -*/ -proto.io.bisq.protobuffer.AddDataMessage.prototype.setEntry = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.AddDataMessage} returns this - */ -proto.io.bisq.protobuffer.AddDataMessage.prototype.clearEntry = function() { - return this.setEntry(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.AddDataMessage.prototype.hasEntry = 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.RemoveDataMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.RemoveDataMessage.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.RemoveDataMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RemoveDataMessage.toObject = function(includeInstance, msg) { - var f, obj = { - protectedStorageEntry: (f = msg.getProtectedStorageEntry()) && proto.io.bisq.protobuffer.ProtectedStorageEntry.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.RemoveDataMessage} - */ -proto.io.bisq.protobuffer.RemoveDataMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.RemoveDataMessage; - return proto.io.bisq.protobuffer.RemoveDataMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.RemoveDataMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.RemoveDataMessage} - */ -proto.io.bisq.protobuffer.RemoveDataMessage.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.ProtectedStorageEntry; - reader.readMessage(value,proto.io.bisq.protobuffer.ProtectedStorageEntry.deserializeBinaryFromReader); - msg.setProtectedStorageEntry(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.RemoveDataMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.RemoveDataMessage.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.RemoveDataMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RemoveDataMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProtectedStorageEntry(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.ProtectedStorageEntry.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ProtectedStorageEntry protected_storage_entry = 1; - * @return {?proto.io.bisq.protobuffer.ProtectedStorageEntry} - */ -proto.io.bisq.protobuffer.RemoveDataMessage.prototype.getProtectedStorageEntry = function() { - return /** @type{?proto.io.bisq.protobuffer.ProtectedStorageEntry} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ProtectedStorageEntry, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.ProtectedStorageEntry|undefined} value - * @return {!proto.io.bisq.protobuffer.RemoveDataMessage} returns this -*/ -proto.io.bisq.protobuffer.RemoveDataMessage.prototype.setProtectedStorageEntry = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.RemoveDataMessage} returns this - */ -proto.io.bisq.protobuffer.RemoveDataMessage.prototype.clearProtectedStorageEntry = function() { - return this.setProtectedStorageEntry(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.RemoveDataMessage.prototype.hasProtectedStorageEntry = 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.RemoveMailboxDataMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.RemoveMailboxDataMessage.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.RemoveMailboxDataMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RemoveMailboxDataMessage.toObject = function(includeInstance, msg) { - var f, obj = { - protectedStorageEntry: (f = msg.getProtectedStorageEntry()) && proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.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.RemoveMailboxDataMessage} - */ -proto.io.bisq.protobuffer.RemoveMailboxDataMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.RemoveMailboxDataMessage; - return proto.io.bisq.protobuffer.RemoveMailboxDataMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.RemoveMailboxDataMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.RemoveMailboxDataMessage} - */ -proto.io.bisq.protobuffer.RemoveMailboxDataMessage.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.setProtectedStorageEntry(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.RemoveMailboxDataMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.RemoveMailboxDataMessage.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.RemoveMailboxDataMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RemoveMailboxDataMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProtectedStorageEntry(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ProtectedMailboxStorageEntry protected_storage_entry = 1; - * @return {?proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry} - */ -proto.io.bisq.protobuffer.RemoveMailboxDataMessage.prototype.getProtectedStorageEntry = 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.RemoveMailboxDataMessage} returns this -*/ -proto.io.bisq.protobuffer.RemoveMailboxDataMessage.prototype.setProtectedStorageEntry = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.RemoveMailboxDataMessage} returns this - */ -proto.io.bisq.protobuffer.RemoveMailboxDataMessage.prototype.clearProtectedStorageEntry = function() { - return this.setProtectedStorageEntry(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.RemoveMailboxDataMessage.prototype.hasProtectedStorageEntry = 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.AddPersistableNetworkPayloadMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage.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.AddPersistableNetworkPayloadMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage.toObject = function(includeInstance, msg) { - var f, obj = { - payload: (f = msg.getPayload()) && proto.io.bisq.protobuffer.PersistableNetworkPayload.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.AddPersistableNetworkPayloadMessage} - */ -proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage; - return proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage} - */ -proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage.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.PersistableNetworkPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.PersistableNetworkPayload.deserializeBinaryFromReader); - msg.setPayload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage.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.AddPersistableNetworkPayloadMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPayload(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.PersistableNetworkPayload.serializeBinaryToWriter - ); - } -}; - - -/** - * optional PersistableNetworkPayload payload = 1; - * @return {?proto.io.bisq.protobuffer.PersistableNetworkPayload} - */ -proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage.prototype.getPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.PersistableNetworkPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PersistableNetworkPayload, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PersistableNetworkPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage} returns this -*/ -proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage.prototype.setPayload = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage} returns this - */ -proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage.prototype.clearPayload = function() { - return this.setPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage.prototype.hasPayload = 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.CloseConnectionMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.CloseConnectionMessage.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.CloseConnectionMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CloseConnectionMessage.toObject = function(includeInstance, msg) { - var f, obj = { - reason: 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.CloseConnectionMessage} - */ -proto.io.bisq.protobuffer.CloseConnectionMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.CloseConnectionMessage; - return proto.io.bisq.protobuffer.CloseConnectionMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.CloseConnectionMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.CloseConnectionMessage} - */ -proto.io.bisq.protobuffer.CloseConnectionMessage.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.setReason(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.CloseConnectionMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.CloseConnectionMessage.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.CloseConnectionMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CloseConnectionMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getReason(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string reason = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.CloseConnectionMessage.prototype.getReason = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CloseConnectionMessage} returns this - */ -proto.io.bisq.protobuffer.CloseConnectionMessage.prototype.setReason = 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.AckMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.AckMessage.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.AckMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AckMessage.toObject = function(includeInstance, msg) { - var f, obj = { - uid: jspb.Message.getFieldWithDefault(msg, 1, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - sourceType: jspb.Message.getFieldWithDefault(msg, 3, ""), - sourceMsgClassName: jspb.Message.getFieldWithDefault(msg, 4, ""), - sourceUid: jspb.Message.getFieldWithDefault(msg, 5, ""), - sourceId: jspb.Message.getFieldWithDefault(msg, 6, ""), - success: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - errorMessage: jspb.Message.getFieldWithDefault(msg, 8, "") - }; - - 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.AckMessage} - */ -proto.io.bisq.protobuffer.AckMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.AckMessage; - return proto.io.bisq.protobuffer.AckMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.AckMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.AckMessage} - */ -proto.io.bisq.protobuffer.AckMessage.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.setUid(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSourceType(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setSourceMsgClassName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setSourceUid(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setSourceId(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setErrorMessage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.AckMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.AckMessage.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.AckMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AckMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getSourceType(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getSourceMsgClassName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getSourceUid(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getSourceId(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getErrorMessage(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } -}; - - -/** - * optional string uid = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.AckMessage.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.AckMessage} returns this - */ -proto.io.bisq.protobuffer.AckMessage.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional NodeAddress sender_node_address = 2; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.AckMessage.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.AckMessage} returns this -*/ -proto.io.bisq.protobuffer.AckMessage.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.AckMessage} returns this - */ -proto.io.bisq.protobuffer.AckMessage.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.AckMessage.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string source_type = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.AckMessage.prototype.getSourceType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.AckMessage} returns this - */ -proto.io.bisq.protobuffer.AckMessage.prototype.setSourceType = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string source_msg_class_name = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.AckMessage.prototype.getSourceMsgClassName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.AckMessage} returns this - */ -proto.io.bisq.protobuffer.AckMessage.prototype.setSourceMsgClassName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string source_uid = 5; - * @return {string} - */ -proto.io.bisq.protobuffer.AckMessage.prototype.getSourceUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.AckMessage} returns this - */ -proto.io.bisq.protobuffer.AckMessage.prototype.setSourceUid = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string source_id = 6; - * @return {string} - */ -proto.io.bisq.protobuffer.AckMessage.prototype.getSourceId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.AckMessage} returns this - */ -proto.io.bisq.protobuffer.AckMessage.prototype.setSourceId = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional bool success = 7; - * @return {boolean} - */ -proto.io.bisq.protobuffer.AckMessage.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.AckMessage} returns this - */ -proto.io.bisq.protobuffer.AckMessage.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * optional string error_message = 8; - * @return {string} - */ -proto.io.bisq.protobuffer.AckMessage.prototype.getErrorMessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.AckMessage} returns this - */ -proto.io.bisq.protobuffer.AckMessage.prototype.setErrorMessage = function(value) { - return jspb.Message.setProto3StringField(this, 8, 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.PrefixedSealedAndSignedMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.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.PrefixedSealedAndSignedMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.toObject = function(includeInstance, msg) { - var f, obj = { - nodeAddress: (f = msg.getNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - sealedAndSigned: (f = msg.getSealedAndSigned()) && proto.io.bisq.protobuffer.SealedAndSigned.toObject(includeInstance, f), - addressPrefixHash: msg.getAddressPrefixHash_asB64(), - uid: 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.PrefixedSealedAndSignedMessage} - */ -proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage; - return proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage} - */ -proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.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.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setNodeAddress(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.SealedAndSigned; - reader.readMessage(value,proto.io.bisq.protobuffer.SealedAndSigned.deserializeBinaryFromReader); - msg.setSealedAndSigned(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setAddressPrefixHash(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.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.PrefixedSealedAndSignedMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNodeAddress(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getSealedAndSigned(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.SealedAndSigned.serializeBinaryToWriter - ); - } - f = message.getAddressPrefixHash_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional NodeAddress node_address = 1; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.prototype.getNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage} returns this -*/ -proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.prototype.setNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage} returns this - */ -proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.prototype.clearNodeAddress = function() { - return this.setNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.prototype.hasNodeAddress = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional SealedAndSigned sealed_and_signed = 2; - * @return {?proto.io.bisq.protobuffer.SealedAndSigned} - */ -proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.prototype.getSealedAndSigned = function() { - return /** @type{?proto.io.bisq.protobuffer.SealedAndSigned} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.SealedAndSigned, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.SealedAndSigned|undefined} value - * @return {!proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage} returns this -*/ -proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.prototype.setSealedAndSigned = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage} returns this - */ -proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.prototype.clearSealedAndSigned = function() { - return this.setSealedAndSigned(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.prototype.hasSealedAndSigned = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional bytes address_prefix_hash = 3; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.prototype.getAddressPrefixHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes address_prefix_hash = 3; - * This is a type-conversion wrapper around `getAddressPrefixHash()` - * @return {string} - */ -proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.prototype.getAddressPrefixHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getAddressPrefixHash())); -}; - - -/** - * optional bytes address_prefix_hash = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getAddressPrefixHash()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.prototype.getAddressPrefixHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getAddressPrefixHash())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage} returns this - */ -proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.prototype.setAddressPrefixHash = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * optional string uid = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage} returns this - */ -proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.repeatedFields_ = [7,16,17,23]; - - - -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.InputsForDepositTxRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.InputsForDepositTxRequest.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.InputsForDepositTxRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tradeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - tradeAmount: jspb.Message.getFieldWithDefault(msg, 3, 0), - tradePrice: jspb.Message.getFieldWithDefault(msg, 4, 0), - txFee: jspb.Message.getFieldWithDefault(msg, 5, 0), - takerFee: jspb.Message.getFieldWithDefault(msg, 6, 0), - rawTransactionInputsList: jspb.Message.toObjectList(msg.getRawTransactionInputsList(), - proto.io.bisq.protobuffer.RawTransactionInput.toObject, includeInstance), - changeOutputValue: jspb.Message.getFieldWithDefault(msg, 8, 0), - changeOutputAddress: jspb.Message.getFieldWithDefault(msg, 9, ""), - takerMultiSigPubKey: msg.getTakerMultiSigPubKey_asB64(), - takerPayoutAddressString: jspb.Message.getFieldWithDefault(msg, 11, ""), - takerPubKeyRing: (f = msg.getTakerPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - takerPaymentAccountPayload: (f = msg.getTakerPaymentAccountPayload()) && proto.io.bisq.protobuffer.PaymentAccountPayload.toObject(includeInstance, f), - takerAccountId: jspb.Message.getFieldWithDefault(msg, 14, ""), - takerFeeTxId: jspb.Message.getFieldWithDefault(msg, 15, ""), - acceptedArbitratorNodeAddressesList: jspb.Message.toObjectList(msg.getAcceptedArbitratorNodeAddressesList(), - proto.io.bisq.protobuffer.NodeAddress.toObject, includeInstance), - acceptedMediatorNodeAddressesList: jspb.Message.toObjectList(msg.getAcceptedMediatorNodeAddressesList(), - proto.io.bisq.protobuffer.NodeAddress.toObject, includeInstance), - arbitratorNodeAddress: (f = msg.getArbitratorNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - mediatorNodeAddress: (f = msg.getMediatorNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - uid: jspb.Message.getFieldWithDefault(msg, 20, ""), - accountAgeWitnessSignatureOfOfferId: msg.getAccountAgeWitnessSignatureOfOfferId_asB64(), - currentDate: jspb.Message.getFieldWithDefault(msg, 22, 0), - acceptedRefundAgentNodeAddressesList: jspb.Message.toObjectList(msg.getAcceptedRefundAgentNodeAddressesList(), - proto.io.bisq.protobuffer.NodeAddress.toObject, includeInstance), - refundAgentNodeAddress: (f = msg.getRefundAgentNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.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.InputsForDepositTxRequest} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.InputsForDepositTxRequest; - return proto.io.bisq.protobuffer.InputsForDepositTxRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.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 = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTradeAmount(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTradePrice(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTxFee(value); - break; - case 6: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTakerFee(value); - break; - case 7: - var value = new proto.io.bisq.protobuffer.RawTransactionInput; - reader.readMessage(value,proto.io.bisq.protobuffer.RawTransactionInput.deserializeBinaryFromReader); - msg.addRawTransactionInputs(value); - break; - case 8: - var value = /** @type {number} */ (reader.readInt64()); - msg.setChangeOutputValue(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setChangeOutputAddress(value); - break; - case 10: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setTakerMultiSigPubKey(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setTakerPayoutAddressString(value); - break; - case 12: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setTakerPubKeyRing(value); - break; - case 13: - var value = new proto.io.bisq.protobuffer.PaymentAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccountPayload.deserializeBinaryFromReader); - msg.setTakerPaymentAccountPayload(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setTakerAccountId(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.setTakerFeeTxId(value); - break; - case 16: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.addAcceptedArbitratorNodeAddresses(value); - break; - case 17: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.addAcceptedMediatorNodeAddresses(value); - break; - case 18: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setArbitratorNodeAddress(value); - break; - case 29: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setMediatorNodeAddress(value); - break; - case 20: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 21: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setAccountAgeWitnessSignatureOfOfferId(value); - break; - case 22: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCurrentDate(value); - break; - case 23: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.addAcceptedRefundAgentNodeAddresses(value); - break; - case 24: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setRefundAgentNodeAddress(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.InputsForDepositTxRequest.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.InputsForDepositTxRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getTradeAmount(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getTradePrice(); - if (f !== 0) { - writer.writeInt64( - 4, - f - ); - } - f = message.getTxFee(); - if (f !== 0) { - writer.writeInt64( - 5, - f - ); - } - f = message.getTakerFee(); - if (f !== 0) { - writer.writeInt64( - 6, - f - ); - } - f = message.getRawTransactionInputsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 7, - f, - proto.io.bisq.protobuffer.RawTransactionInput.serializeBinaryToWriter - ); - } - f = message.getChangeOutputValue(); - if (f !== 0) { - writer.writeInt64( - 8, - f - ); - } - f = message.getChangeOutputAddress(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getTakerMultiSigPubKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 10, - f - ); - } - f = message.getTakerPayoutAddressString(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getTakerPubKeyRing(); - if (f != null) { - writer.writeMessage( - 12, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getTakerPaymentAccountPayload(); - if (f != null) { - writer.writeMessage( - 13, - f, - proto.io.bisq.protobuffer.PaymentAccountPayload.serializeBinaryToWriter - ); - } - f = message.getTakerAccountId(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getTakerFeeTxId(); - if (f.length > 0) { - writer.writeString( - 15, - f - ); - } - f = message.getAcceptedArbitratorNodeAddressesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 16, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getAcceptedMediatorNodeAddressesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 17, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getArbitratorNodeAddress(); - if (f != null) { - writer.writeMessage( - 18, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getMediatorNodeAddress(); - if (f != null) { - writer.writeMessage( - 29, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 20, - f - ); - } - f = message.getAccountAgeWitnessSignatureOfOfferId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 21, - f - ); - } - f = message.getCurrentDate(); - if (f !== 0) { - writer.writeInt64( - 22, - f - ); - } - f = message.getAcceptedRefundAgentNodeAddressesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 23, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getRefundAgentNodeAddress(); - if (f != null) { - writer.writeMessage( - 24, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string trade_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional NodeAddress sender_node_address = 2; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this -*/ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional int64 trade_amount = 3; - * @return {number} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getTradeAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setTradeAmount = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional int64 trade_price = 4; - * @return {number} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getTradePrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setTradePrice = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional int64 tx_fee = 5; - * @return {number} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getTxFee = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setTxFee = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional int64 taker_fee = 6; - * @return {number} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getTakerFee = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setTakerFee = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * repeated RawTransactionInput raw_transaction_inputs = 7; - * @return {!Array} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getRawTransactionInputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.RawTransactionInput, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this -*/ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setRawTransactionInputsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.RawTransactionInput=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.RawTransactionInput} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.addRawTransactionInputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.io.bisq.protobuffer.RawTransactionInput, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.clearRawTransactionInputsList = function() { - return this.setRawTransactionInputsList([]); -}; - - -/** - * optional int64 change_output_value = 8; - * @return {number} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getChangeOutputValue = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setChangeOutputValue = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional string change_output_address = 9; - * @return {string} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getChangeOutputAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setChangeOutputAddress = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional bytes taker_multi_sig_pub_key = 10; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getTakerMultiSigPubKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * optional bytes taker_multi_sig_pub_key = 10; - * This is a type-conversion wrapper around `getTakerMultiSigPubKey()` - * @return {string} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getTakerMultiSigPubKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getTakerMultiSigPubKey())); -}; - - -/** - * optional bytes taker_multi_sig_pub_key = 10; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getTakerMultiSigPubKey()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getTakerMultiSigPubKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getTakerMultiSigPubKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setTakerMultiSigPubKey = function(value) { - return jspb.Message.setProto3BytesField(this, 10, value); -}; - - -/** - * optional string taker_payout_address_string = 11; - * @return {string} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getTakerPayoutAddressString = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setTakerPayoutAddressString = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional PubKeyRing taker_pub_key_ring = 12; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getTakerPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 12)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this -*/ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setTakerPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 12, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.clearTakerPubKeyRing = function() { - return this.setTakerPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.hasTakerPubKeyRing = function() { - return jspb.Message.getField(this, 12) != null; -}; - - -/** - * optional PaymentAccountPayload taker_payment_account_payload = 13; - * @return {?proto.io.bisq.protobuffer.PaymentAccountPayload} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getTakerPaymentAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.PaymentAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PaymentAccountPayload, 13)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PaymentAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this -*/ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setTakerPaymentAccountPayload = function(value) { - return jspb.Message.setWrapperField(this, 13, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.clearTakerPaymentAccountPayload = function() { - return this.setTakerPaymentAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.hasTakerPaymentAccountPayload = function() { - return jspb.Message.getField(this, 13) != null; -}; - - -/** - * optional string taker_account_id = 14; - * @return {string} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getTakerAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setTakerAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 14, value); -}; - - -/** - * optional string taker_fee_tx_id = 15; - * @return {string} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getTakerFeeTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setTakerFeeTxId = function(value) { - return jspb.Message.setProto3StringField(this, 15, value); -}; - - -/** - * repeated NodeAddress accepted_arbitrator_node_addresses = 16; - * @return {!Array} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getAcceptedArbitratorNodeAddressesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 16)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this -*/ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setAcceptedArbitratorNodeAddressesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 16, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.NodeAddress=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.addAcceptedArbitratorNodeAddresses = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 16, opt_value, proto.io.bisq.protobuffer.NodeAddress, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.clearAcceptedArbitratorNodeAddressesList = function() { - return this.setAcceptedArbitratorNodeAddressesList([]); -}; - - -/** - * repeated NodeAddress accepted_mediator_node_addresses = 17; - * @return {!Array} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getAcceptedMediatorNodeAddressesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 17)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this -*/ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setAcceptedMediatorNodeAddressesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 17, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.NodeAddress=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.addAcceptedMediatorNodeAddresses = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 17, opt_value, proto.io.bisq.protobuffer.NodeAddress, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.clearAcceptedMediatorNodeAddressesList = function() { - return this.setAcceptedMediatorNodeAddressesList([]); -}; - - -/** - * optional NodeAddress arbitrator_node_address = 18; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getArbitratorNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 18)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this -*/ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setArbitratorNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 18, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.clearArbitratorNodeAddress = function() { - return this.setArbitratorNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.hasArbitratorNodeAddress = function() { - return jspb.Message.getField(this, 18) != null; -}; - - -/** - * optional NodeAddress mediator_node_address = 29; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getMediatorNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 29)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this -*/ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setMediatorNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 29, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.clearMediatorNodeAddress = function() { - return this.setMediatorNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.hasMediatorNodeAddress = function() { - return jspb.Message.getField(this, 29) != null; -}; - - -/** - * optional string uid = 20; - * @return {string} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 20, value); -}; - - -/** - * optional bytes account_age_witness_signature_of_offer_id = 21; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getAccountAgeWitnessSignatureOfOfferId = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 21, "")); -}; - - -/** - * optional bytes account_age_witness_signature_of_offer_id = 21; - * This is a type-conversion wrapper around `getAccountAgeWitnessSignatureOfOfferId()` - * @return {string} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getAccountAgeWitnessSignatureOfOfferId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getAccountAgeWitnessSignatureOfOfferId())); -}; - - -/** - * optional bytes account_age_witness_signature_of_offer_id = 21; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getAccountAgeWitnessSignatureOfOfferId()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getAccountAgeWitnessSignatureOfOfferId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getAccountAgeWitnessSignatureOfOfferId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setAccountAgeWitnessSignatureOfOfferId = function(value) { - return jspb.Message.setProto3BytesField(this, 21, value); -}; - - -/** - * optional int64 current_date = 22; - * @return {number} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getCurrentDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setCurrentDate = function(value) { - return jspb.Message.setProto3IntField(this, 22, value); -}; - - -/** - * repeated NodeAddress accepted_refund_agent_node_addresses = 23; - * @return {!Array} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getAcceptedRefundAgentNodeAddressesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 23)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this -*/ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setAcceptedRefundAgentNodeAddressesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 23, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.NodeAddress=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.addAcceptedRefundAgentNodeAddresses = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 23, opt_value, proto.io.bisq.protobuffer.NodeAddress, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.clearAcceptedRefundAgentNodeAddressesList = function() { - return this.setAcceptedRefundAgentNodeAddressesList([]); -}; - - -/** - * optional NodeAddress refund_agent_node_address = 24; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getRefundAgentNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 24)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this -*/ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setRefundAgentNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 24, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.clearRefundAgentNodeAddress = function() { - return this.setRefundAgentNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.hasRefundAgentNodeAddress = function() { - return jspb.Message.getField(this, 24) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.repeatedFields_ = [8]; - - - -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.InputsForDepositTxResponse.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.InputsForDepositTxResponse.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.InputsForDepositTxResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.toObject = function(includeInstance, msg) { - var f, obj = { - tradeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - makerPaymentAccountPayload: (f = msg.getMakerPaymentAccountPayload()) && proto.io.bisq.protobuffer.PaymentAccountPayload.toObject(includeInstance, f), - makerAccountId: jspb.Message.getFieldWithDefault(msg, 3, ""), - makerContractAsJson: jspb.Message.getFieldWithDefault(msg, 4, ""), - makerContractSignature: jspb.Message.getFieldWithDefault(msg, 5, ""), - makerPayoutAddressString: jspb.Message.getFieldWithDefault(msg, 6, ""), - preparedDepositTx: msg.getPreparedDepositTx_asB64(), - makerInputsList: jspb.Message.toObjectList(msg.getMakerInputsList(), - proto.io.bisq.protobuffer.RawTransactionInput.toObject, includeInstance), - makerMultiSigPubKey: msg.getMakerMultiSigPubKey_asB64(), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - uid: jspb.Message.getFieldWithDefault(msg, 11, ""), - accountAgeWitnessSignatureOfPreparedDepositTx: msg.getAccountAgeWitnessSignatureOfPreparedDepositTx_asB64(), - currentDate: jspb.Message.getFieldWithDefault(msg, 13, 0), - lockTime: jspb.Message.getFieldWithDefault(msg, 14, 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.InputsForDepositTxResponse} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.InputsForDepositTxResponse; - return proto.io.bisq.protobuffer.InputsForDepositTxResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.InputsForDepositTxResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxResponse} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.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 = new proto.io.bisq.protobuffer.PaymentAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccountPayload.deserializeBinaryFromReader); - msg.setMakerPaymentAccountPayload(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setMakerAccountId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setMakerContractAsJson(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setMakerContractSignature(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setMakerPayoutAddressString(value); - break; - case 7: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPreparedDepositTx(value); - break; - case 8: - var value = new proto.io.bisq.protobuffer.RawTransactionInput; - reader.readMessage(value,proto.io.bisq.protobuffer.RawTransactionInput.deserializeBinaryFromReader); - msg.addMakerInputs(value); - break; - case 9: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setMakerMultiSigPubKey(value); - break; - case 10: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 12: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setAccountAgeWitnessSignatureOfPreparedDepositTx(value); - break; - case 13: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCurrentDate(value); - break; - case 14: - var value = /** @type {number} */ (reader.readInt64()); - msg.setLockTime(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.InputsForDepositTxResponse.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.InputsForDepositTxResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMakerPaymentAccountPayload(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.PaymentAccountPayload.serializeBinaryToWriter - ); - } - f = message.getMakerAccountId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getMakerContractAsJson(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getMakerContractSignature(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getMakerPayoutAddressString(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getPreparedDepositTx_asU8(); - if (f.length > 0) { - writer.writeBytes( - 7, - f - ); - } - f = message.getMakerInputsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 8, - f, - proto.io.bisq.protobuffer.RawTransactionInput.serializeBinaryToWriter - ); - } - f = message.getMakerMultiSigPubKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 9, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 10, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getAccountAgeWitnessSignatureOfPreparedDepositTx_asU8(); - if (f.length > 0) { - writer.writeBytes( - 12, - f - ); - } - f = message.getCurrentDate(); - if (f !== 0) { - writer.writeInt64( - 13, - f - ); - } - f = message.getLockTime(); - if (f !== 0) { - writer.writeInt64( - 14, - f - ); - } -}; - - -/** - * optional string trade_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxResponse} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional PaymentAccountPayload maker_payment_account_payload = 2; - * @return {?proto.io.bisq.protobuffer.PaymentAccountPayload} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getMakerPaymentAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.PaymentAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PaymentAccountPayload, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PaymentAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxResponse} returns this -*/ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.setMakerPaymentAccountPayload = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxResponse} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.clearMakerPaymentAccountPayload = function() { - return this.setMakerPaymentAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.hasMakerPaymentAccountPayload = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string maker_account_id = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getMakerAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxResponse} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.setMakerAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string maker_contract_as_json = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getMakerContractAsJson = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxResponse} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.setMakerContractAsJson = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string maker_contract_signature = 5; - * @return {string} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getMakerContractSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxResponse} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.setMakerContractSignature = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string maker_payout_address_string = 6; - * @return {string} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getMakerPayoutAddressString = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxResponse} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.setMakerPayoutAddressString = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional bytes prepared_deposit_tx = 7; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getPreparedDepositTx = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * optional bytes prepared_deposit_tx = 7; - * This is a type-conversion wrapper around `getPreparedDepositTx()` - * @return {string} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getPreparedDepositTx_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPreparedDepositTx())); -}; - - -/** - * optional bytes prepared_deposit_tx = 7; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPreparedDepositTx()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getPreparedDepositTx_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPreparedDepositTx())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxResponse} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.setPreparedDepositTx = function(value) { - return jspb.Message.setProto3BytesField(this, 7, value); -}; - - -/** - * repeated RawTransactionInput maker_inputs = 8; - * @return {!Array} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getMakerInputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.RawTransactionInput, 8)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxResponse} returns this -*/ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.setMakerInputsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 8, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.RawTransactionInput=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.RawTransactionInput} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.addMakerInputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.io.bisq.protobuffer.RawTransactionInput, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxResponse} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.clearMakerInputsList = function() { - return this.setMakerInputsList([]); -}; - - -/** - * optional bytes maker_multi_sig_pub_key = 9; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getMakerMultiSigPubKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * optional bytes maker_multi_sig_pub_key = 9; - * This is a type-conversion wrapper around `getMakerMultiSigPubKey()` - * @return {string} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getMakerMultiSigPubKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getMakerMultiSigPubKey())); -}; - - -/** - * optional bytes maker_multi_sig_pub_key = 9; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getMakerMultiSigPubKey()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getMakerMultiSigPubKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getMakerMultiSigPubKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxResponse} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.setMakerMultiSigPubKey = function(value) { - return jspb.Message.setProto3BytesField(this, 9, value); -}; - - -/** - * optional NodeAddress sender_node_address = 10; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 10)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxResponse} returns this -*/ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxResponse} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional string uid = 11; - * @return {string} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxResponse} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional bytes account_age_witness_signature_of_prepared_deposit_tx = 12; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getAccountAgeWitnessSignatureOfPreparedDepositTx = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * optional bytes account_age_witness_signature_of_prepared_deposit_tx = 12; - * This is a type-conversion wrapper around `getAccountAgeWitnessSignatureOfPreparedDepositTx()` - * @return {string} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getAccountAgeWitnessSignatureOfPreparedDepositTx_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getAccountAgeWitnessSignatureOfPreparedDepositTx())); -}; - - -/** - * optional bytes account_age_witness_signature_of_prepared_deposit_tx = 12; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getAccountAgeWitnessSignatureOfPreparedDepositTx()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getAccountAgeWitnessSignatureOfPreparedDepositTx_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getAccountAgeWitnessSignatureOfPreparedDepositTx())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxResponse} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.setAccountAgeWitnessSignatureOfPreparedDepositTx = function(value) { - return jspb.Message.setProto3BytesField(this, 12, value); -}; - - -/** - * optional int64 current_date = 13; - * @return {number} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getCurrentDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxResponse} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.setCurrentDate = function(value) { - return jspb.Message.setProto3IntField(this, 13, value); -}; - - -/** - * optional int64 lock_time = 14; - * @return {number} - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getLockTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.InputsForDepositTxResponse} returns this - */ -proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.setLockTime = function(value) { - return jspb.Message.setProto3IntField(this, 14, 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.InitTradeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.InitTradeRequest.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.InitTradeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.InitTradeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tradeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - pubKeyRing: (f = msg.getPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - tradeAmount: jspb.Message.getFieldWithDefault(msg, 4, 0), - tradePrice: jspb.Message.getFieldWithDefault(msg, 5, 0), - tradeFee: jspb.Message.getFieldWithDefault(msg, 6, 0), - accountId: jspb.Message.getFieldWithDefault(msg, 7, ""), - paymentAccountId: jspb.Message.getFieldWithDefault(msg, 8, ""), - paymentMethodId: jspb.Message.getFieldWithDefault(msg, 9, ""), - uid: jspb.Message.getFieldWithDefault(msg, 10, ""), - accountAgeWitnessSignatureOfOfferId: msg.getAccountAgeWitnessSignatureOfOfferId_asB64(), - currentDate: jspb.Message.getFieldWithDefault(msg, 12, 0), - makerNodeAddress: (f = msg.getMakerNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - takerNodeAddress: (f = msg.getTakerNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - arbitratorNodeAddress: (f = msg.getArbitratorNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - reserveTxHash: jspb.Message.getFieldWithDefault(msg, 16, ""), - reserveTxHex: jspb.Message.getFieldWithDefault(msg, 17, ""), - reserveTxKey: jspb.Message.getFieldWithDefault(msg, 18, ""), - payoutAddress: jspb.Message.getFieldWithDefault(msg, 19, ""), - makerSignature: jspb.Message.getFieldWithDefault(msg, 20, "") - }; - - 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.InitTradeRequest} - */ -proto.io.bisq.protobuffer.InitTradeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.InitTradeRequest; - return proto.io.bisq.protobuffer.InitTradeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.InitTradeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} - */ -proto.io.bisq.protobuffer.InitTradeRequest.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 = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setPubKeyRing(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTradeAmount(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTradePrice(value); - break; - case 6: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTradeFee(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setAccountId(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setPaymentAccountId(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setPaymentMethodId(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 11: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setAccountAgeWitnessSignatureOfOfferId(value); - break; - case 12: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCurrentDate(value); - break; - case 13: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setMakerNodeAddress(value); - break; - case 14: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setTakerNodeAddress(value); - break; - case 15: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setArbitratorNodeAddress(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setReserveTxHash(value); - break; - case 17: - var value = /** @type {string} */ (reader.readString()); - msg.setReserveTxHex(value); - break; - case 18: - var value = /** @type {string} */ (reader.readString()); - msg.setReserveTxKey(value); - break; - case 19: - var value = /** @type {string} */ (reader.readString()); - msg.setPayoutAddress(value); - break; - case 20: - var value = /** @type {string} */ (reader.readString()); - msg.setMakerSignature(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.InitTradeRequest.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.InitTradeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.InitTradeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getPubKeyRing(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getTradeAmount(); - if (f !== 0) { - writer.writeInt64( - 4, - f - ); - } - f = message.getTradePrice(); - if (f !== 0) { - writer.writeInt64( - 5, - f - ); - } - f = message.getTradeFee(); - if (f !== 0) { - writer.writeInt64( - 6, - f - ); - } - f = message.getAccountId(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getPaymentAccountId(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getPaymentMethodId(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getAccountAgeWitnessSignatureOfOfferId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 11, - f - ); - } - f = message.getCurrentDate(); - if (f !== 0) { - writer.writeInt64( - 12, - f - ); - } - f = message.getMakerNodeAddress(); - if (f != null) { - writer.writeMessage( - 13, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getTakerNodeAddress(); - if (f != null) { - writer.writeMessage( - 14, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getArbitratorNodeAddress(); - if (f != null) { - writer.writeMessage( - 15, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getReserveTxHash(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); - } - f = message.getReserveTxHex(); - if (f.length > 0) { - writer.writeString( - 17, - f - ); - } - f = message.getReserveTxKey(); - if (f.length > 0) { - writer.writeString( - 18, - f - ); - } - f = message.getPayoutAddress(); - if (f.length > 0) { - writer.writeString( - 19, - f - ); - } - f = message.getMakerSignature(); - if (f.length > 0) { - writer.writeString( - 20, - f - ); - } -}; - - -/** - * optional string trade_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional NodeAddress sender_node_address = 2; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this -*/ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional PubKeyRing pub_key_ring = 3; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this -*/ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.clearPubKeyRing = function() { - return this.setPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.hasPubKeyRing = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional int64 trade_amount = 4; - * @return {number} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getTradeAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setTradeAmount = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional int64 trade_price = 5; - * @return {number} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getTradePrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setTradePrice = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional int64 trade_fee = 6; - * @return {number} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getTradeFee = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setTradeFee = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional string account_id = 7; - * @return {string} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string payment_account_id = 8; - * @return {string} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getPaymentAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setPaymentAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string payment_method_id = 9; - * @return {string} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getPaymentMethodId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setPaymentMethodId = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional string uid = 10; - * @return {string} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); -}; - - -/** - * optional bytes account_age_witness_signature_of_offer_id = 11; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getAccountAgeWitnessSignatureOfOfferId = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * optional bytes account_age_witness_signature_of_offer_id = 11; - * This is a type-conversion wrapper around `getAccountAgeWitnessSignatureOfOfferId()` - * @return {string} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getAccountAgeWitnessSignatureOfOfferId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getAccountAgeWitnessSignatureOfOfferId())); -}; - - -/** - * optional bytes account_age_witness_signature_of_offer_id = 11; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getAccountAgeWitnessSignatureOfOfferId()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getAccountAgeWitnessSignatureOfOfferId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getAccountAgeWitnessSignatureOfOfferId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setAccountAgeWitnessSignatureOfOfferId = function(value) { - return jspb.Message.setProto3BytesField(this, 11, value); -}; - - -/** - * optional int64 current_date = 12; - * @return {number} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getCurrentDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setCurrentDate = function(value) { - return jspb.Message.setProto3IntField(this, 12, value); -}; - - -/** - * optional NodeAddress maker_node_address = 13; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getMakerNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 13)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this -*/ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setMakerNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 13, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.clearMakerNodeAddress = function() { - return this.setMakerNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.hasMakerNodeAddress = function() { - return jspb.Message.getField(this, 13) != null; -}; - - -/** - * optional NodeAddress taker_node_address = 14; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getTakerNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 14)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this -*/ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setTakerNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 14, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.clearTakerNodeAddress = function() { - return this.setTakerNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.hasTakerNodeAddress = function() { - return jspb.Message.getField(this, 14) != null; -}; - - -/** - * optional NodeAddress arbitrator_node_address = 15; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getArbitratorNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 15)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this -*/ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setArbitratorNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 15, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.clearArbitratorNodeAddress = function() { - return this.setArbitratorNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.hasArbitratorNodeAddress = function() { - return jspb.Message.getField(this, 15) != null; -}; - - -/** - * optional string reserve_tx_hash = 16; - * @return {string} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getReserveTxHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setReserveTxHash = function(value) { - return jspb.Message.setProto3StringField(this, 16, value); -}; - - -/** - * optional string reserve_tx_hex = 17; - * @return {string} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getReserveTxHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setReserveTxHex = function(value) { - return jspb.Message.setProto3StringField(this, 17, value); -}; - - -/** - * optional string reserve_tx_key = 18; - * @return {string} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getReserveTxKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setReserveTxKey = function(value) { - return jspb.Message.setProto3StringField(this, 18, value); -}; - - -/** - * optional string payout_address = 19; - * @return {string} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getPayoutAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setPayoutAddress = function(value) { - return jspb.Message.setProto3StringField(this, 19, value); -}; - - -/** - * optional string maker_signature = 20; - * @return {string} - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.getMakerSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this - */ -proto.io.bisq.protobuffer.InitTradeRequest.prototype.setMakerSignature = function(value) { - return jspb.Message.setProto3StringField(this, 20, 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.InitMultisigRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.InitMultisigRequest.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.InitMultisigRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.InitMultisigRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tradeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - pubKeyRing: (f = msg.getPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - uid: jspb.Message.getFieldWithDefault(msg, 4, ""), - currentDate: jspb.Message.getFieldWithDefault(msg, 5, 0), - preparedMultisigHex: jspb.Message.getFieldWithDefault(msg, 6, ""), - madeMultisigHex: 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.InitMultisigRequest} - */ -proto.io.bisq.protobuffer.InitMultisigRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.InitMultisigRequest; - return proto.io.bisq.protobuffer.InitMultisigRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.InitMultisigRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.InitMultisigRequest} - */ -proto.io.bisq.protobuffer.InitMultisigRequest.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 = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setPubKeyRing(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCurrentDate(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setPreparedMultisigHex(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setMadeMultisigHex(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.InitMultisigRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.InitMultisigRequest.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.InitMultisigRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.InitMultisigRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getPubKeyRing(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getCurrentDate(); - if (f !== 0) { - writer.writeInt64( - 5, - f - ); - } - f = message.getPreparedMultisigHex(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getMadeMultisigHex(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } -}; - - -/** - * optional string trade_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.InitMultisigRequest.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InitMultisigRequest} returns this - */ -proto.io.bisq.protobuffer.InitMultisigRequest.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional NodeAddress sender_node_address = 2; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.InitMultisigRequest.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.InitMultisigRequest} returns this -*/ -proto.io.bisq.protobuffer.InitMultisigRequest.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.InitMultisigRequest} returns this - */ -proto.io.bisq.protobuffer.InitMultisigRequest.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.InitMultisigRequest.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional PubKeyRing pub_key_ring = 3; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.InitMultisigRequest.prototype.getPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.InitMultisigRequest} returns this -*/ -proto.io.bisq.protobuffer.InitMultisigRequest.prototype.setPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.InitMultisigRequest} returns this - */ -proto.io.bisq.protobuffer.InitMultisigRequest.prototype.clearPubKeyRing = function() { - return this.setPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.InitMultisigRequest.prototype.hasPubKeyRing = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string uid = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.InitMultisigRequest.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InitMultisigRequest} returns this - */ -proto.io.bisq.protobuffer.InitMultisigRequest.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional int64 current_date = 5; - * @return {number} - */ -proto.io.bisq.protobuffer.InitMultisigRequest.prototype.getCurrentDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.InitMultisigRequest} returns this - */ -proto.io.bisq.protobuffer.InitMultisigRequest.prototype.setCurrentDate = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional string prepared_multisig_hex = 6; - * @return {string} - */ -proto.io.bisq.protobuffer.InitMultisigRequest.prototype.getPreparedMultisigHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InitMultisigRequest} returns this - */ -proto.io.bisq.protobuffer.InitMultisigRequest.prototype.setPreparedMultisigHex = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string made_multisig_hex = 7; - * @return {string} - */ -proto.io.bisq.protobuffer.InitMultisigRequest.prototype.getMadeMultisigHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InitMultisigRequest} returns this - */ -proto.io.bisq.protobuffer.InitMultisigRequest.prototype.setMadeMultisigHex = 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.SignContractRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SignContractRequest.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.SignContractRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SignContractRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tradeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - pubKeyRing: (f = msg.getPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - uid: jspb.Message.getFieldWithDefault(msg, 4, ""), - currentDate: jspb.Message.getFieldWithDefault(msg, 5, 0), - accountId: jspb.Message.getFieldWithDefault(msg, 6, ""), - paymentAccountPayloadHash: msg.getPaymentAccountPayloadHash_asB64(), - payoutAddress: jspb.Message.getFieldWithDefault(msg, 8, ""), - depositTxHash: jspb.Message.getFieldWithDefault(msg, 9, "") - }; - - 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.SignContractRequest} - */ -proto.io.bisq.protobuffer.SignContractRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SignContractRequest; - return proto.io.bisq.protobuffer.SignContractRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SignContractRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SignContractRequest} - */ -proto.io.bisq.protobuffer.SignContractRequest.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 = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setPubKeyRing(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCurrentDate(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setAccountId(value); - break; - case 7: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPaymentAccountPayloadHash(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setPayoutAddress(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setDepositTxHash(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SignContractRequest.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.SignContractRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SignContractRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getPubKeyRing(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getCurrentDate(); - if (f !== 0) { - writer.writeInt64( - 5, - f - ); - } - f = message.getAccountId(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getPaymentAccountPayloadHash_asU8(); - if (f.length > 0) { - writer.writeBytes( - 7, - f - ); - } - f = message.getPayoutAddress(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getDepositTxHash(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } -}; - - -/** - * optional string trade_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignContractRequest} returns this - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional NodeAddress sender_node_address = 2; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.SignContractRequest} returns this -*/ -proto.io.bisq.protobuffer.SignContractRequest.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.SignContractRequest} returns this - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional PubKeyRing pub_key_ring = 3; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.getPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.SignContractRequest} returns this -*/ -proto.io.bisq.protobuffer.SignContractRequest.prototype.setPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.SignContractRequest} returns this - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.clearPubKeyRing = function() { - return this.setPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.hasPubKeyRing = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string uid = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignContractRequest} returns this - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional int64 current_date = 5; - * @return {number} - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.getCurrentDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.SignContractRequest} returns this - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.setCurrentDate = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional string account_id = 6; - * @return {string} - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.getAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignContractRequest} returns this - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.setAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional bytes payment_account_payload_hash = 7; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.getPaymentAccountPayloadHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * optional bytes payment_account_payload_hash = 7; - * This is a type-conversion wrapper around `getPaymentAccountPayloadHash()` - * @return {string} - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.getPaymentAccountPayloadHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPaymentAccountPayloadHash())); -}; - - -/** - * optional bytes payment_account_payload_hash = 7; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPaymentAccountPayloadHash()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.getPaymentAccountPayloadHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPaymentAccountPayloadHash())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.SignContractRequest} returns this - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.setPaymentAccountPayloadHash = function(value) { - return jspb.Message.setProto3BytesField(this, 7, value); -}; - - -/** - * optional string payout_address = 8; - * @return {string} - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.getPayoutAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignContractRequest} returns this - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.setPayoutAddress = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string deposit_tx_hash = 9; - * @return {string} - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.getDepositTxHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignContractRequest} returns this - */ -proto.io.bisq.protobuffer.SignContractRequest.prototype.setDepositTxHash = function(value) { - return jspb.Message.setProto3StringField(this, 9, 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.SignContractResponse.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SignContractResponse.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.SignContractResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SignContractResponse.toObject = function(includeInstance, msg) { - var f, obj = { - tradeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - pubKeyRing: (f = msg.getPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - uid: jspb.Message.getFieldWithDefault(msg, 4, ""), - currentDate: jspb.Message.getFieldWithDefault(msg, 5, 0), - contractSignature: jspb.Message.getFieldWithDefault(msg, 6, "") - }; - - 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.SignContractResponse} - */ -proto.io.bisq.protobuffer.SignContractResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SignContractResponse; - return proto.io.bisq.protobuffer.SignContractResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SignContractResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SignContractResponse} - */ -proto.io.bisq.protobuffer.SignContractResponse.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 = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setPubKeyRing(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCurrentDate(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setContractSignature(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SignContractResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SignContractResponse.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.SignContractResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SignContractResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getPubKeyRing(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getCurrentDate(); - if (f !== 0) { - writer.writeInt64( - 5, - f - ); - } - f = message.getContractSignature(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } -}; - - -/** - * optional string trade_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.SignContractResponse.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignContractResponse} returns this - */ -proto.io.bisq.protobuffer.SignContractResponse.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional NodeAddress sender_node_address = 2; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.SignContractResponse.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.SignContractResponse} returns this -*/ -proto.io.bisq.protobuffer.SignContractResponse.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.SignContractResponse} returns this - */ -proto.io.bisq.protobuffer.SignContractResponse.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.SignContractResponse.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional PubKeyRing pub_key_ring = 3; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.SignContractResponse.prototype.getPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.SignContractResponse} returns this -*/ -proto.io.bisq.protobuffer.SignContractResponse.prototype.setPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.SignContractResponse} returns this - */ -proto.io.bisq.protobuffer.SignContractResponse.prototype.clearPubKeyRing = function() { - return this.setPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.SignContractResponse.prototype.hasPubKeyRing = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string uid = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.SignContractResponse.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignContractResponse} returns this - */ -proto.io.bisq.protobuffer.SignContractResponse.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional int64 current_date = 5; - * @return {number} - */ -proto.io.bisq.protobuffer.SignContractResponse.prototype.getCurrentDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.SignContractResponse} returns this - */ -proto.io.bisq.protobuffer.SignContractResponse.prototype.setCurrentDate = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional string contract_signature = 6; - * @return {string} - */ -proto.io.bisq.protobuffer.SignContractResponse.prototype.getContractSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignContractResponse} returns this - */ -proto.io.bisq.protobuffer.SignContractResponse.prototype.setContractSignature = function(value) { - return jspb.Message.setProto3StringField(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.DepositRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.DepositRequest.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.DepositRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.DepositRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tradeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - pubKeyRing: (f = msg.getPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - uid: jspb.Message.getFieldWithDefault(msg, 4, ""), - currentDate: jspb.Message.getFieldWithDefault(msg, 5, 0), - contractSignature: jspb.Message.getFieldWithDefault(msg, 6, ""), - depositTxHex: jspb.Message.getFieldWithDefault(msg, 7, ""), - depositTxKey: jspb.Message.getFieldWithDefault(msg, 8, "") - }; - - 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.DepositRequest} - */ -proto.io.bisq.protobuffer.DepositRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.DepositRequest; - return proto.io.bisq.protobuffer.DepositRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.DepositRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.DepositRequest} - */ -proto.io.bisq.protobuffer.DepositRequest.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 = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setPubKeyRing(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCurrentDate(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setContractSignature(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setDepositTxHex(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setDepositTxKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.DepositRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.DepositRequest.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.DepositRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.DepositRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getPubKeyRing(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getCurrentDate(); - if (f !== 0) { - writer.writeInt64( - 5, - f - ); - } - f = message.getContractSignature(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getDepositTxHex(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getDepositTxKey(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } -}; - - -/** - * optional string trade_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.DepositRequest.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DepositRequest} returns this - */ -proto.io.bisq.protobuffer.DepositRequest.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional NodeAddress sender_node_address = 2; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.DepositRequest.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.DepositRequest} returns this -*/ -proto.io.bisq.protobuffer.DepositRequest.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.DepositRequest} returns this - */ -proto.io.bisq.protobuffer.DepositRequest.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.DepositRequest.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional PubKeyRing pub_key_ring = 3; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.DepositRequest.prototype.getPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.DepositRequest} returns this -*/ -proto.io.bisq.protobuffer.DepositRequest.prototype.setPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.DepositRequest} returns this - */ -proto.io.bisq.protobuffer.DepositRequest.prototype.clearPubKeyRing = function() { - return this.setPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.DepositRequest.prototype.hasPubKeyRing = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string uid = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.DepositRequest.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DepositRequest} returns this - */ -proto.io.bisq.protobuffer.DepositRequest.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional int64 current_date = 5; - * @return {number} - */ -proto.io.bisq.protobuffer.DepositRequest.prototype.getCurrentDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.DepositRequest} returns this - */ -proto.io.bisq.protobuffer.DepositRequest.prototype.setCurrentDate = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional string contract_signature = 6; - * @return {string} - */ -proto.io.bisq.protobuffer.DepositRequest.prototype.getContractSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DepositRequest} returns this - */ -proto.io.bisq.protobuffer.DepositRequest.prototype.setContractSignature = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string deposit_tx_hex = 7; - * @return {string} - */ -proto.io.bisq.protobuffer.DepositRequest.prototype.getDepositTxHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DepositRequest} returns this - */ -proto.io.bisq.protobuffer.DepositRequest.prototype.setDepositTxHex = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string deposit_tx_key = 8; - * @return {string} - */ -proto.io.bisq.protobuffer.DepositRequest.prototype.getDepositTxKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DepositRequest} returns this - */ -proto.io.bisq.protobuffer.DepositRequest.prototype.setDepositTxKey = function(value) { - return jspb.Message.setProto3StringField(this, 8, 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.DepositResponse.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.DepositResponse.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.DepositResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.DepositResponse.toObject = function(includeInstance, msg) { - var f, obj = { - tradeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - pubKeyRing: (f = msg.getPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - uid: jspb.Message.getFieldWithDefault(msg, 4, ""), - currentDate: 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.DepositResponse} - */ -proto.io.bisq.protobuffer.DepositResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.DepositResponse; - return proto.io.bisq.protobuffer.DepositResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.DepositResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.DepositResponse} - */ -proto.io.bisq.protobuffer.DepositResponse.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 = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setPubKeyRing(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCurrentDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.DepositResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.DepositResponse.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.DepositResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.DepositResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getPubKeyRing(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getCurrentDate(); - if (f !== 0) { - writer.writeInt64( - 5, - f - ); - } -}; - - -/** - * optional string trade_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.DepositResponse.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DepositResponse} returns this - */ -proto.io.bisq.protobuffer.DepositResponse.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional NodeAddress sender_node_address = 2; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.DepositResponse.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.DepositResponse} returns this -*/ -proto.io.bisq.protobuffer.DepositResponse.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.DepositResponse} returns this - */ -proto.io.bisq.protobuffer.DepositResponse.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.DepositResponse.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional PubKeyRing pub_key_ring = 3; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.DepositResponse.prototype.getPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.DepositResponse} returns this -*/ -proto.io.bisq.protobuffer.DepositResponse.prototype.setPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.DepositResponse} returns this - */ -proto.io.bisq.protobuffer.DepositResponse.prototype.clearPubKeyRing = function() { - return this.setPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.DepositResponse.prototype.hasPubKeyRing = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string uid = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.DepositResponse.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DepositResponse} returns this - */ -proto.io.bisq.protobuffer.DepositResponse.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional int64 current_date = 5; - * @return {number} - */ -proto.io.bisq.protobuffer.DepositResponse.prototype.getCurrentDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.DepositResponse} returns this - */ -proto.io.bisq.protobuffer.DepositResponse.prototype.setCurrentDate = 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.PaymentAccountPayloadRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.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.PaymentAccountPayloadRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tradeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - pubKeyRing: (f = msg.getPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - uid: jspb.Message.getFieldWithDefault(msg, 4, ""), - currentDate: jspb.Message.getFieldWithDefault(msg, 5, 0), - paymentAccountPayload: (f = msg.getPaymentAccountPayload()) && proto.io.bisq.protobuffer.PaymentAccountPayload.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.PaymentAccountPayloadRequest} - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PaymentAccountPayloadRequest; - return proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PaymentAccountPayloadRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayloadRequest} - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.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 = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setPubKeyRing(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCurrentDate(value); - break; - case 6: - var value = new proto.io.bisq.protobuffer.PaymentAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccountPayload.deserializeBinaryFromReader); - msg.setPaymentAccountPayload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.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.PaymentAccountPayloadRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getPubKeyRing(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getCurrentDate(); - if (f !== 0) { - writer.writeInt64( - 5, - f - ); - } - f = message.getPaymentAccountPayload(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.io.bisq.protobuffer.PaymentAccountPayload.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string trade_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayloadRequest} returns this - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional NodeAddress sender_node_address = 2; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayloadRequest} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayloadRequest} returns this - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional PubKeyRing pub_key_ring = 3; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.prototype.getPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayloadRequest} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.prototype.setPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayloadRequest} returns this - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.prototype.clearPubKeyRing = function() { - return this.setPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.prototype.hasPubKeyRing = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string uid = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayloadRequest} returns this - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional int64 current_date = 5; - * @return {number} - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.prototype.getCurrentDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayloadRequest} returns this - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.prototype.setCurrentDate = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional PaymentAccountPayload payment_account_payload = 6; - * @return {?proto.io.bisq.protobuffer.PaymentAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.prototype.getPaymentAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.PaymentAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PaymentAccountPayload, 6)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PaymentAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayloadRequest} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.prototype.setPaymentAccountPayload = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayloadRequest} returns this - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.prototype.clearPaymentAccountPayload = function() { - return this.setPaymentAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayloadRequest.prototype.hasPaymentAccountPayload = function() { - return jspb.Message.getField(this, 6) != 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.UpdateMultisigRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.UpdateMultisigRequest.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.UpdateMultisigRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.UpdateMultisigRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tradeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - pubKeyRing: (f = msg.getPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - uid: jspb.Message.getFieldWithDefault(msg, 4, ""), - currentDate: jspb.Message.getFieldWithDefault(msg, 5, 0), - updatedMultisigHex: jspb.Message.getFieldWithDefault(msg, 6, "") - }; - - 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.UpdateMultisigRequest} - */ -proto.io.bisq.protobuffer.UpdateMultisigRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.UpdateMultisigRequest; - return proto.io.bisq.protobuffer.UpdateMultisigRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.UpdateMultisigRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.UpdateMultisigRequest} - */ -proto.io.bisq.protobuffer.UpdateMultisigRequest.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 = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setPubKeyRing(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCurrentDate(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setUpdatedMultisigHex(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.UpdateMultisigRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.UpdateMultisigRequest.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.UpdateMultisigRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.UpdateMultisigRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getPubKeyRing(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getCurrentDate(); - if (f !== 0) { - writer.writeInt64( - 5, - f - ); - } - f = message.getUpdatedMultisigHex(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } -}; - - -/** - * optional string trade_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.UpdateMultisigRequest.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.UpdateMultisigRequest} returns this - */ -proto.io.bisq.protobuffer.UpdateMultisigRequest.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional NodeAddress sender_node_address = 2; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.UpdateMultisigRequest.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.UpdateMultisigRequest} returns this -*/ -proto.io.bisq.protobuffer.UpdateMultisigRequest.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.UpdateMultisigRequest} returns this - */ -proto.io.bisq.protobuffer.UpdateMultisigRequest.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.UpdateMultisigRequest.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional PubKeyRing pub_key_ring = 3; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.UpdateMultisigRequest.prototype.getPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.UpdateMultisigRequest} returns this -*/ -proto.io.bisq.protobuffer.UpdateMultisigRequest.prototype.setPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.UpdateMultisigRequest} returns this - */ -proto.io.bisq.protobuffer.UpdateMultisigRequest.prototype.clearPubKeyRing = function() { - return this.setPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.UpdateMultisigRequest.prototype.hasPubKeyRing = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string uid = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.UpdateMultisigRequest.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.UpdateMultisigRequest} returns this - */ -proto.io.bisq.protobuffer.UpdateMultisigRequest.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional int64 current_date = 5; - * @return {number} - */ -proto.io.bisq.protobuffer.UpdateMultisigRequest.prototype.getCurrentDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.UpdateMultisigRequest} returns this - */ -proto.io.bisq.protobuffer.UpdateMultisigRequest.prototype.setCurrentDate = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional string updated_multisig_hex = 6; - * @return {string} - */ -proto.io.bisq.protobuffer.UpdateMultisigRequest.prototype.getUpdatedMultisigHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.UpdateMultisigRequest} returns this - */ -proto.io.bisq.protobuffer.UpdateMultisigRequest.prototype.setUpdatedMultisigHex = function(value) { - return jspb.Message.setProto3StringField(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.UpdateMultisigResponse.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.UpdateMultisigResponse.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.UpdateMultisigResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.UpdateMultisigResponse.toObject = function(includeInstance, msg) { - var f, obj = { - tradeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - pubKeyRing: (f = msg.getPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - uid: jspb.Message.getFieldWithDefault(msg, 4, ""), - currentDate: jspb.Message.getFieldWithDefault(msg, 5, 0), - updatedMultisigHex: jspb.Message.getFieldWithDefault(msg, 6, "") - }; - - 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.UpdateMultisigResponse} - */ -proto.io.bisq.protobuffer.UpdateMultisigResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.UpdateMultisigResponse; - return proto.io.bisq.protobuffer.UpdateMultisigResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.UpdateMultisigResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.UpdateMultisigResponse} - */ -proto.io.bisq.protobuffer.UpdateMultisigResponse.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 = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setPubKeyRing(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCurrentDate(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setUpdatedMultisigHex(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.UpdateMultisigResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.UpdateMultisigResponse.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.UpdateMultisigResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.UpdateMultisigResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getPubKeyRing(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getCurrentDate(); - if (f !== 0) { - writer.writeInt64( - 5, - f - ); - } - f = message.getUpdatedMultisigHex(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } -}; - - -/** - * optional string trade_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.UpdateMultisigResponse.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.UpdateMultisigResponse} returns this - */ -proto.io.bisq.protobuffer.UpdateMultisigResponse.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional NodeAddress sender_node_address = 2; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.UpdateMultisigResponse.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.UpdateMultisigResponse} returns this -*/ -proto.io.bisq.protobuffer.UpdateMultisigResponse.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.UpdateMultisigResponse} returns this - */ -proto.io.bisq.protobuffer.UpdateMultisigResponse.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.UpdateMultisigResponse.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional PubKeyRing pub_key_ring = 3; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.UpdateMultisigResponse.prototype.getPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.UpdateMultisigResponse} returns this -*/ -proto.io.bisq.protobuffer.UpdateMultisigResponse.prototype.setPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.UpdateMultisigResponse} returns this - */ -proto.io.bisq.protobuffer.UpdateMultisigResponse.prototype.clearPubKeyRing = function() { - return this.setPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.UpdateMultisigResponse.prototype.hasPubKeyRing = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string uid = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.UpdateMultisigResponse.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.UpdateMultisigResponse} returns this - */ -proto.io.bisq.protobuffer.UpdateMultisigResponse.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional int64 current_date = 5; - * @return {number} - */ -proto.io.bisq.protobuffer.UpdateMultisigResponse.prototype.getCurrentDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.UpdateMultisigResponse} returns this - */ -proto.io.bisq.protobuffer.UpdateMultisigResponse.prototype.setCurrentDate = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional string updated_multisig_hex = 6; - * @return {string} - */ -proto.io.bisq.protobuffer.UpdateMultisigResponse.prototype.getUpdatedMultisigHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.UpdateMultisigResponse} returns this - */ -proto.io.bisq.protobuffer.UpdateMultisigResponse.prototype.setUpdatedMultisigHex = function(value) { - return jspb.Message.setProto3StringField(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.DelayedPayoutTxSignatureRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.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.DelayedPayoutTxSignatureRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.toObject = function(includeInstance, msg) { - var f, obj = { - 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(), - delayedPayoutTxSellerSignature: msg.getDelayedPayoutTxSellerSignature_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.DelayedPayoutTxSignatureRequest} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest; - return proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.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.setUid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTradeId(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 4: - 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; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.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.DelayedPayoutTxSignatureRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getDelayedPayoutTx_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getDelayedPayoutTxSellerSignature_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } -}; - - -/** - * optional string uid = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest} returns this - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string trade_id = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest} returns this - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional NodeAddress sender_node_address = 3; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest} returns this -*/ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest} returns this - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional bytes delayed_payout_tx = 4; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.getDelayedPayoutTx = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes delayed_payout_tx = 4; - * This is a type-conversion wrapper around `getDelayedPayoutTx()` - * @return {string} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.getDelayedPayoutTx_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getDelayedPayoutTx())); -}; - - -/** - * optional bytes delayed_payout_tx = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getDelayedPayoutTx()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.getDelayedPayoutTx_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getDelayedPayoutTx())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest} returns this - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.setDelayedPayoutTx = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * optional bytes delayed_payout_tx_seller_signature = 5; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.getDelayedPayoutTxSellerSignature = function() { - return /** @type {!(string|Uint8Array)} */ (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); -}; - - - - - -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.DelayedPayoutTxSignatureResponse.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.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.DelayedPayoutTxSignatureResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.toObject = function(includeInstance, msg) { - var f, obj = { - uid: jspb.Message.getFieldWithDefault(msg, 1, ""), - tradeId: jspb.Message.getFieldWithDefault(msg, 2, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - delayedPayoutTxBuyerSignature: msg.getDelayedPayoutTxBuyerSignature_asB64(), - depositTx: msg.getDepositTx_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.DelayedPayoutTxSignatureResponse} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse; - return proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.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.setUid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTradeId(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setDelayedPayoutTxBuyerSignature(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setDepositTx(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.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.DelayedPayoutTxSignatureResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getDelayedPayoutTxBuyerSignature_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getDepositTx_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } -}; - - -/** - * optional string uid = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse} returns this - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string trade_id = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse} returns this - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional NodeAddress sender_node_address = 3; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse} returns this -*/ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse} returns this - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional bytes delayed_payout_tx_buyer_signature = 4; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getDelayedPayoutTxBuyerSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes delayed_payout_tx_buyer_signature = 4; - * This is a type-conversion wrapper around `getDelayedPayoutTxBuyerSignature()` - * @return {string} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getDelayedPayoutTxBuyerSignature_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getDelayedPayoutTxBuyerSignature())); -}; - - -/** - * 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 `getDelayedPayoutTxBuyerSignature()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getDelayedPayoutTxBuyerSignature_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getDelayedPayoutTxBuyerSignature())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse} returns this - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.setDelayedPayoutTxBuyerSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * optional bytes deposit_tx = 5; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getDepositTx = function() { - return /** @type {!(string|Uint8Array)} */ (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); -}; - - - - - -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.DepositTxAndDelayedPayoutTxMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.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.DepositTxAndDelayedPayoutTxMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.toObject = function(includeInstance, msg) { - var f, obj = { - uid: jspb.Message.getFieldWithDefault(msg, 1, ""), - tradeId: jspb.Message.getFieldWithDefault(msg, 2, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - depositTx: msg.getDepositTx_asB64(), - delayedPayoutTx: msg.getDelayedPayoutTx_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.DepositTxAndDelayedPayoutTxMessage} - */ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage; - return proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage} - */ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.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.setUid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTradeId(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setDepositTx(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setDelayedPayoutTx(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.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.DepositTxAndDelayedPayoutTxMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getDepositTx_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getDelayedPayoutTx_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } -}; - - -/** - * optional string uid = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage} returns this - */ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string trade_id = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage} returns this - */ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional NodeAddress sender_node_address = 3; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage} returns this -*/ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage} returns this - */ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional bytes deposit_tx = 4; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.getDepositTx = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes deposit_tx = 4; - * This is a type-conversion wrapper around `getDepositTx()` - * @return {string} - */ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.getDepositTx_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getDepositTx())); -}; - - -/** - * optional bytes deposit_tx = 4; - * 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.DepositTxAndDelayedPayoutTxMessage.prototype.getDepositTx_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getDepositTx())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage} returns this - */ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.setDepositTx = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * optional bytes delayed_payout_tx = 5; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.getDelayedPayoutTx = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes delayed_payout_tx = 5; - * This is a type-conversion wrapper around `getDelayedPayoutTx()` - * @return {string} - */ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.getDelayedPayoutTx_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getDelayedPayoutTx())); -}; - - -/** - * optional bytes delayed_payout_tx = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getDelayedPayoutTx()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.getDelayedPayoutTx_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getDelayedPayoutTx())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage} returns this - */ -proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.setDelayedPayoutTx = function(value) { - return jspb.Message.setProto3BytesField(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.DepositTxMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.DepositTxMessage.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.DepositTxMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.DepositTxMessage.toObject = function(includeInstance, msg) { - var f, obj = { - 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, 102, ""), - depositTxId: jspb.Message.getFieldWithDefault(msg, 103, "") - }; - - 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.DepositTxMessage} - */ -proto.io.bisq.protobuffer.DepositTxMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.DepositTxMessage; - return proto.io.bisq.protobuffer.DepositTxMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.DepositTxMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.DepositTxMessage} - */ -proto.io.bisq.protobuffer.DepositTxMessage.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.setUid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTradeId(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - 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 102: - var value = /** @type {string} */ (reader.readString()); - msg.setTradeFeeTxId(value); - break; - case 103: - var value = /** @type {string} */ (reader.readString()); - msg.setDepositTxId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.DepositTxMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.DepositTxMessage.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.DepositTxMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.DepositTxMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 3, - f, - 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( - 100, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getTradeFeeTxId(); - if (f.length > 0) { - writer.writeString( - 102, - f - ); - } - f = message.getDepositTxId(); - if (f.length > 0) { - writer.writeString( - 103, - f - ); - } -}; - - -/** - * optional string uid = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.DepositTxMessage.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DepositTxMessage} returns this - */ -proto.io.bisq.protobuffer.DepositTxMessage.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string trade_id = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.DepositTxMessage.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DepositTxMessage} returns this - */ -proto.io.bisq.protobuffer.DepositTxMessage.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional NodeAddress sender_node_address = 3; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.DepositTxMessage.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.DepositTxMessage} returns this -*/ -proto.io.bisq.protobuffer.DepositTxMessage.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.DepositTxMessage} returns this - */ -proto.io.bisq.protobuffer.DepositTxMessage.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.DepositTxMessage.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional bytes deposit_tx_without_witnesses = 4; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.DepositTxMessage.prototype.getDepositTxWithoutWitnesses = function() { - return /** @type {!(string|Uint8Array)} */ (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, 100)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.DepositTxMessage} returns this -*/ -proto.io.bisq.protobuffer.DepositTxMessage.prototype.setPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 100, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.DepositTxMessage} returns this - */ -proto.io.bisq.protobuffer.DepositTxMessage.prototype.clearPubKeyRing = function() { - return this.setPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.DepositTxMessage.prototype.hasPubKeyRing = function() { - return jspb.Message.getField(this, 100) != null; -}; - - -/** - * optional string trade_fee_tx_id = 102; - * @return {string} - */ -proto.io.bisq.protobuffer.DepositTxMessage.prototype.getTradeFeeTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 102, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DepositTxMessage} returns this - */ -proto.io.bisq.protobuffer.DepositTxMessage.prototype.setTradeFeeTxId = function(value) { - return jspb.Message.setProto3StringField(this, 102, value); -}; - - -/** - * optional string deposit_tx_id = 103; - * @return {string} - */ -proto.io.bisq.protobuffer.DepositTxMessage.prototype.getDepositTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 103, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DepositTxMessage} returns this - */ -proto.io.bisq.protobuffer.DepositTxMessage.prototype.setDepositTxId = function(value) { - return jspb.Message.setProto3StringField(this, 103, 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.PeerPublishedDelayedPayoutTxMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.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.PeerPublishedDelayedPayoutTxMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.toObject = function(includeInstance, msg) { - var f, obj = { - uid: jspb.Message.getFieldWithDefault(msg, 1, ""), - tradeId: jspb.Message.getFieldWithDefault(msg, 2, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.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.PeerPublishedDelayedPayoutTxMessage} - */ -proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage; - return proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage} - */ -proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.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.setUid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTradeId(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.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.PeerPublishedDelayedPayoutTxMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string uid = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage} returns this - */ -proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string trade_id = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage} returns this - */ -proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional NodeAddress sender_node_address = 3; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage} returns this -*/ -proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage} returns this - */ -proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 3) != 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.CounterCurrencyTransferStartedMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.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.CounterCurrencyTransferStartedMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.toObject = function(includeInstance, msg) { - var f, obj = { - tradeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - buyerPayoutAddress: jspb.Message.getFieldWithDefault(msg, 2, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - buyerPayoutTxSigned: jspb.Message.getFieldWithDefault(msg, 4, ""), - counterCurrencyTxId: jspb.Message.getFieldWithDefault(msg, 5, ""), - uid: jspb.Message.getFieldWithDefault(msg, 6, ""), - counterCurrencyExtraData: 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.CounterCurrencyTransferStartedMessage} - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage; - return proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage} - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.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.setBuyerPayoutAddress(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setBuyerPayoutTxSigned(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setCounterCurrencyTxId(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setCounterCurrencyExtraData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.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.CounterCurrencyTransferStartedMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getBuyerPayoutAddress(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getBuyerPayoutTxSigned(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getCounterCurrencyTxId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getCounterCurrencyExtraData(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } -}; - - -/** - * optional string trade_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage} returns this - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string buyer_payout_address = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.prototype.getBuyerPayoutAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage} returns this - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.prototype.setBuyerPayoutAddress = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional NodeAddress sender_node_address = 3; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage} returns this -*/ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage} returns this - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string buyer_payout_tx_signed = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.prototype.getBuyerPayoutTxSigned = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage} returns this - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.prototype.setBuyerPayoutTxSigned = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string counter_currency_tx_id = 5; - * @return {string} - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.prototype.getCounterCurrencyTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage} returns this - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.prototype.setCounterCurrencyTxId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string uid = 6; - * @return {string} - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage} returns this - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string counter_currency_extra_data = 7; - * @return {string} - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.prototype.getCounterCurrencyExtraData = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage} returns this - */ -proto.io.bisq.protobuffer.CounterCurrencyTransferStartedMessage.prototype.setCounterCurrencyExtraData = 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.FinalizePayoutTxRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.FinalizePayoutTxRequest.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.FinalizePayoutTxRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.FinalizePayoutTxRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tradeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - sellerSignature: msg.getSellerSignature_asB64(), - sellerPayoutAddress: jspb.Message.getFieldWithDefault(msg, 3, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - uid: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - 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.FinalizePayoutTxRequest} - */ -proto.io.bisq.protobuffer.FinalizePayoutTxRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.FinalizePayoutTxRequest; - return proto.io.bisq.protobuffer.FinalizePayoutTxRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.FinalizePayoutTxRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.FinalizePayoutTxRequest} - */ -proto.io.bisq.protobuffer.FinalizePayoutTxRequest.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 {!Uint8Array} */ (reader.readBytes()); - msg.setSellerSignature(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSellerPayoutAddress(value); - break; - case 4: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.FinalizePayoutTxRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.FinalizePayoutTxRequest.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.FinalizePayoutTxRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.FinalizePayoutTxRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSellerSignature_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getSellerPayoutAddress(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional string trade_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.FinalizePayoutTxRequest.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.FinalizePayoutTxRequest} returns this - */ -proto.io.bisq.protobuffer.FinalizePayoutTxRequest.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes seller_signature = 2; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.FinalizePayoutTxRequest.prototype.getSellerSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes seller_signature = 2; - * This is a type-conversion wrapper around `getSellerSignature()` - * @return {string} - */ -proto.io.bisq.protobuffer.FinalizePayoutTxRequest.prototype.getSellerSignature_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSellerSignature())); -}; - - -/** - * optional bytes seller_signature = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSellerSignature()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.FinalizePayoutTxRequest.prototype.getSellerSignature_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSellerSignature())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.FinalizePayoutTxRequest} returns this - */ -proto.io.bisq.protobuffer.FinalizePayoutTxRequest.prototype.setSellerSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional string seller_payout_address = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.FinalizePayoutTxRequest.prototype.getSellerPayoutAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.FinalizePayoutTxRequest} returns this - */ -proto.io.bisq.protobuffer.FinalizePayoutTxRequest.prototype.setSellerPayoutAddress = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional NodeAddress sender_node_address = 4; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.FinalizePayoutTxRequest.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 4)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.FinalizePayoutTxRequest} returns this -*/ -proto.io.bisq.protobuffer.FinalizePayoutTxRequest.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.FinalizePayoutTxRequest} returns this - */ -proto.io.bisq.protobuffer.FinalizePayoutTxRequest.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.FinalizePayoutTxRequest.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string uid = 5; - * @return {string} - */ -proto.io.bisq.protobuffer.FinalizePayoutTxRequest.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.FinalizePayoutTxRequest} returns this - */ -proto.io.bisq.protobuffer.FinalizePayoutTxRequest.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(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.ArbitratorPayoutTxRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.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.ArbitratorPayoutTxRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.toObject = function(includeInstance, msg) { - var f, obj = { - dispute: (f = msg.getDispute()) && proto.io.bisq.protobuffer.Dispute.toObject(includeInstance, f), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - uid: jspb.Message.getFieldWithDefault(msg, 3, ""), - type: jspb.Message.getFieldWithDefault(msg, 4, 0), - updatedMultisigHex: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - 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.ArbitratorPayoutTxRequest} - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest; - return proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest} - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.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.Dispute; - reader.readMessage(value,proto.io.bisq.protobuffer.Dispute.deserializeBinaryFromReader); - msg.setDispute(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 4: - var value = /** @type {!proto.io.bisq.protobuffer.SupportType} */ (reader.readEnum()); - msg.setType(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setUpdatedMultisigHex(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.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.ArbitratorPayoutTxRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDispute(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.Dispute.serializeBinaryToWriter - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getUpdatedMultisigHex(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional Dispute dispute = 1; - * @return {?proto.io.bisq.protobuffer.Dispute} - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.prototype.getDispute = function() { - return /** @type{?proto.io.bisq.protobuffer.Dispute} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Dispute, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Dispute|undefined} value - * @return {!proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest} returns this -*/ -proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.prototype.setDispute = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest} returns this - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.prototype.clearDispute = function() { - return this.setDispute(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.prototype.hasDispute = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional NodeAddress sender_node_address = 2; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest} returns this -*/ -proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest} returns this - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string uid = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest} returns this - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional SupportType type = 4; - * @return {!proto.io.bisq.protobuffer.SupportType} - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.prototype.getType = function() { - return /** @type {!proto.io.bisq.protobuffer.SupportType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.SupportType} value - * @return {!proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest} returns this - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional string updated_multisig_hex = 5; - * @return {string} - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.prototype.getUpdatedMultisigHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest} returns this - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.prototype.setUpdatedMultisigHex = function(value) { - return jspb.Message.setProto3StringField(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.ArbitratorPayoutTxResponse.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.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.ArbitratorPayoutTxResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.toObject = function(includeInstance, msg) { - var f, obj = { - tradeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - uid: jspb.Message.getFieldWithDefault(msg, 3, ""), - type: jspb.Message.getFieldWithDefault(msg, 4, 0), - arbitratorSignedPayoutTxHex: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - 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.ArbitratorPayoutTxResponse} - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse; - return proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse} - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.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 = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 4: - var value = /** @type {!proto.io.bisq.protobuffer.SupportType} */ (reader.readEnum()); - msg.setType(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setArbitratorSignedPayoutTxHex(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.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.ArbitratorPayoutTxResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getArbitratorSignedPayoutTxHex(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional string trade_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse} returns this - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional NodeAddress sender_node_address = 2; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse} returns this -*/ -proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse} returns this - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string uid = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse} returns this - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional SupportType type = 4; - * @return {!proto.io.bisq.protobuffer.SupportType} - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.prototype.getType = function() { - return /** @type {!proto.io.bisq.protobuffer.SupportType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.SupportType} value - * @return {!proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse} returns this - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional string arbitrator_signed_payout_tx_hex = 5; - * @return {string} - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.prototype.getArbitratorSignedPayoutTxHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse} returns this - */ -proto.io.bisq.protobuffer.ArbitratorPayoutTxResponse.prototype.setArbitratorSignedPayoutTxHex = function(value) { - return jspb.Message.setProto3StringField(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.PayoutTxPublishedMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PayoutTxPublishedMessage.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.PayoutTxPublishedMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PayoutTxPublishedMessage.toObject = function(includeInstance, msg) { - var f, obj = { - tradeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - signedMultisigTxHex: jspb.Message.getFieldWithDefault(msg, 2, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - uid: jspb.Message.getFieldWithDefault(msg, 4, ""), - signedWitness: (f = msg.getSignedWitness()) && proto.io.bisq.protobuffer.SignedWitness.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.PayoutTxPublishedMessage} - */ -proto.io.bisq.protobuffer.PayoutTxPublishedMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PayoutTxPublishedMessage; - return proto.io.bisq.protobuffer.PayoutTxPublishedMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PayoutTxPublishedMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PayoutTxPublishedMessage} - */ -proto.io.bisq.protobuffer.PayoutTxPublishedMessage.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.setSignedMultisigTxHex(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 5: - var value = new proto.io.bisq.protobuffer.SignedWitness; - reader.readMessage(value,proto.io.bisq.protobuffer.SignedWitness.deserializeBinaryFromReader); - msg.setSignedWitness(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PayoutTxPublishedMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PayoutTxPublishedMessage.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.PayoutTxPublishedMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PayoutTxPublishedMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSignedMultisigTxHex(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getSignedWitness(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.io.bisq.protobuffer.SignedWitness.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string trade_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.PayoutTxPublishedMessage.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PayoutTxPublishedMessage} returns this - */ -proto.io.bisq.protobuffer.PayoutTxPublishedMessage.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string signed_multisig_tx_hex = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.PayoutTxPublishedMessage.prototype.getSignedMultisigTxHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PayoutTxPublishedMessage} returns this - */ -proto.io.bisq.protobuffer.PayoutTxPublishedMessage.prototype.setSignedMultisigTxHex = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional NodeAddress sender_node_address = 3; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.PayoutTxPublishedMessage.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.PayoutTxPublishedMessage} returns this -*/ -proto.io.bisq.protobuffer.PayoutTxPublishedMessage.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PayoutTxPublishedMessage} returns this - */ -proto.io.bisq.protobuffer.PayoutTxPublishedMessage.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PayoutTxPublishedMessage.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string uid = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.PayoutTxPublishedMessage.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PayoutTxPublishedMessage} returns this - */ -proto.io.bisq.protobuffer.PayoutTxPublishedMessage.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional SignedWitness signed_witness = 5; - * @return {?proto.io.bisq.protobuffer.SignedWitness} - */ -proto.io.bisq.protobuffer.PayoutTxPublishedMessage.prototype.getSignedWitness = function() { - return /** @type{?proto.io.bisq.protobuffer.SignedWitness} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.SignedWitness, 5)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.SignedWitness|undefined} value - * @return {!proto.io.bisq.protobuffer.PayoutTxPublishedMessage} returns this -*/ -proto.io.bisq.protobuffer.PayoutTxPublishedMessage.prototype.setSignedWitness = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PayoutTxPublishedMessage} returns this - */ -proto.io.bisq.protobuffer.PayoutTxPublishedMessage.prototype.clearSignedWitness = function() { - return this.setSignedWitness(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PayoutTxPublishedMessage.prototype.hasSignedWitness = function() { - return jspb.Message.getField(this, 5) != 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.MediatedPayoutTxPublishedMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.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.MediatedPayoutTxPublishedMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.toObject = function(includeInstance, msg) { - var f, obj = { - tradeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - payoutTx: msg.getPayoutTx_asB64(), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - uid: 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.MediatedPayoutTxPublishedMessage} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage; - return proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.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 {!Uint8Array} */ (reader.readBytes()); - msg.setPayoutTx(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.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.MediatedPayoutTxPublishedMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPayoutTx_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string trade_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage} returns this - */ -proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes payout_tx = 2; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.prototype.getPayoutTx = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes payout_tx = 2; - * This is a type-conversion wrapper around `getPayoutTx()` - * @return {string} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.prototype.getPayoutTx_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPayoutTx())); -}; - - -/** - * optional bytes payout_tx = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPayoutTx()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.prototype.getPayoutTx_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPayoutTx())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage} returns this - */ -proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.prototype.setPayoutTx = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional NodeAddress sender_node_address = 3; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage} returns this -*/ -proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage} returns this - */ -proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string uid = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage} returns this - */ -proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.prototype.setUid = 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.MediatedPayoutTxSignatureMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.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.MediatedPayoutTxSignatureMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.toObject = function(includeInstance, msg) { - var f, obj = { - uid: jspb.Message.getFieldWithDefault(msg, 1, ""), - tradeId: jspb.Message.getFieldWithDefault(msg, 3, ""), - txSignature: msg.getTxSignature_asB64(), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.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.MediatedPayoutTxSignatureMessage} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage; - return proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.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.setUid(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setTradeId(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setTxSignature(value); - break; - case 4: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.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.MediatedPayoutTxSignatureMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getTxSignature_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string uid = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage} returns this - */ -proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string trade_id = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage} returns this - */ -proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional bytes tx_signature = 2; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.prototype.getTxSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes tx_signature = 2; - * This is a type-conversion wrapper around `getTxSignature()` - * @return {string} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.prototype.getTxSignature_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getTxSignature())); -}; - - -/** - * optional bytes tx_signature = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getTxSignature()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.prototype.getTxSignature_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getTxSignature())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage} returns this - */ -proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.prototype.setTxSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional NodeAddress sender_node_address = 4; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 4)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage} returns this -*/ -proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage} returns this - */ -proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 4) != 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.RefreshTradeStateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.RefreshTradeStateRequest.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.RefreshTradeStateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RefreshTradeStateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - uid: jspb.Message.getFieldWithDefault(msg, 1, ""), - tradeId: jspb.Message.getFieldWithDefault(msg, 2, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.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.RefreshTradeStateRequest} - */ -proto.io.bisq.protobuffer.RefreshTradeStateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.RefreshTradeStateRequest; - return proto.io.bisq.protobuffer.RefreshTradeStateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.RefreshTradeStateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.RefreshTradeStateRequest} - */ -proto.io.bisq.protobuffer.RefreshTradeStateRequest.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.setUid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTradeId(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.RefreshTradeStateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.RefreshTradeStateRequest.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.RefreshTradeStateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RefreshTradeStateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string uid = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.RefreshTradeStateRequest.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.RefreshTradeStateRequest} returns this - */ -proto.io.bisq.protobuffer.RefreshTradeStateRequest.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string trade_id = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.RefreshTradeStateRequest.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.RefreshTradeStateRequest} returns this - */ -proto.io.bisq.protobuffer.RefreshTradeStateRequest.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional NodeAddress sender_node_address = 3; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.RefreshTradeStateRequest.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.RefreshTradeStateRequest} returns this -*/ -proto.io.bisq.protobuffer.RefreshTradeStateRequest.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.RefreshTradeStateRequest} returns this - */ -proto.io.bisq.protobuffer.RefreshTradeStateRequest.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.RefreshTradeStateRequest.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 3) != 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.TraderSignedWitnessMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.TraderSignedWitnessMessage.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.TraderSignedWitnessMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.TraderSignedWitnessMessage.toObject = function(includeInstance, msg) { - var f, obj = { - uid: jspb.Message.getFieldWithDefault(msg, 1, ""), - tradeId: jspb.Message.getFieldWithDefault(msg, 2, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - signedWitness: (f = msg.getSignedWitness()) && proto.io.bisq.protobuffer.SignedWitness.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.TraderSignedWitnessMessage} - */ -proto.io.bisq.protobuffer.TraderSignedWitnessMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.TraderSignedWitnessMessage; - return proto.io.bisq.protobuffer.TraderSignedWitnessMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.TraderSignedWitnessMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.TraderSignedWitnessMessage} - */ -proto.io.bisq.protobuffer.TraderSignedWitnessMessage.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.setUid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTradeId(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 4: - var value = new proto.io.bisq.protobuffer.SignedWitness; - reader.readMessage(value,proto.io.bisq.protobuffer.SignedWitness.deserializeBinaryFromReader); - msg.setSignedWitness(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.TraderSignedWitnessMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.TraderSignedWitnessMessage.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.TraderSignedWitnessMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.TraderSignedWitnessMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getSignedWitness(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.io.bisq.protobuffer.SignedWitness.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string uid = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.TraderSignedWitnessMessage.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TraderSignedWitnessMessage} returns this - */ -proto.io.bisq.protobuffer.TraderSignedWitnessMessage.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string trade_id = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.TraderSignedWitnessMessage.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TraderSignedWitnessMessage} returns this - */ -proto.io.bisq.protobuffer.TraderSignedWitnessMessage.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional NodeAddress sender_node_address = 3; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.TraderSignedWitnessMessage.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.TraderSignedWitnessMessage} returns this -*/ -proto.io.bisq.protobuffer.TraderSignedWitnessMessage.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.TraderSignedWitnessMessage} returns this - */ -proto.io.bisq.protobuffer.TraderSignedWitnessMessage.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.TraderSignedWitnessMessage.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional SignedWitness signed_witness = 4; - * @return {?proto.io.bisq.protobuffer.SignedWitness} - */ -proto.io.bisq.protobuffer.TraderSignedWitnessMessage.prototype.getSignedWitness = function() { - return /** @type{?proto.io.bisq.protobuffer.SignedWitness} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.SignedWitness, 4)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.SignedWitness|undefined} value - * @return {!proto.io.bisq.protobuffer.TraderSignedWitnessMessage} returns this -*/ -proto.io.bisq.protobuffer.TraderSignedWitnessMessage.prototype.setSignedWitness = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.TraderSignedWitnessMessage} returns this - */ -proto.io.bisq.protobuffer.TraderSignedWitnessMessage.prototype.clearSignedWitness = function() { - return this.setSignedWitness(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.TraderSignedWitnessMessage.prototype.hasSignedWitness = function() { - return jspb.Message.getField(this, 4) != 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.OpenNewDisputeMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.OpenNewDisputeMessage.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.OpenNewDisputeMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.OpenNewDisputeMessage.toObject = function(includeInstance, msg) { - var f, obj = { - dispute: (f = msg.getDispute()) && proto.io.bisq.protobuffer.Dispute.toObject(includeInstance, f), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - uid: jspb.Message.getFieldWithDefault(msg, 3, ""), - type: jspb.Message.getFieldWithDefault(msg, 4, 0), - updatedMultisigHex: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - 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.OpenNewDisputeMessage} - */ -proto.io.bisq.protobuffer.OpenNewDisputeMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.OpenNewDisputeMessage; - return proto.io.bisq.protobuffer.OpenNewDisputeMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.OpenNewDisputeMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.OpenNewDisputeMessage} - */ -proto.io.bisq.protobuffer.OpenNewDisputeMessage.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.Dispute; - reader.readMessage(value,proto.io.bisq.protobuffer.Dispute.deserializeBinaryFromReader); - msg.setDispute(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 4: - var value = /** @type {!proto.io.bisq.protobuffer.SupportType} */ (reader.readEnum()); - msg.setType(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setUpdatedMultisigHex(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.OpenNewDisputeMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.OpenNewDisputeMessage.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.OpenNewDisputeMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.OpenNewDisputeMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDispute(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.Dispute.serializeBinaryToWriter - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getUpdatedMultisigHex(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional Dispute dispute = 1; - * @return {?proto.io.bisq.protobuffer.Dispute} - */ -proto.io.bisq.protobuffer.OpenNewDisputeMessage.prototype.getDispute = function() { - return /** @type{?proto.io.bisq.protobuffer.Dispute} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Dispute, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Dispute|undefined} value - * @return {!proto.io.bisq.protobuffer.OpenNewDisputeMessage} returns this -*/ -proto.io.bisq.protobuffer.OpenNewDisputeMessage.prototype.setDispute = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.OpenNewDisputeMessage} returns this - */ -proto.io.bisq.protobuffer.OpenNewDisputeMessage.prototype.clearDispute = function() { - return this.setDispute(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.OpenNewDisputeMessage.prototype.hasDispute = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional NodeAddress sender_node_address = 2; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.OpenNewDisputeMessage.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.OpenNewDisputeMessage} returns this -*/ -proto.io.bisq.protobuffer.OpenNewDisputeMessage.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.OpenNewDisputeMessage} returns this - */ -proto.io.bisq.protobuffer.OpenNewDisputeMessage.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.OpenNewDisputeMessage.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string uid = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.OpenNewDisputeMessage.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OpenNewDisputeMessage} returns this - */ -proto.io.bisq.protobuffer.OpenNewDisputeMessage.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional SupportType type = 4; - * @return {!proto.io.bisq.protobuffer.SupportType} - */ -proto.io.bisq.protobuffer.OpenNewDisputeMessage.prototype.getType = function() { - return /** @type {!proto.io.bisq.protobuffer.SupportType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.SupportType} value - * @return {!proto.io.bisq.protobuffer.OpenNewDisputeMessage} returns this - */ -proto.io.bisq.protobuffer.OpenNewDisputeMessage.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional string updated_multisig_hex = 5; - * @return {string} - */ -proto.io.bisq.protobuffer.OpenNewDisputeMessage.prototype.getUpdatedMultisigHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OpenNewDisputeMessage} returns this - */ -proto.io.bisq.protobuffer.OpenNewDisputeMessage.prototype.setUpdatedMultisigHex = function(value) { - return jspb.Message.setProto3StringField(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.PeerOpenedDisputeMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.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.PeerOpenedDisputeMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.toObject = function(includeInstance, msg) { - var f, obj = { - dispute: (f = msg.getDispute()) && proto.io.bisq.protobuffer.Dispute.toObject(includeInstance, f), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - uid: jspb.Message.getFieldWithDefault(msg, 3, ""), - type: 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.PeerOpenedDisputeMessage} - */ -proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PeerOpenedDisputeMessage; - return proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PeerOpenedDisputeMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PeerOpenedDisputeMessage} - */ -proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.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.Dispute; - reader.readMessage(value,proto.io.bisq.protobuffer.Dispute.deserializeBinaryFromReader); - msg.setDispute(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 4: - var value = /** @type {!proto.io.bisq.protobuffer.SupportType} */ (reader.readEnum()); - msg.setType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.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.PeerOpenedDisputeMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDispute(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.Dispute.serializeBinaryToWriter - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } -}; - - -/** - * optional Dispute dispute = 1; - * @return {?proto.io.bisq.protobuffer.Dispute} - */ -proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.prototype.getDispute = function() { - return /** @type{?proto.io.bisq.protobuffer.Dispute} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Dispute, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Dispute|undefined} value - * @return {!proto.io.bisq.protobuffer.PeerOpenedDisputeMessage} returns this -*/ -proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.prototype.setDispute = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PeerOpenedDisputeMessage} returns this - */ -proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.prototype.clearDispute = function() { - return this.setDispute(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.prototype.hasDispute = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional NodeAddress sender_node_address = 2; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.PeerOpenedDisputeMessage} returns this -*/ -proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PeerOpenedDisputeMessage} returns this - */ -proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string uid = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PeerOpenedDisputeMessage} returns this - */ -proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional SupportType type = 4; - * @return {!proto.io.bisq.protobuffer.SupportType} - */ -proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.prototype.getType = function() { - return /** @type {!proto.io.bisq.protobuffer.SupportType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.SupportType} value - * @return {!proto.io.bisq.protobuffer.PeerOpenedDisputeMessage} returns this - */ -proto.io.bisq.protobuffer.PeerOpenedDisputeMessage.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.ChatMessage.repeatedFields_ = [6]; - - - -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.ChatMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.ChatMessage.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.ChatMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ChatMessage.toObject = function(includeInstance, msg) { - var f, obj = { - date: jspb.Message.getFieldWithDefault(msg, 1, 0), - tradeId: jspb.Message.getFieldWithDefault(msg, 2, ""), - traderId: jspb.Message.getFieldWithDefault(msg, 3, 0), - senderIsTrader: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - message: jspb.Message.getFieldWithDefault(msg, 5, ""), - attachmentsList: jspb.Message.toObjectList(msg.getAttachmentsList(), - proto.io.bisq.protobuffer.Attachment.toObject, includeInstance), - arrived: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - storedInMailbox: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - isSystemMessage: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - uid: jspb.Message.getFieldWithDefault(msg, 11, ""), - sendMessageError: jspb.Message.getFieldWithDefault(msg, 12, ""), - acknowledged: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), - ackError: jspb.Message.getFieldWithDefault(msg, 14, ""), - type: jspb.Message.getFieldWithDefault(msg, 15, 0), - wasDisplayed: jspb.Message.getBooleanFieldWithDefault(msg, 16, 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.ChatMessage} - */ -proto.io.bisq.protobuffer.ChatMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.ChatMessage; - return proto.io.bisq.protobuffer.ChatMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.ChatMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.ChatMessage} - */ -proto.io.bisq.protobuffer.ChatMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setDate(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTradeId(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setTraderId(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSenderIsTrader(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setMessage(value); - break; - case 6: - var value = new proto.io.bisq.protobuffer.Attachment; - reader.readMessage(value,proto.io.bisq.protobuffer.Attachment.deserializeBinaryFromReader); - msg.addAttachments(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setArrived(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setStoredInMailbox(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsSystemMessage(value); - break; - case 10: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setSendMessageError(value); - break; - case 13: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAcknowledged(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setAckError(value); - break; - case 15: - var value = /** @type {!proto.io.bisq.protobuffer.SupportType} */ (reader.readEnum()); - msg.setType(value); - break; - case 16: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setWasDisplayed(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.ChatMessage.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.ChatMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ChatMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDate(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getTraderId(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getSenderIsTrader(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getMessage(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getAttachmentsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.io.bisq.protobuffer.Attachment.serializeBinaryToWriter - ); - } - f = message.getArrived(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getStoredInMailbox(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getIsSystemMessage(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 10, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getSendMessageError(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getAcknowledged(); - if (f) { - writer.writeBool( - 13, - f - ); - } - f = message.getAckError(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 15, - f - ); - } - f = message.getWasDisplayed(); - if (f) { - writer.writeBool( - 16, - f - ); - } -}; - - -/** - * optional int64 date = 1; - * @return {number} - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.getDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.ChatMessage} returns this - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.setDate = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string trade_id = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ChatMessage} returns this - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional int32 trader_id = 3; - * @return {number} - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.getTraderId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.ChatMessage} returns this - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.setTraderId = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bool sender_is_trader = 4; - * @return {boolean} - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.getSenderIsTrader = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.ChatMessage} returns this - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.setSenderIsTrader = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional string message = 5; - * @return {string} - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.getMessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ChatMessage} returns this - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.setMessage = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * repeated Attachment attachments = 6; - * @return {!Array} - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.getAttachmentsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.Attachment, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.ChatMessage} returns this -*/ -proto.io.bisq.protobuffer.ChatMessage.prototype.setAttachmentsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.Attachment=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Attachment} - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.addAttachments = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.io.bisq.protobuffer.Attachment, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.ChatMessage} returns this - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.clearAttachmentsList = function() { - return this.setAttachmentsList([]); -}; - - -/** - * optional bool arrived = 7; - * @return {boolean} - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.getArrived = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.ChatMessage} returns this - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.setArrived = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * optional bool stored_in_mailbox = 8; - * @return {boolean} - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.getStoredInMailbox = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.ChatMessage} returns this - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.setStoredInMailbox = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); -}; - - -/** - * optional bool is_system_message = 9; - * @return {boolean} - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.getIsSystemMessage = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.ChatMessage} returns this - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.setIsSystemMessage = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); -}; - - -/** - * optional NodeAddress sender_node_address = 10; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 10)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.ChatMessage} returns this -*/ -proto.io.bisq.protobuffer.ChatMessage.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.ChatMessage} returns this - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional string uid = 11; - * @return {string} - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ChatMessage} returns this - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional string send_message_error = 12; - * @return {string} - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.getSendMessageError = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ChatMessage} returns this - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.setSendMessageError = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * optional bool acknowledged = 13; - * @return {boolean} - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.getAcknowledged = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.ChatMessage} returns this - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.setAcknowledged = function(value) { - return jspb.Message.setProto3BooleanField(this, 13, value); -}; - - -/** - * optional string ack_error = 14; - * @return {string} - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.getAckError = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ChatMessage} returns this - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.setAckError = function(value) { - return jspb.Message.setProto3StringField(this, 14, value); -}; - - -/** - * optional SupportType type = 15; - * @return {!proto.io.bisq.protobuffer.SupportType} - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.getType = function() { - return /** @type {!proto.io.bisq.protobuffer.SupportType} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.SupportType} value - * @return {!proto.io.bisq.protobuffer.ChatMessage} returns this - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 15, value); -}; - - -/** - * optional bool was_displayed = 16; - * @return {boolean} - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.getWasDisplayed = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.ChatMessage} returns this - */ -proto.io.bisq.protobuffer.ChatMessage.prototype.setWasDisplayed = function(value) { - return jspb.Message.setProto3BooleanField(this, 16, 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.DisputeResultMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.DisputeResultMessage.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.DisputeResultMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.DisputeResultMessage.toObject = function(includeInstance, msg) { - var f, obj = { - uid: jspb.Message.getFieldWithDefault(msg, 1, ""), - disputeResult: (f = msg.getDisputeResult()) && proto.io.bisq.protobuffer.DisputeResult.toObject(includeInstance, f), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - type: 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.DisputeResultMessage} - */ -proto.io.bisq.protobuffer.DisputeResultMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.DisputeResultMessage; - return proto.io.bisq.protobuffer.DisputeResultMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.DisputeResultMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.DisputeResultMessage} - */ -proto.io.bisq.protobuffer.DisputeResultMessage.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.setUid(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.DisputeResult; - reader.readMessage(value,proto.io.bisq.protobuffer.DisputeResult.deserializeBinaryFromReader); - msg.setDisputeResult(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 4: - var value = /** @type {!proto.io.bisq.protobuffer.SupportType} */ (reader.readEnum()); - msg.setType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.DisputeResultMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.DisputeResultMessage.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.DisputeResultMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.DisputeResultMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDisputeResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.DisputeResult.serializeBinaryToWriter - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } -}; - - -/** - * optional string uid = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.DisputeResultMessage.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DisputeResultMessage} returns this - */ -proto.io.bisq.protobuffer.DisputeResultMessage.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional DisputeResult dispute_result = 2; - * @return {?proto.io.bisq.protobuffer.DisputeResult} - */ -proto.io.bisq.protobuffer.DisputeResultMessage.prototype.getDisputeResult = function() { - return /** @type{?proto.io.bisq.protobuffer.DisputeResult} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.DisputeResult, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.DisputeResult|undefined} value - * @return {!proto.io.bisq.protobuffer.DisputeResultMessage} returns this -*/ -proto.io.bisq.protobuffer.DisputeResultMessage.prototype.setDisputeResult = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.DisputeResultMessage} returns this - */ -proto.io.bisq.protobuffer.DisputeResultMessage.prototype.clearDisputeResult = function() { - return this.setDisputeResult(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.DisputeResultMessage.prototype.hasDisputeResult = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional NodeAddress sender_node_address = 3; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.DisputeResultMessage.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.DisputeResultMessage} returns this -*/ -proto.io.bisq.protobuffer.DisputeResultMessage.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.DisputeResultMessage} returns this - */ -proto.io.bisq.protobuffer.DisputeResultMessage.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.DisputeResultMessage.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional SupportType type = 4; - * @return {!proto.io.bisq.protobuffer.SupportType} - */ -proto.io.bisq.protobuffer.DisputeResultMessage.prototype.getType = function() { - return /** @type {!proto.io.bisq.protobuffer.SupportType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.SupportType} value - * @return {!proto.io.bisq.protobuffer.DisputeResultMessage} returns this - */ -proto.io.bisq.protobuffer.DisputeResultMessage.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(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.PeerPublishedDisputePayoutTxMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.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.PeerPublishedDisputePayoutTxMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.toObject = function(includeInstance, msg) { - var f, obj = { - uid: jspb.Message.getFieldWithDefault(msg, 1, ""), - tradeId: jspb.Message.getFieldWithDefault(msg, 3, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - type: jspb.Message.getFieldWithDefault(msg, 5, 0), - updatedMultisigHex: jspb.Message.getFieldWithDefault(msg, 6, ""), - payoutTxHex: 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.PeerPublishedDisputePayoutTxMessage} - */ -proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage; - return proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage} - */ -proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.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.setUid(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setTradeId(value); - break; - case 4: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 5: - var value = /** @type {!proto.io.bisq.protobuffer.SupportType} */ (reader.readEnum()); - msg.setType(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setUpdatedMultisigHex(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setPayoutTxHex(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.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.PeerPublishedDisputePayoutTxMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } - f = message.getUpdatedMultisigHex(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getPayoutTxHex(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } -}; - - -/** - * optional string uid = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage} returns this - */ -proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string trade_id = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage} returns this - */ -proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional NodeAddress sender_node_address = 4; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 4)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage} returns this -*/ -proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage} returns this - */ -proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional SupportType type = 5; - * @return {!proto.io.bisq.protobuffer.SupportType} - */ -proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.prototype.getType = function() { - return /** @type {!proto.io.bisq.protobuffer.SupportType} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.SupportType} value - * @return {!proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage} returns this - */ -proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 5, value); -}; - - -/** - * optional string updated_multisig_hex = 6; - * @return {string} - */ -proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.prototype.getUpdatedMultisigHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage} returns this - */ -proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.prototype.setUpdatedMultisigHex = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string payout_tx_hex = 7; - * @return {string} - */ -proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.prototype.getPayoutTxHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage} returns this - */ -proto.io.bisq.protobuffer.PeerPublishedDisputePayoutTxMessage.prototype.setPayoutTxHex = 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.PrivateNotificationMessage.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PrivateNotificationMessage.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.PrivateNotificationMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PrivateNotificationMessage.toObject = function(includeInstance, msg) { - var f, obj = { - uid: jspb.Message.getFieldWithDefault(msg, 1, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - privateNotificationPayload: (f = msg.getPrivateNotificationPayload()) && proto.io.bisq.protobuffer.PrivateNotificationPayload.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.PrivateNotificationMessage} - */ -proto.io.bisq.protobuffer.PrivateNotificationMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PrivateNotificationMessage; - return proto.io.bisq.protobuffer.PrivateNotificationMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PrivateNotificationMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PrivateNotificationMessage} - */ -proto.io.bisq.protobuffer.PrivateNotificationMessage.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.setUid(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.PrivateNotificationPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.PrivateNotificationPayload.deserializeBinaryFromReader); - msg.setPrivateNotificationPayload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PrivateNotificationMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PrivateNotificationMessage.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.PrivateNotificationMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PrivateNotificationMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getPrivateNotificationPayload(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.PrivateNotificationPayload.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string uid = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.PrivateNotificationMessage.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PrivateNotificationMessage} returns this - */ -proto.io.bisq.protobuffer.PrivateNotificationMessage.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional NodeAddress sender_node_address = 2; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.PrivateNotificationMessage.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.PrivateNotificationMessage} returns this -*/ -proto.io.bisq.protobuffer.PrivateNotificationMessage.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PrivateNotificationMessage} returns this - */ -proto.io.bisq.protobuffer.PrivateNotificationMessage.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PrivateNotificationMessage.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional PrivateNotificationPayload private_notification_payload = 3; - * @return {?proto.io.bisq.protobuffer.PrivateNotificationPayload} - */ -proto.io.bisq.protobuffer.PrivateNotificationMessage.prototype.getPrivateNotificationPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.PrivateNotificationPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PrivateNotificationPayload, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PrivateNotificationPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PrivateNotificationMessage} returns this -*/ -proto.io.bisq.protobuffer.PrivateNotificationMessage.prototype.setPrivateNotificationPayload = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PrivateNotificationMessage} returns this - */ -proto.io.bisq.protobuffer.PrivateNotificationMessage.prototype.clearPrivateNotificationPayload = function() { - return this.setPrivateNotificationPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PrivateNotificationMessage.prototype.hasPrivateNotificationPayload = function() { - return jspb.Message.getField(this, 3) != 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.NodeAddress.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.NodeAddress.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.NodeAddress} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.NodeAddress.toObject = function(includeInstance, msg) { - var f, obj = { - hostName: jspb.Message.getFieldWithDefault(msg, 1, ""), - port: jspb.Message.getFieldWithDefault(msg, 2, 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.NodeAddress} - */ -proto.io.bisq.protobuffer.NodeAddress.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.NodeAddress; - return proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.NodeAddress} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.NodeAddress.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.setHostName(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPort(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.NodeAddress.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.NodeAddress.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.NodeAddress} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHostName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPort(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } -}; - - -/** - * optional string host_name = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.NodeAddress.prototype.getHostName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.NodeAddress} returns this - */ -proto.io.bisq.protobuffer.NodeAddress.prototype.setHostName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int32 port = 2; - * @return {number} - */ -proto.io.bisq.protobuffer.NodeAddress.prototype.getPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.NodeAddress} returns this - */ -proto.io.bisq.protobuffer.NodeAddress.prototype.setPort = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.Peer.repeatedFields_ = [3]; - - - -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.Peer.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.Peer.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.Peer} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Peer.toObject = function(includeInstance, msg) { - var f, obj = { - nodeAddress: (f = msg.getNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - date: jspb.Message.getFieldWithDefault(msg, 2, 0), - supportedCapabilitiesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : 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.Peer} - */ -proto.io.bisq.protobuffer.Peer.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.Peer; - return proto.io.bisq.protobuffer.Peer.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.Peer} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.Peer} - */ -proto.io.bisq.protobuffer.Peer.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.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setNodeAddress(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt64()); - msg.setDate(value); - break; - case 3: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); - for (var i = 0; i < values.length; i++) { - msg.addSupportedCapabilities(values[i]); - } - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Peer.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.Peer.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.Peer} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Peer.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNodeAddress(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getDate(); - if (f !== 0) { - writer.writeInt64( - 2, - f - ); - } - f = message.getSupportedCapabilitiesList(); - if (f.length > 0) { - writer.writePackedInt32( - 3, - f - ); - } -}; - - -/** - * optional NodeAddress node_address = 1; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.Peer.prototype.getNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.Peer} returns this -*/ -proto.io.bisq.protobuffer.Peer.prototype.setNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Peer} returns this - */ -proto.io.bisq.protobuffer.Peer.prototype.clearNodeAddress = function() { - return this.setNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Peer.prototype.hasNodeAddress = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional int64 date = 2; - * @return {number} - */ -proto.io.bisq.protobuffer.Peer.prototype.getDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Peer} returns this - */ -proto.io.bisq.protobuffer.Peer.prototype.setDate = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * repeated int32 supported_capabilities = 3; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Peer.prototype.getSupportedCapabilitiesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Peer} returns this - */ -proto.io.bisq.protobuffer.Peer.prototype.setSupportedCapabilitiesList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Peer} returns this - */ -proto.io.bisq.protobuffer.Peer.prototype.addSupportedCapabilities = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Peer} returns this - */ -proto.io.bisq.protobuffer.Peer.prototype.clearSupportedCapabilitiesList = function() { - return this.setSupportedCapabilitiesList([]); -}; - - - - - -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.PubKeyRing.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PubKeyRing.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.PubKeyRing} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PubKeyRing.toObject = function(includeInstance, msg) { - var f, obj = { - signaturePubKeyBytes: msg.getSignaturePubKeyBytes_asB64(), - encryptionPubKeyBytes: msg.getEncryptionPubKeyBytes_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.PubKeyRing} - */ -proto.io.bisq.protobuffer.PubKeyRing.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PubKeyRing; - return proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PubKeyRing} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSignaturePubKeyBytes(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setEncryptionPubKeyBytes(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PubKeyRing.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PubKeyRing.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.PubKeyRing} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSignaturePubKeyBytes_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getEncryptionPubKeyBytes_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } -}; - - -/** - * optional bytes signature_pub_key_bytes = 1; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.PubKeyRing.prototype.getSignaturePubKeyBytes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes signature_pub_key_bytes = 1; - * This is a type-conversion wrapper around `getSignaturePubKeyBytes()` - * @return {string} - */ -proto.io.bisq.protobuffer.PubKeyRing.prototype.getSignaturePubKeyBytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSignaturePubKeyBytes())); -}; - - -/** - * optional bytes signature_pub_key_bytes = 1; - * 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.PubKeyRing.prototype.getSignaturePubKeyBytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSignaturePubKeyBytes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.PubKeyRing} returns this - */ -proto.io.bisq.protobuffer.PubKeyRing.prototype.setSignaturePubKeyBytes = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional bytes encryption_pub_key_bytes = 2; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.PubKeyRing.prototype.getEncryptionPubKeyBytes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes encryption_pub_key_bytes = 2; - * This is a type-conversion wrapper around `getEncryptionPubKeyBytes()` - * @return {string} - */ -proto.io.bisq.protobuffer.PubKeyRing.prototype.getEncryptionPubKeyBytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getEncryptionPubKeyBytes())); -}; - - -/** - * optional bytes encryption_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 `getEncryptionPubKeyBytes()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PubKeyRing.prototype.getEncryptionPubKeyBytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getEncryptionPubKeyBytes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.PubKeyRing} returns this - */ -proto.io.bisq.protobuffer.PubKeyRing.prototype.setEncryptionPubKeyBytes = function(value) { - return jspb.Message.setProto3BytesField(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.SealedAndSigned.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SealedAndSigned.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.SealedAndSigned} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SealedAndSigned.toObject = function(includeInstance, msg) { - var f, obj = { - encryptedSecretKey: msg.getEncryptedSecretKey_asB64(), - encryptedPayloadWithHmac: msg.getEncryptedPayloadWithHmac_asB64(), - signature: msg.getSignature_asB64(), - sigPublicKeyBytes: msg.getSigPublicKeyBytes_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.SealedAndSigned} - */ -proto.io.bisq.protobuffer.SealedAndSigned.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SealedAndSigned; - return proto.io.bisq.protobuffer.SealedAndSigned.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SealedAndSigned} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SealedAndSigned} - */ -proto.io.bisq.protobuffer.SealedAndSigned.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setEncryptedSecretKey(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setEncryptedPayloadWithHmac(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSignature(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSigPublicKeyBytes(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SealedAndSigned.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SealedAndSigned.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.SealedAndSigned} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SealedAndSigned.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEncryptedSecretKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getEncryptedPayloadWithHmac_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getSignature_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getSigPublicKeyBytes_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } -}; - - -/** - * optional bytes encrypted_secret_key = 1; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.SealedAndSigned.prototype.getEncryptedSecretKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes encrypted_secret_key = 1; - * This is a type-conversion wrapper around `getEncryptedSecretKey()` - * @return {string} - */ -proto.io.bisq.protobuffer.SealedAndSigned.prototype.getEncryptedSecretKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getEncryptedSecretKey())); -}; - - -/** - * optional bytes encrypted_secret_key = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getEncryptedSecretKey()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SealedAndSigned.prototype.getEncryptedSecretKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getEncryptedSecretKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.SealedAndSigned} returns this - */ -proto.io.bisq.protobuffer.SealedAndSigned.prototype.setEncryptedSecretKey = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional bytes encrypted_payload_with_hmac = 2; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.SealedAndSigned.prototype.getEncryptedPayloadWithHmac = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes encrypted_payload_with_hmac = 2; - * This is a type-conversion wrapper around `getEncryptedPayloadWithHmac()` - * @return {string} - */ -proto.io.bisq.protobuffer.SealedAndSigned.prototype.getEncryptedPayloadWithHmac_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getEncryptedPayloadWithHmac())); -}; - - -/** - * optional bytes encrypted_payload_with_hmac = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getEncryptedPayloadWithHmac()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SealedAndSigned.prototype.getEncryptedPayloadWithHmac_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getEncryptedPayloadWithHmac())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.SealedAndSigned} returns this - */ -proto.io.bisq.protobuffer.SealedAndSigned.prototype.setEncryptedPayloadWithHmac = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional bytes signature = 3; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.SealedAndSigned.prototype.getSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes signature = 3; - * This is a type-conversion wrapper around `getSignature()` - * @return {string} - */ -proto.io.bisq.protobuffer.SealedAndSigned.prototype.getSignature_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSignature())); -}; - - -/** - * optional bytes signature = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSignature()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SealedAndSigned.prototype.getSignature_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSignature())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.SealedAndSigned} returns this - */ -proto.io.bisq.protobuffer.SealedAndSigned.prototype.setSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * optional bytes sig_public_key_bytes = 4; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.SealedAndSigned.prototype.getSigPublicKeyBytes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes sig_public_key_bytes = 4; - * This is a type-conversion wrapper around `getSigPublicKeyBytes()` - * @return {string} - */ -proto.io.bisq.protobuffer.SealedAndSigned.prototype.getSigPublicKeyBytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSigPublicKeyBytes())); -}; - - -/** - * optional bytes sig_public_key_bytes = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSigPublicKeyBytes()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SealedAndSigned.prototype.getSigPublicKeyBytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSigPublicKeyBytes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.SealedAndSigned} returns this - */ -proto.io.bisq.protobuffer.SealedAndSigned.prototype.setSigPublicKeyBytes = function(value) { - return jspb.Message.setProto3BytesField(this, 4, 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 - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.io.bisq.protobuffer.StoragePayload.oneofGroups_ = [[1,2,3,4,6,7,8]]; - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.StoragePayload.MessageCase = { - MESSAGE_NOT_SET: 0, - ALERT: 1, - ARBITRATOR: 2, - MEDIATOR: 3, - FILTER: 4, - MAILBOX_STORAGE_PAYLOAD: 6, - OFFER_PAYLOAD: 7, - REFUND_AGENT: 8 -}; - -/** - * @return {proto.io.bisq.protobuffer.StoragePayload.MessageCase} - */ -proto.io.bisq.protobuffer.StoragePayload.prototype.getMessageCase = function() { - return /** @type {proto.io.bisq.protobuffer.StoragePayload.MessageCase} */(jspb.Message.computeOneofCase(this, proto.io.bisq.protobuffer.StoragePayload.oneofGroups_[0])); -}; - - - -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.StoragePayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.StoragePayload.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.StoragePayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.StoragePayload.toObject = function(includeInstance, msg) { - var f, obj = { - alert: (f = msg.getAlert()) && proto.io.bisq.protobuffer.Alert.toObject(includeInstance, f), - 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), - mailboxStoragePayload: (f = msg.getMailboxStoragePayload()) && proto.io.bisq.protobuffer.MailboxStoragePayload.toObject(includeInstance, f), - offerPayload: (f = msg.getOfferPayload()) && proto.io.bisq.protobuffer.OfferPayload.toObject(includeInstance, f), - refundAgent: (f = msg.getRefundAgent()) && proto.io.bisq.protobuffer.RefundAgent.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.StoragePayload} - */ -proto.io.bisq.protobuffer.StoragePayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.StoragePayload; - return proto.io.bisq.protobuffer.StoragePayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.StoragePayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.StoragePayload} - */ -proto.io.bisq.protobuffer.StoragePayload.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.Alert; - reader.readMessage(value,proto.io.bisq.protobuffer.Alert.deserializeBinaryFromReader); - msg.setAlert(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.Arbitrator; - reader.readMessage(value,proto.io.bisq.protobuffer.Arbitrator.deserializeBinaryFromReader); - msg.setArbitrator(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.Mediator; - reader.readMessage(value,proto.io.bisq.protobuffer.Mediator.deserializeBinaryFromReader); - msg.setMediator(value); - break; - case 4: - var value = new proto.io.bisq.protobuffer.Filter; - reader.readMessage(value,proto.io.bisq.protobuffer.Filter.deserializeBinaryFromReader); - msg.setFilter(value); - break; - case 6: - var value = new proto.io.bisq.protobuffer.MailboxStoragePayload; - reader.readMessage(value,proto.io.bisq.protobuffer.MailboxStoragePayload.deserializeBinaryFromReader); - msg.setMailboxStoragePayload(value); - break; - case 7: - var value = new proto.io.bisq.protobuffer.OfferPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.OfferPayload.deserializeBinaryFromReader); - msg.setOfferPayload(value); - break; - case 8: - var value = new proto.io.bisq.protobuffer.RefundAgent; - reader.readMessage(value,proto.io.bisq.protobuffer.RefundAgent.deserializeBinaryFromReader); - msg.setRefundAgent(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.StoragePayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.StoragePayload.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.StoragePayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.StoragePayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAlert(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.Alert.serializeBinaryToWriter - ); - } - f = message.getArbitrator(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.Arbitrator.serializeBinaryToWriter - ); - } - f = message.getMediator(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.Mediator.serializeBinaryToWriter - ); - } - f = message.getFilter(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.io.bisq.protobuffer.Filter.serializeBinaryToWriter - ); - } - f = message.getMailboxStoragePayload(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.io.bisq.protobuffer.MailboxStoragePayload.serializeBinaryToWriter - ); - } - f = message.getOfferPayload(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.io.bisq.protobuffer.OfferPayload.serializeBinaryToWriter - ); - } - f = message.getRefundAgent(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.io.bisq.protobuffer.RefundAgent.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Alert alert = 1; - * @return {?proto.io.bisq.protobuffer.Alert} - */ -proto.io.bisq.protobuffer.StoragePayload.prototype.getAlert = function() { - return /** @type{?proto.io.bisq.protobuffer.Alert} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Alert, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Alert|undefined} value - * @return {!proto.io.bisq.protobuffer.StoragePayload} returns this -*/ -proto.io.bisq.protobuffer.StoragePayload.prototype.setAlert = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, 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.clearAlert = function() { - return this.setAlert(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.StoragePayload.prototype.hasAlert = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Arbitrator arbitrator = 2; - * @return {?proto.io.bisq.protobuffer.Arbitrator} - */ -proto.io.bisq.protobuffer.StoragePayload.prototype.getArbitrator = function() { - return /** @type{?proto.io.bisq.protobuffer.Arbitrator} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Arbitrator, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Arbitrator|undefined} value - * @return {!proto.io.bisq.protobuffer.StoragePayload} returns this -*/ -proto.io.bisq.protobuffer.StoragePayload.prototype.setArbitrator = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, 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.clearArbitrator = function() { - return this.setArbitrator(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.StoragePayload.prototype.hasArbitrator = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional Mediator mediator = 3; - * @return {?proto.io.bisq.protobuffer.Mediator} - */ -proto.io.bisq.protobuffer.StoragePayload.prototype.getMediator = function() { - return /** @type{?proto.io.bisq.protobuffer.Mediator} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Mediator, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Mediator|undefined} value - * @return {!proto.io.bisq.protobuffer.StoragePayload} returns this -*/ -proto.io.bisq.protobuffer.StoragePayload.prototype.setMediator = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, 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.clearMediator = function() { - return this.setMediator(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.StoragePayload.prototype.hasMediator = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional Filter filter = 4; - * @return {?proto.io.bisq.protobuffer.Filter} - */ -proto.io.bisq.protobuffer.StoragePayload.prototype.getFilter = function() { - return /** @type{?proto.io.bisq.protobuffer.Filter} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Filter, 4)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Filter|undefined} value - * @return {!proto.io.bisq.protobuffer.StoragePayload} returns this -*/ -proto.io.bisq.protobuffer.StoragePayload.prototype.setFilter = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, 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.clearFilter = function() { - return this.setFilter(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.StoragePayload.prototype.hasFilter = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional MailboxStoragePayload mailbox_storage_payload = 6; - * @return {?proto.io.bisq.protobuffer.MailboxStoragePayload} - */ -proto.io.bisq.protobuffer.StoragePayload.prototype.getMailboxStoragePayload = function() { - return /** @type{?proto.io.bisq.protobuffer.MailboxStoragePayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.MailboxStoragePayload, 6)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.MailboxStoragePayload|undefined} value - * @return {!proto.io.bisq.protobuffer.StoragePayload} returns this -*/ -proto.io.bisq.protobuffer.StoragePayload.prototype.setMailboxStoragePayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 6, 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.clearMailboxStoragePayload = function() { - return this.setMailboxStoragePayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.StoragePayload.prototype.hasMailboxStoragePayload = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional OfferPayload offer_payload = 7; - * @return {?proto.io.bisq.protobuffer.OfferPayload} - */ -proto.io.bisq.protobuffer.StoragePayload.prototype.getOfferPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.OfferPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.OfferPayload, 7)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.OfferPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.StoragePayload} returns this -*/ -proto.io.bisq.protobuffer.StoragePayload.prototype.setOfferPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 7, 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.clearOfferPayload = function() { - return this.setOfferPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.StoragePayload.prototype.hasOfferPayload = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional RefundAgent refund_agent = 8; - * @return {?proto.io.bisq.protobuffer.RefundAgent} - */ -proto.io.bisq.protobuffer.StoragePayload.prototype.getRefundAgent = function() { - return /** @type{?proto.io.bisq.protobuffer.RefundAgent} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.RefundAgent, 8)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.RefundAgent|undefined} value - * @return {!proto.io.bisq.protobuffer.StoragePayload} returns this -*/ -proto.io.bisq.protobuffer.StoragePayload.prototype.setRefundAgent = function(value) { - return jspb.Message.setOneofWrapperField(this, 8, 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.clearRefundAgent = function() { - return this.setRefundAgent(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.StoragePayload.prototype.hasRefundAgent = function() { - return jspb.Message.getField(this, 8) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.io.bisq.protobuffer.PersistableNetworkPayload.oneofGroups_ = [[1,2,3,4]]; - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.PersistableNetworkPayload.MessageCase = { - MESSAGE_NOT_SET: 0, - ACCOUNT_AGE_WITNESS: 1, - TRADE_STATISTICS2: 2, - SIGNED_WITNESS: 3, - TRADE_STATISTICS3: 4 -}; - -/** - * @return {proto.io.bisq.protobuffer.PersistableNetworkPayload.MessageCase} - */ -proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.getMessageCase = function() { - return /** @type {proto.io.bisq.protobuffer.PersistableNetworkPayload.MessageCase} */(jspb.Message.computeOneofCase(this, proto.io.bisq.protobuffer.PersistableNetworkPayload.oneofGroups_[0])); -}; - - - -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.PersistableNetworkPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PersistableNetworkPayload.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.PersistableNetworkPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PersistableNetworkPayload.toObject = function(includeInstance, msg) { - var f, obj = { - accountAgeWitness: (f = msg.getAccountAgeWitness()) && proto.io.bisq.protobuffer.AccountAgeWitness.toObject(includeInstance, f), - tradeStatistics2: (f = msg.getTradeStatistics2()) && proto.io.bisq.protobuffer.TradeStatistics2.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) { - 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.PersistableNetworkPayload} - */ -proto.io.bisq.protobuffer.PersistableNetworkPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PersistableNetworkPayload; - return proto.io.bisq.protobuffer.PersistableNetworkPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PersistableNetworkPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PersistableNetworkPayload} - */ -proto.io.bisq.protobuffer.PersistableNetworkPayload.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.AccountAgeWitness; - reader.readMessage(value,proto.io.bisq.protobuffer.AccountAgeWitness.deserializeBinaryFromReader); - msg.setAccountAgeWitness(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.TradeStatistics2; - reader.readMessage(value,proto.io.bisq.protobuffer.TradeStatistics2.deserializeBinaryFromReader); - msg.setTradeStatistics2(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.SignedWitness; - reader.readMessage(value,proto.io.bisq.protobuffer.SignedWitness.deserializeBinaryFromReader); - msg.setSignedWitness(value); - break; - case 4: - 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; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PersistableNetworkPayload.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.PersistableNetworkPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PersistableNetworkPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccountAgeWitness(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.AccountAgeWitness.serializeBinaryToWriter - ); - } - f = message.getTradeStatistics2(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.TradeStatistics2.serializeBinaryToWriter - ); - } - f = message.getSignedWitness(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.SignedWitness.serializeBinaryToWriter - ); - } - f = message.getTradeStatistics3(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.io.bisq.protobuffer.TradeStatistics3.serializeBinaryToWriter - ); - } -}; - - -/** - * optional AccountAgeWitness account_age_witness = 1; - * @return {?proto.io.bisq.protobuffer.AccountAgeWitness} - */ -proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.getAccountAgeWitness = function() { - return /** @type{?proto.io.bisq.protobuffer.AccountAgeWitness} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.AccountAgeWitness, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.AccountAgeWitness|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableNetworkPayload} returns this -*/ -proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.setAccountAgeWitness = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, 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.clearAccountAgeWitness = function() { - return this.setAccountAgeWitness(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.hasAccountAgeWitness = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional TradeStatistics2 trade_statistics2 = 2; - * @return {?proto.io.bisq.protobuffer.TradeStatistics2} - */ -proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.getTradeStatistics2 = function() { - return /** @type{?proto.io.bisq.protobuffer.TradeStatistics2} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TradeStatistics2, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.TradeStatistics2|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableNetworkPayload} returns this -*/ -proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.setTradeStatistics2 = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, 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.clearTradeStatistics2 = function() { - return this.setTradeStatistics2(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.hasTradeStatistics2 = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional SignedWitness signed_witness = 3; - * @return {?proto.io.bisq.protobuffer.SignedWitness} - */ -proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.getSignedWitness = function() { - return /** @type{?proto.io.bisq.protobuffer.SignedWitness} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.SignedWitness, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.SignedWitness|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableNetworkPayload} returns this -*/ -proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.setSignedWitness = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, 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.clearSignedWitness = function() { - return this.setSignedWitness(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.hasSignedWitness = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional TradeStatistics3 trade_statistics3 = 4; - * @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, 4)); -}; - - -/** - * @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, 4, 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, 4) != 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.ProtectedStorageEntry.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.ProtectedStorageEntry.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.ProtectedStorageEntry} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.toObject = function(includeInstance, msg) { - var f, obj = { - storagepayload: (f = msg.getStoragepayload()) && proto.io.bisq.protobuffer.StoragePayload.toObject(includeInstance, f), - ownerPubKeyBytes: msg.getOwnerPubKeyBytes_asB64(), - sequenceNumber: jspb.Message.getFieldWithDefault(msg, 3, 0), - signature: msg.getSignature_asB64(), - creationTimeStamp: 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.ProtectedStorageEntry} - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.ProtectedStorageEntry; - return proto.io.bisq.protobuffer.ProtectedStorageEntry.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.ProtectedStorageEntry} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.ProtectedStorageEntry} - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.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.StoragePayload; - reader.readMessage(value,proto.io.bisq.protobuffer.StoragePayload.deserializeBinaryFromReader); - msg.setStoragepayload(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setOwnerPubKeyBytes(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setSequenceNumber(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSignature(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCreationTimeStamp(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.ProtectedStorageEntry.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.ProtectedStorageEntry} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStoragepayload(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.StoragePayload.serializeBinaryToWriter - ); - } - f = message.getOwnerPubKeyBytes_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getSequenceNumber(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getSignature_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getCreationTimeStamp(); - if (f !== 0) { - writer.writeInt64( - 5, - f - ); - } -}; - - -/** - * optional StoragePayload storagePayload = 1; - * @return {?proto.io.bisq.protobuffer.StoragePayload} - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.getStoragepayload = function() { - return /** @type{?proto.io.bisq.protobuffer.StoragePayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.StoragePayload, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.StoragePayload|undefined} value - * @return {!proto.io.bisq.protobuffer.ProtectedStorageEntry} returns this -*/ -proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.setStoragepayload = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.ProtectedStorageEntry} returns this - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.clearStoragepayload = function() { - return this.setStoragepayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.hasStoragepayload = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional bytes owner_pub_key_bytes = 2; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.getOwnerPubKeyBytes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes owner_pub_key_bytes = 2; - * This is a type-conversion wrapper around `getOwnerPubKeyBytes()` - * @return {string} - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.getOwnerPubKeyBytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getOwnerPubKeyBytes())); -}; - - -/** - * optional bytes owner_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 `getOwnerPubKeyBytes()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.getOwnerPubKeyBytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getOwnerPubKeyBytes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.ProtectedStorageEntry} returns this - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.setOwnerPubKeyBytes = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional int32 sequence_number = 3; - * @return {number} - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.getSequenceNumber = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.ProtectedStorageEntry} returns this - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.setSequenceNumber = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bytes signature = 4; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.getSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes signature = 4; - * This is a type-conversion wrapper around `getSignature()` - * @return {string} - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.getSignature_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSignature())); -}; - - -/** - * optional bytes signature = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSignature()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.getSignature_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSignature())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.ProtectedStorageEntry} returns this - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.setSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * optional int64 creation_time_stamp = 5; - * @return {number} - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.getCreationTimeStamp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.ProtectedStorageEntry} returns this - */ -proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.setCreationTimeStamp = function(value) { - return jspb.Message.setProto3IntField(this, 5, 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 - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.io.bisq.protobuffer.StorageEntryWrapper.oneofGroups_ = [[1,2]]; - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.StorageEntryWrapper.MessageCase = { - MESSAGE_NOT_SET: 0, - PROTECTED_STORAGE_ENTRY: 1, - PROTECTED_MAILBOX_STORAGE_ENTRY: 2 -}; - -/** - * @return {proto.io.bisq.protobuffer.StorageEntryWrapper.MessageCase} - */ -proto.io.bisq.protobuffer.StorageEntryWrapper.prototype.getMessageCase = function() { - return /** @type {proto.io.bisq.protobuffer.StorageEntryWrapper.MessageCase} */(jspb.Message.computeOneofCase(this, proto.io.bisq.protobuffer.StorageEntryWrapper.oneofGroups_[0])); -}; - - - -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.StorageEntryWrapper.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.StorageEntryWrapper.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.StorageEntryWrapper} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.StorageEntryWrapper.toObject = function(includeInstance, msg) { - var f, obj = { - protectedStorageEntry: (f = msg.getProtectedStorageEntry()) && proto.io.bisq.protobuffer.ProtectedStorageEntry.toObject(includeInstance, f), - protectedMailboxStorageEntry: (f = msg.getProtectedMailboxStorageEntry()) && proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.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.StorageEntryWrapper} - */ -proto.io.bisq.protobuffer.StorageEntryWrapper.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.StorageEntryWrapper; - return proto.io.bisq.protobuffer.StorageEntryWrapper.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.StorageEntryWrapper} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.StorageEntryWrapper} - */ -proto.io.bisq.protobuffer.StorageEntryWrapper.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.ProtectedStorageEntry; - reader.readMessage(value,proto.io.bisq.protobuffer.ProtectedStorageEntry.deserializeBinaryFromReader); - msg.setProtectedStorageEntry(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry; - reader.readMessage(value,proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.deserializeBinaryFromReader); - msg.setProtectedMailboxStorageEntry(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.StorageEntryWrapper.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.StorageEntryWrapper.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.StorageEntryWrapper} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.StorageEntryWrapper.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProtectedStorageEntry(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.ProtectedStorageEntry.serializeBinaryToWriter - ); - } - f = message.getProtectedMailboxStorageEntry(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ProtectedStorageEntry protected_storage_entry = 1; - * @return {?proto.io.bisq.protobuffer.ProtectedStorageEntry} - */ -proto.io.bisq.protobuffer.StorageEntryWrapper.prototype.getProtectedStorageEntry = function() { - return /** @type{?proto.io.bisq.protobuffer.ProtectedStorageEntry} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ProtectedStorageEntry, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.ProtectedStorageEntry|undefined} value - * @return {!proto.io.bisq.protobuffer.StorageEntryWrapper} returns this -*/ -proto.io.bisq.protobuffer.StorageEntryWrapper.prototype.setProtectedStorageEntry = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.io.bisq.protobuffer.StorageEntryWrapper.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.StorageEntryWrapper} returns this - */ -proto.io.bisq.protobuffer.StorageEntryWrapper.prototype.clearProtectedStorageEntry = function() { - return this.setProtectedStorageEntry(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.StorageEntryWrapper.prototype.hasProtectedStorageEntry = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional ProtectedMailboxStorageEntry protected_mailbox_storage_entry = 2; - * @return {?proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry} - */ -proto.io.bisq.protobuffer.StorageEntryWrapper.prototype.getProtectedMailboxStorageEntry = function() { - return /** @type{?proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry|undefined} value - * @return {!proto.io.bisq.protobuffer.StorageEntryWrapper} returns this -*/ -proto.io.bisq.protobuffer.StorageEntryWrapper.prototype.setProtectedMailboxStorageEntry = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.io.bisq.protobuffer.StorageEntryWrapper.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.StorageEntryWrapper} returns this - */ -proto.io.bisq.protobuffer.StorageEntryWrapper.prototype.clearProtectedMailboxStorageEntry = function() { - return this.setProtectedMailboxStorageEntry(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.StorageEntryWrapper.prototype.hasProtectedMailboxStorageEntry = 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.ProtectedMailboxStorageEntry.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.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.ProtectedMailboxStorageEntry} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.toObject = function(includeInstance, msg) { - var f, obj = { - entry: (f = msg.getEntry()) && proto.io.bisq.protobuffer.ProtectedStorageEntry.toObject(includeInstance, f), - receiversPubKeyBytes: msg.getReceiversPubKeyBytes_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.ProtectedMailboxStorageEntry} - */ -proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry; - return proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry} - */ -proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.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.ProtectedStorageEntry; - reader.readMessage(value,proto.io.bisq.protobuffer.ProtectedStorageEntry.deserializeBinaryFromReader); - msg.setEntry(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setReceiversPubKeyBytes(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.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.ProtectedMailboxStorageEntry} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEntry(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.ProtectedStorageEntry.serializeBinaryToWriter - ); - } - f = message.getReceiversPubKeyBytes_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } -}; - - -/** - * optional ProtectedStorageEntry entry = 1; - * @return {?proto.io.bisq.protobuffer.ProtectedStorageEntry} - */ -proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.prototype.getEntry = function() { - return /** @type{?proto.io.bisq.protobuffer.ProtectedStorageEntry} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ProtectedStorageEntry, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.ProtectedStorageEntry|undefined} value - * @return {!proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry} returns this -*/ -proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.prototype.setEntry = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry} returns this - */ -proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.prototype.clearEntry = function() { - return this.setEntry(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.prototype.hasEntry = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional bytes receivers_pub_key_bytes = 2; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.prototype.getReceiversPubKeyBytes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes receivers_pub_key_bytes = 2; - * This is a type-conversion wrapper around `getReceiversPubKeyBytes()` - * @return {string} - */ -proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.prototype.getReceiversPubKeyBytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getReceiversPubKeyBytes())); -}; - - -/** - * optional bytes receivers_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 `getReceiversPubKeyBytes()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.prototype.getReceiversPubKeyBytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getReceiversPubKeyBytes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry} returns this - */ -proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.prototype.setReceiversPubKeyBytes = function(value) { - return jspb.Message.setProto3BytesField(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.DataAndSeqNrPair.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.DataAndSeqNrPair.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.DataAndSeqNrPair} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.DataAndSeqNrPair.toObject = function(includeInstance, msg) { - var f, obj = { - payload: (f = msg.getPayload()) && proto.io.bisq.protobuffer.StoragePayload.toObject(includeInstance, f), - sequenceNumber: jspb.Message.getFieldWithDefault(msg, 2, 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.DataAndSeqNrPair} - */ -proto.io.bisq.protobuffer.DataAndSeqNrPair.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.DataAndSeqNrPair; - return proto.io.bisq.protobuffer.DataAndSeqNrPair.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.DataAndSeqNrPair} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.DataAndSeqNrPair} - */ -proto.io.bisq.protobuffer.DataAndSeqNrPair.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.StoragePayload; - reader.readMessage(value,proto.io.bisq.protobuffer.StoragePayload.deserializeBinaryFromReader); - msg.setPayload(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setSequenceNumber(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.DataAndSeqNrPair.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.DataAndSeqNrPair.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.DataAndSeqNrPair} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.DataAndSeqNrPair.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPayload(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.StoragePayload.serializeBinaryToWriter - ); - } - f = message.getSequenceNumber(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } -}; - - -/** - * optional StoragePayload payload = 1; - * @return {?proto.io.bisq.protobuffer.StoragePayload} - */ -proto.io.bisq.protobuffer.DataAndSeqNrPair.prototype.getPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.StoragePayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.StoragePayload, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.StoragePayload|undefined} value - * @return {!proto.io.bisq.protobuffer.DataAndSeqNrPair} returns this -*/ -proto.io.bisq.protobuffer.DataAndSeqNrPair.prototype.setPayload = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.DataAndSeqNrPair} returns this - */ -proto.io.bisq.protobuffer.DataAndSeqNrPair.prototype.clearPayload = function() { - return this.setPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.DataAndSeqNrPair.prototype.hasPayload = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional int32 sequence_number = 2; - * @return {number} - */ -proto.io.bisq.protobuffer.DataAndSeqNrPair.prototype.getSequenceNumber = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.DataAndSeqNrPair} returns this - */ -proto.io.bisq.protobuffer.DataAndSeqNrPair.prototype.setSequenceNumber = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - - -/** - * 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|Uint8Array)} - */ -proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.prototype.getSignaturePubKeyBytes = function() { - return /** @type {!(string|Uint8Array)} */ (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) { -/** - * 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.PrivateNotificationPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PrivateNotificationPayload.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.PrivateNotificationPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PrivateNotificationPayload.toObject = function(includeInstance, msg) { - var f, obj = { - message: jspb.Message.getFieldWithDefault(msg, 1, ""), - signatureAsBase64: jspb.Message.getFieldWithDefault(msg, 2, ""), - sigPublicKeyBytes: msg.getSigPublicKeyBytes_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.PrivateNotificationPayload} - */ -proto.io.bisq.protobuffer.PrivateNotificationPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PrivateNotificationPayload; - return proto.io.bisq.protobuffer.PrivateNotificationPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PrivateNotificationPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PrivateNotificationPayload} - */ -proto.io.bisq.protobuffer.PrivateNotificationPayload.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.setMessage(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setSignatureAsBase64(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSigPublicKeyBytes(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PrivateNotificationPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PrivateNotificationPayload.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.PrivateNotificationPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PrivateNotificationPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMessage(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSignatureAsBase64(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSigPublicKeyBytes_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } -}; - - -/** - * optional string message = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.PrivateNotificationPayload.prototype.getMessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PrivateNotificationPayload} returns this - */ -proto.io.bisq.protobuffer.PrivateNotificationPayload.prototype.setMessage = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string signature_as_base64 = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.PrivateNotificationPayload.prototype.getSignatureAsBase64 = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PrivateNotificationPayload} returns this - */ -proto.io.bisq.protobuffer.PrivateNotificationPayload.prototype.setSignatureAsBase64 = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bytes sig_public_key_bytes = 3; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.PrivateNotificationPayload.prototype.getSigPublicKeyBytes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes sig_public_key_bytes = 3; - * This is a type-conversion wrapper around `getSigPublicKeyBytes()` - * @return {string} - */ -proto.io.bisq.protobuffer.PrivateNotificationPayload.prototype.getSigPublicKeyBytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSigPublicKeyBytes())); -}; - - -/** - * optional bytes sig_public_key_bytes = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSigPublicKeyBytes()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PrivateNotificationPayload.prototype.getSigPublicKeyBytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSigPublicKeyBytes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.PrivateNotificationPayload} returns this - */ -proto.io.bisq.protobuffer.PrivateNotificationPayload.prototype.setSigPublicKeyBytes = function(value) { - return jspb.Message.setProto3BytesField(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.PaymentAccountFilter.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PaymentAccountFilter.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.PaymentAccountFilter} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PaymentAccountFilter.toObject = function(includeInstance, msg) { - var f, obj = { - paymentMethodId: jspb.Message.getFieldWithDefault(msg, 1, ""), - getMethodName: jspb.Message.getFieldWithDefault(msg, 2, ""), - value: 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.PaymentAccountFilter} - */ -proto.io.bisq.protobuffer.PaymentAccountFilter.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PaymentAccountFilter; - return proto.io.bisq.protobuffer.PaymentAccountFilter.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PaymentAccountFilter} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PaymentAccountFilter} - */ -proto.io.bisq.protobuffer.PaymentAccountFilter.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; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGetMethodName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PaymentAccountFilter.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PaymentAccountFilter.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.PaymentAccountFilter} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PaymentAccountFilter.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPaymentMethodId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getGetMethodName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string payment_method_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.PaymentAccountFilter.prototype.getPaymentMethodId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountFilter} returns this - */ -proto.io.bisq.protobuffer.PaymentAccountFilter.prototype.setPaymentMethodId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string get_method_name = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.PaymentAccountFilter.prototype.getGetMethodName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountFilter} returns this - */ -proto.io.bisq.protobuffer.PaymentAccountFilter.prototype.setGetMethodName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string value = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.PaymentAccountFilter.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountFilter} returns this - */ -proto.io.bisq.protobuffer.PaymentAccountFilter.prototype.setValue = 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.Alert.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.Alert.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.Alert} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Alert.toObject = function(includeInstance, msg) { - var f, obj = { - message: jspb.Message.getFieldWithDefault(msg, 1, ""), - version: jspb.Message.getFieldWithDefault(msg, 2, ""), - 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) : [], - isPreReleaseInfo: jspb.Message.getBooleanFieldWithDefault(msg, 7, 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.Alert} - */ -proto.io.bisq.protobuffer.Alert.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.Alert; - return proto.io.bisq.protobuffer.Alert.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.Alert} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.Alert} - */ -proto.io.bisq.protobuffer.Alert.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.setMessage(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsUpdateInfo(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setSignatureAsBase64(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setOwnerPubKeyBytes(value); - break; - case 6: - 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 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsPreReleaseInfo(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Alert.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.Alert.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.Alert} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Alert.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMessage(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getIsUpdateInfo(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getSignatureAsBase64(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getOwnerPubKeyBytes_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } - f = message.getExtraDataMap(true); - 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 - ); - } -}; - - -/** - * optional string message = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.Alert.prototype.getMessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Alert} returns this - */ -proto.io.bisq.protobuffer.Alert.prototype.setMessage = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string version = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.Alert.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Alert} returns this - */ -proto.io.bisq.protobuffer.Alert.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool is_update_info = 3; - * @return {boolean} - */ -proto.io.bisq.protobuffer.Alert.prototype.getIsUpdateInfo = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.Alert} returns this - */ -proto.io.bisq.protobuffer.Alert.prototype.setIsUpdateInfo = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional string signature_as_base64 = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.Alert.prototype.getSignatureAsBase64 = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Alert} returns this - */ -proto.io.bisq.protobuffer.Alert.prototype.setSignatureAsBase64 = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bytes owner_pub_key_bytes = 5; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.Alert.prototype.getOwnerPubKeyBytes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes owner_pub_key_bytes = 5; - * This is a type-conversion wrapper around `getOwnerPubKeyBytes()` - * @return {string} - */ -proto.io.bisq.protobuffer.Alert.prototype.getOwnerPubKeyBytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getOwnerPubKeyBytes())); -}; - - -/** - * optional bytes owner_pub_key_bytes = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getOwnerPubKeyBytes()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Alert.prototype.getOwnerPubKeyBytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getOwnerPubKeyBytes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.Alert} returns this - */ -proto.io.bisq.protobuffer.Alert.prototype.setOwnerPubKeyBytes = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - -/** - * map extra_data = 6; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.io.bisq.protobuffer.Alert.prototype.getExtraDataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 6, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.io.bisq.protobuffer.Alert} returns this - */ -proto.io.bisq.protobuffer.Alert.prototype.clearExtraDataMap = function() { - this.getExtraDataMap().clear(); - 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. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.Arbitrator.repeatedFields_ = [2]; - - - -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.Arbitrator.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.Arbitrator.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.Arbitrator} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Arbitrator.toObject = function(includeInstance, msg) { - var f, obj = { - nodeAddress: (f = msg.getNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - languageCodesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - registrationDate: jspb.Message.getFieldWithDefault(msg, 3, 0), - registrationSignature: jspb.Message.getFieldWithDefault(msg, 4, ""), - registrationPubKey: msg.getRegistrationPubKey_asB64(), - pubKeyRing: (f = msg.getPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - btcPubKey: msg.getBtcPubKey_asB64(), - btcAddress: jspb.Message.getFieldWithDefault(msg, 8, ""), - emailAddress: jspb.Message.getFieldWithDefault(msg, 9, ""), - info: jspb.Message.getFieldWithDefault(msg, 10, ""), - 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.Arbitrator} - */ -proto.io.bisq.protobuffer.Arbitrator.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.Arbitrator; - return proto.io.bisq.protobuffer.Arbitrator.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.Arbitrator} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.Arbitrator} - */ -proto.io.bisq.protobuffer.Arbitrator.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.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setNodeAddress(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addLanguageCodes(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setRegistrationDate(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setRegistrationSignature(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setRegistrationPubKey(value); - break; - case 6: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setPubKeyRing(value); - break; - case 7: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setBtcPubKey(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setBtcAddress(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setEmailAddress(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setInfo(value); - break; - case 11: - 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.Arbitrator.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.Arbitrator.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.Arbitrator} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Arbitrator.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNodeAddress(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getLanguageCodesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getRegistrationDate(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getRegistrationSignature(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRegistrationPubKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } - f = message.getPubKeyRing(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getBtcPubKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 7, - f - ); - } - f = message.getBtcAddress(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getEmailAddress(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getInfo(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getExtraDataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(11, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional NodeAddress node_address = 1; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.getNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.Arbitrator} returns this -*/ -proto.io.bisq.protobuffer.Arbitrator.prototype.setNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Arbitrator} returns this - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.clearNodeAddress = function() { - return this.setNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.hasNodeAddress = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated string language_codes = 2; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.getLanguageCodesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Arbitrator} returns this - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.setLanguageCodesList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Arbitrator} returns this - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.addLanguageCodes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Arbitrator} returns this - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.clearLanguageCodesList = function() { - return this.setLanguageCodesList([]); -}; - - -/** - * optional int64 registration_date = 3; - * @return {number} - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.getRegistrationDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Arbitrator} returns this - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.setRegistrationDate = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional string registration_signature = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.getRegistrationSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Arbitrator} returns this - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.setRegistrationSignature = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bytes registration_pub_key = 5; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.getRegistrationPubKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes registration_pub_key = 5; - * This is a type-conversion wrapper around `getRegistrationPubKey()` - * @return {string} - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.getRegistrationPubKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getRegistrationPubKey())); -}; - - -/** - * optional bytes registration_pub_key = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getRegistrationPubKey()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.getRegistrationPubKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getRegistrationPubKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.Arbitrator} returns this - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.setRegistrationPubKey = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - -/** - * optional PubKeyRing pub_key_ring = 6; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.getPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 6)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.Arbitrator} returns this -*/ -proto.io.bisq.protobuffer.Arbitrator.prototype.setPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Arbitrator} returns this - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.clearPubKeyRing = function() { - return this.setPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.hasPubKeyRing = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional bytes btc_pub_key = 7; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.getBtcPubKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * optional bytes btc_pub_key = 7; - * This is a type-conversion wrapper around `getBtcPubKey()` - * @return {string} - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.getBtcPubKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getBtcPubKey())); -}; - - -/** - * optional bytes btc_pub_key = 7; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getBtcPubKey()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.getBtcPubKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getBtcPubKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.Arbitrator} returns this - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.setBtcPubKey = function(value) { - return jspb.Message.setProto3BytesField(this, 7, value); -}; - - -/** - * optional string btc_address = 8; - * @return {string} - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.getBtcAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Arbitrator} returns this - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.setBtcAddress = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string email_address = 9; - * @return {string} - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.getEmailAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Arbitrator} returns this - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.setEmailAddress = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional string info = 10; - * @return {string} - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.getInfo = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Arbitrator} returns this - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.setInfo = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); -}; - - -/** - * map extra_data = 11; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.getExtraDataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 11, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.io.bisq.protobuffer.Arbitrator} returns this - */ -proto.io.bisq.protobuffer.Arbitrator.prototype.clearExtraDataMap = function() { - this.getExtraDataMap().clear(); - return this;}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.Mediator.repeatedFields_ = [2]; - - - -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.Mediator.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.Mediator.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.Mediator} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Mediator.toObject = function(includeInstance, msg) { - var f, obj = { - nodeAddress: (f = msg.getNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - languageCodesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - registrationDate: jspb.Message.getFieldWithDefault(msg, 3, 0), - registrationSignature: jspb.Message.getFieldWithDefault(msg, 4, ""), - registrationPubKey: msg.getRegistrationPubKey_asB64(), - pubKeyRing: (f = msg.getPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - emailAddress: jspb.Message.getFieldWithDefault(msg, 7, ""), - info: jspb.Message.getFieldWithDefault(msg, 8, ""), - 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.Mediator} - */ -proto.io.bisq.protobuffer.Mediator.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.Mediator; - return proto.io.bisq.protobuffer.Mediator.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.Mediator} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.Mediator} - */ -proto.io.bisq.protobuffer.Mediator.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.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setNodeAddress(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addLanguageCodes(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setRegistrationDate(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setRegistrationSignature(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setRegistrationPubKey(value); - break; - case 6: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setPubKeyRing(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setEmailAddress(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setInfo(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; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Mediator.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.Mediator.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.Mediator} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Mediator.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNodeAddress(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getLanguageCodesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getRegistrationDate(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getRegistrationSignature(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRegistrationPubKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } - f = message.getPubKeyRing(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getEmailAddress(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getInfo(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getExtraDataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional NodeAddress node_address = 1; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.Mediator.prototype.getNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.Mediator} returns this -*/ -proto.io.bisq.protobuffer.Mediator.prototype.setNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Mediator} returns this - */ -proto.io.bisq.protobuffer.Mediator.prototype.clearNodeAddress = function() { - return this.setNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Mediator.prototype.hasNodeAddress = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated string language_codes = 2; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Mediator.prototype.getLanguageCodesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Mediator} returns this - */ -proto.io.bisq.protobuffer.Mediator.prototype.setLanguageCodesList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Mediator} returns this - */ -proto.io.bisq.protobuffer.Mediator.prototype.addLanguageCodes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Mediator} returns this - */ -proto.io.bisq.protobuffer.Mediator.prototype.clearLanguageCodesList = function() { - return this.setLanguageCodesList([]); -}; - - -/** - * optional int64 registration_date = 3; - * @return {number} - */ -proto.io.bisq.protobuffer.Mediator.prototype.getRegistrationDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Mediator} returns this - */ -proto.io.bisq.protobuffer.Mediator.prototype.setRegistrationDate = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional string registration_signature = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.Mediator.prototype.getRegistrationSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Mediator} returns this - */ -proto.io.bisq.protobuffer.Mediator.prototype.setRegistrationSignature = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bytes registration_pub_key = 5; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.Mediator.prototype.getRegistrationPubKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes registration_pub_key = 5; - * This is a type-conversion wrapper around `getRegistrationPubKey()` - * @return {string} - */ -proto.io.bisq.protobuffer.Mediator.prototype.getRegistrationPubKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getRegistrationPubKey())); -}; - - -/** - * optional bytes registration_pub_key = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getRegistrationPubKey()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Mediator.prototype.getRegistrationPubKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getRegistrationPubKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.Mediator} returns this - */ -proto.io.bisq.protobuffer.Mediator.prototype.setRegistrationPubKey = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - -/** - * optional PubKeyRing pub_key_ring = 6; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.Mediator.prototype.getPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 6)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.Mediator} returns this -*/ -proto.io.bisq.protobuffer.Mediator.prototype.setPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Mediator} returns this - */ -proto.io.bisq.protobuffer.Mediator.prototype.clearPubKeyRing = function() { - return this.setPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Mediator.prototype.hasPubKeyRing = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional string email_address = 7; - * @return {string} - */ -proto.io.bisq.protobuffer.Mediator.prototype.getEmailAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Mediator} returns this - */ -proto.io.bisq.protobuffer.Mediator.prototype.setEmailAddress = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string info = 8; - * @return {string} - */ -proto.io.bisq.protobuffer.Mediator.prototype.getInfo = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Mediator} returns this - */ -proto.io.bisq.protobuffer.Mediator.prototype.setInfo = function(value) { - return jspb.Message.setProto3StringField(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.Mediator.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.Mediator} returns this - */ -proto.io.bisq.protobuffer.Mediator.prototype.clearExtraDataMap = function() { - this.getExtraDataMap().clear(); - return this;}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.RefundAgent.repeatedFields_ = [2]; - - - -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.RefundAgent.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.RefundAgent.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.RefundAgent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RefundAgent.toObject = function(includeInstance, msg) { - var f, obj = { - nodeAddress: (f = msg.getNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - languageCodesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - registrationDate: jspb.Message.getFieldWithDefault(msg, 3, 0), - registrationSignature: jspb.Message.getFieldWithDefault(msg, 4, ""), - registrationPubKey: msg.getRegistrationPubKey_asB64(), - pubKeyRing: (f = msg.getPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - emailAddress: jspb.Message.getFieldWithDefault(msg, 7, ""), - info: jspb.Message.getFieldWithDefault(msg, 8, ""), - 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.RefundAgent} - */ -proto.io.bisq.protobuffer.RefundAgent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.RefundAgent; - return proto.io.bisq.protobuffer.RefundAgent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.RefundAgent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.RefundAgent} - */ -proto.io.bisq.protobuffer.RefundAgent.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.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setNodeAddress(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addLanguageCodes(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setRegistrationDate(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setRegistrationSignature(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setRegistrationPubKey(value); - break; - case 6: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setPubKeyRing(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setEmailAddress(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setInfo(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; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.RefundAgent.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.RefundAgent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RefundAgent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNodeAddress(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getLanguageCodesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getRegistrationDate(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getRegistrationSignature(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRegistrationPubKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } - f = message.getPubKeyRing(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getEmailAddress(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getInfo(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getExtraDataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional NodeAddress node_address = 1; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.getNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.RefundAgent} returns this -*/ -proto.io.bisq.protobuffer.RefundAgent.prototype.setNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.RefundAgent} returns this - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.clearNodeAddress = function() { - return this.setNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.hasNodeAddress = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated string language_codes = 2; - * @return {!Array} - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.getLanguageCodesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.RefundAgent} returns this - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.setLanguageCodesList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.RefundAgent} returns this - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.addLanguageCodes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.RefundAgent} returns this - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.clearLanguageCodesList = function() { - return this.setLanguageCodesList([]); -}; - - -/** - * optional int64 registration_date = 3; - * @return {number} - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.getRegistrationDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.RefundAgent} returns this - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.setRegistrationDate = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional string registration_signature = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.getRegistrationSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.RefundAgent} returns this - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.setRegistrationSignature = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bytes registration_pub_key = 5; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.getRegistrationPubKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes registration_pub_key = 5; - * This is a type-conversion wrapper around `getRegistrationPubKey()` - * @return {string} - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.getRegistrationPubKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getRegistrationPubKey())); -}; - - -/** - * optional bytes registration_pub_key = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getRegistrationPubKey()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.getRegistrationPubKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getRegistrationPubKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.RefundAgent} returns this - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.setRegistrationPubKey = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - -/** - * optional PubKeyRing pub_key_ring = 6; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.getPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 6)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.RefundAgent} returns this -*/ -proto.io.bisq.protobuffer.RefundAgent.prototype.setPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.RefundAgent} returns this - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.clearPubKeyRing = function() { - return this.setPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.hasPubKeyRing = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional string email_address = 7; - * @return {string} - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.getEmailAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.RefundAgent} returns this - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.setEmailAddress = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string info = 8; - * @return {string} - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.getInfo = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.RefundAgent} returns this - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.setInfo = function(value) { - return jspb.Message.setProto3StringField(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.RefundAgent.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.RefundAgent} returns this - */ -proto.io.bisq.protobuffer.RefundAgent.prototype.clearExtraDataMap = function() { - this.getExtraDataMap().clear(); - return this;}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.Filter.repeatedFields_ = [1,2,3,7,8,9,10,11,13,15,16,17,18,21,23,24]; - - - -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.Filter.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.Filter.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.Filter} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Filter.toObject = function(includeInstance, msg) { - var f, obj = { - 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), - signatureAsBase64: jspb.Message.getFieldWithDefault(msg, 4, ""), - ownerPubKeyBytes: msg.getOwnerPubKeyBytes_asB64(), - extraDataMap: (f = msg.getExtraDataMap()) ? f.toObject(includeInstance, undefined) : [], - bannedCurrenciesList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f, - bannedPaymentMethodsList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f, - arbitratorsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f, - seedNodesList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f, - priceRelayNodesList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f, - preventPublicBtcNetwork: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), - btcNodesList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f, - disableTradeBelowVersion: jspb.Message.getFieldWithDefault(msg, 14, ""), - mediatorsList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f, - refundagentsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? undefined : f, - bannedsignerpubkeysList: (f = jspb.Message.getRepeatedField(msg, 17)) == null ? undefined : f, - btcFeeReceiverAddressesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f, - creationDate: jspb.Message.getFieldWithDefault(msg, 19, 0), - signerPubKeyAsHex: jspb.Message.getFieldWithDefault(msg, 20, ""), - bannedprivilegeddevpubkeysList: (f = jspb.Message.getRepeatedField(msg, 21)) == null ? undefined : f, - disableAutoConf: jspb.Message.getBooleanFieldWithDefault(msg, 22, false), - bannedAutoConfExplorersList: (f = jspb.Message.getRepeatedField(msg, 23)) == null ? undefined : f, - nodeAddressesBannedFromNetworkList: (f = jspb.Message.getRepeatedField(msg, 24)) == null ? undefined : f, - disableApi: jspb.Message.getBooleanFieldWithDefault(msg, 25, false), - disableMempoolValidation: jspb.Message.getBooleanFieldWithDefault(msg, 26, 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.Filter} - */ -proto.io.bisq.protobuffer.Filter.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.Filter; - return proto.io.bisq.protobuffer.Filter.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.Filter} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.Filter} - */ -proto.io.bisq.protobuffer.Filter.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.addNodeAddressesBannedFromTrading(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addBannedOfferIds(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.PaymentAccountFilter; - reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccountFilter.deserializeBinaryFromReader); - msg.addBannedPaymentAccounts(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setSignatureAsBase64(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setOwnerPubKeyBytes(value); - break; - case 6: - 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 7: - var value = /** @type {string} */ (reader.readString()); - msg.addBannedCurrencies(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.addBannedPaymentMethods(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.addArbitrators(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.addSeedNodes(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.addPriceRelayNodes(value); - break; - case 12: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPreventPublicBtcNetwork(value); - break; - case 13: - var value = /** @type {string} */ (reader.readString()); - msg.addBtcNodes(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setDisableTradeBelowVersion(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.addMediators(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.addRefundagents(value); - break; - case 17: - var value = /** @type {string} */ (reader.readString()); - msg.addBannedsignerpubkeys(value); - break; - case 18: - var value = /** @type {string} */ (reader.readString()); - msg.addBtcFeeReceiverAddresses(value); - break; - case 19: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCreationDate(value); - break; - case 20: - var value = /** @type {string} */ (reader.readString()); - msg.setSignerPubKeyAsHex(value); - break; - case 21: - var value = /** @type {string} */ (reader.readString()); - msg.addBannedprivilegeddevpubkeys(value); - break; - case 22: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDisableAutoConf(value); - break; - case 23: - var value = /** @type {string} */ (reader.readString()); - msg.addBannedAutoConfExplorers(value); - break; - case 24: - var value = /** @type {string} */ (reader.readString()); - msg.addNodeAddressesBannedFromNetwork(value); - break; - case 25: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDisableApi(value); - break; - case 26: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDisableMempoolValidation(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Filter.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.Filter.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.Filter} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Filter.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNodeAddressesBannedFromTradingList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } - f = message.getBannedOfferIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getBannedPaymentAccountsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.io.bisq.protobuffer.PaymentAccountFilter.serializeBinaryToWriter - ); - } - f = message.getSignatureAsBase64(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getOwnerPubKeyBytes_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } - f = message.getExtraDataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getBannedCurrenciesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 7, - f - ); - } - f = message.getBannedPaymentMethodsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 8, - f - ); - } - f = message.getArbitratorsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 9, - f - ); - } - f = message.getSeedNodesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 10, - f - ); - } - f = message.getPriceRelayNodesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 11, - f - ); - } - f = message.getPreventPublicBtcNetwork(); - if (f) { - writer.writeBool( - 12, - f - ); - } - f = message.getBtcNodesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 13, - f - ); - } - f = message.getDisableTradeBelowVersion(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getMediatorsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 15, - f - ); - } - f = message.getRefundagentsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 16, - f - ); - } - f = message.getBannedsignerpubkeysList(); - if (f.length > 0) { - writer.writeRepeatedString( - 17, - f - ); - } - f = message.getBtcFeeReceiverAddressesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 18, - f - ); - } - f = message.getCreationDate(); - if (f !== 0) { - writer.writeInt64( - 19, - f - ); - } - f = message.getSignerPubKeyAsHex(); - if (f.length > 0) { - writer.writeString( - 20, - f - ); - } - f = message.getBannedprivilegeddevpubkeysList(); - if (f.length > 0) { - writer.writeRepeatedString( - 21, - f - ); - } - f = message.getDisableAutoConf(); - if (f) { - writer.writeBool( - 22, - f - ); - } - f = message.getBannedAutoConfExplorersList(); - if (f.length > 0) { - writer.writeRepeatedString( - 23, - f - ); - } - f = message.getNodeAddressesBannedFromNetworkList(); - if (f.length > 0) { - writer.writeRepeatedString( - 24, - f - ); - } - f = message.getDisableApi(); - if (f) { - writer.writeBool( - 25, - f - ); - } - f = message.getDisableMempoolValidation(); - if (f) { - writer.writeBool( - 26, - f - ); - } -}; - - -/** - * repeated string node_addresses_banned_from_trading = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Filter.prototype.getNodeAddressesBannedFromTradingList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setNodeAddressesBannedFromTradingList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.addNodeAddressesBannedFromTrading = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.clearNodeAddressesBannedFromTradingList = function() { - return this.setNodeAddressesBannedFromTradingList([]); -}; - - -/** - * repeated string banned_offer_ids = 2; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Filter.prototype.getBannedOfferIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setBannedOfferIdsList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.addBannedOfferIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.clearBannedOfferIdsList = function() { - return this.setBannedOfferIdsList([]); -}; - - -/** - * repeated PaymentAccountFilter banned_payment_accounts = 3; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Filter.prototype.getBannedPaymentAccountsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.PaymentAccountFilter, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this -*/ -proto.io.bisq.protobuffer.Filter.prototype.setBannedPaymentAccountsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.PaymentAccountFilter=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.PaymentAccountFilter} - */ -proto.io.bisq.protobuffer.Filter.prototype.addBannedPaymentAccounts = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.io.bisq.protobuffer.PaymentAccountFilter, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.clearBannedPaymentAccountsList = function() { - return this.setBannedPaymentAccountsList([]); -}; - - -/** - * optional string signature_as_base64 = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.Filter.prototype.getSignatureAsBase64 = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setSignatureAsBase64 = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bytes owner_pub_key_bytes = 5; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.Filter.prototype.getOwnerPubKeyBytes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes owner_pub_key_bytes = 5; - * This is a type-conversion wrapper around `getOwnerPubKeyBytes()` - * @return {string} - */ -proto.io.bisq.protobuffer.Filter.prototype.getOwnerPubKeyBytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getOwnerPubKeyBytes())); -}; - - -/** - * optional bytes owner_pub_key_bytes = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getOwnerPubKeyBytes()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Filter.prototype.getOwnerPubKeyBytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getOwnerPubKeyBytes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setOwnerPubKeyBytes = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - -/** - * map extra_data = 6; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.io.bisq.protobuffer.Filter.prototype.getExtraDataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 6, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.clearExtraDataMap = function() { - this.getExtraDataMap().clear(); - return this;}; - - -/** - * repeated string banned_currencies = 7; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Filter.prototype.getBannedCurrenciesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setBannedCurrenciesList = function(value) { - return jspb.Message.setField(this, 7, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.addBannedCurrencies = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 7, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.clearBannedCurrenciesList = function() { - return this.setBannedCurrenciesList([]); -}; - - -/** - * repeated string banned_payment_methods = 8; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Filter.prototype.getBannedPaymentMethodsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 8)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setBannedPaymentMethodsList = function(value) { - return jspb.Message.setField(this, 8, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.addBannedPaymentMethods = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 8, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.clearBannedPaymentMethodsList = function() { - return this.setBannedPaymentMethodsList([]); -}; - - -/** - * repeated string arbitrators = 9; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Filter.prototype.getArbitratorsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 9)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setArbitratorsList = function(value) { - return jspb.Message.setField(this, 9, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.addArbitrators = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 9, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.clearArbitratorsList = function() { - return this.setArbitratorsList([]); -}; - - -/** - * repeated string seed_nodes = 10; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Filter.prototype.getSeedNodesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 10)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setSeedNodesList = function(value) { - return jspb.Message.setField(this, 10, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.addSeedNodes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 10, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.clearSeedNodesList = function() { - return this.setSeedNodesList([]); -}; - - -/** - * repeated string price_relay_nodes = 11; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Filter.prototype.getPriceRelayNodesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 11)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setPriceRelayNodesList = function(value) { - return jspb.Message.setField(this, 11, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.addPriceRelayNodes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 11, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.clearPriceRelayNodesList = function() { - return this.setPriceRelayNodesList([]); -}; - - -/** - * optional bool prevent_public_btc_network = 12; - * @return {boolean} - */ -proto.io.bisq.protobuffer.Filter.prototype.getPreventPublicBtcNetwork = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setPreventPublicBtcNetwork = function(value) { - return jspb.Message.setProto3BooleanField(this, 12, value); -}; - - -/** - * repeated string btc_nodes = 13; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Filter.prototype.getBtcNodesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 13)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setBtcNodesList = function(value) { - return jspb.Message.setField(this, 13, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.addBtcNodes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 13, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.clearBtcNodesList = function() { - return this.setBtcNodesList([]); -}; - - -/** - * optional string disable_trade_below_version = 14; - * @return {string} - */ -proto.io.bisq.protobuffer.Filter.prototype.getDisableTradeBelowVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setDisableTradeBelowVersion = function(value) { - return jspb.Message.setProto3StringField(this, 14, value); -}; - - -/** - * repeated string mediators = 15; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Filter.prototype.getMediatorsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 15)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setMediatorsList = function(value) { - return jspb.Message.setField(this, 15, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.addMediators = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 15, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.clearMediatorsList = function() { - return this.setMediatorsList([]); -}; - - -/** - * repeated string refundAgents = 16; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Filter.prototype.getRefundagentsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 16)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setRefundagentsList = function(value) { - return jspb.Message.setField(this, 16, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.addRefundagents = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 16, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.clearRefundagentsList = function() { - return this.setRefundagentsList([]); -}; - - -/** - * repeated string bannedSignerPubKeys = 17; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Filter.prototype.getBannedsignerpubkeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 17)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setBannedsignerpubkeysList = function(value) { - return jspb.Message.setField(this, 17, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.addBannedsignerpubkeys = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 17, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.clearBannedsignerpubkeysList = function() { - return this.setBannedsignerpubkeysList([]); -}; - - -/** - * repeated string btc_fee_receiver_addresses = 18; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Filter.prototype.getBtcFeeReceiverAddressesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 18)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setBtcFeeReceiverAddressesList = function(value) { - return jspb.Message.setField(this, 18, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.addBtcFeeReceiverAddresses = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 18, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.clearBtcFeeReceiverAddressesList = function() { - return this.setBtcFeeReceiverAddressesList([]); -}; - - -/** - * optional int64 creation_date = 19; - * @return {number} - */ -proto.io.bisq.protobuffer.Filter.prototype.getCreationDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setCreationDate = function(value) { - return jspb.Message.setProto3IntField(this, 19, value); -}; - - -/** - * optional string signer_pub_key_as_hex = 20; - * @return {string} - */ -proto.io.bisq.protobuffer.Filter.prototype.getSignerPubKeyAsHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setSignerPubKeyAsHex = function(value) { - return jspb.Message.setProto3StringField(this, 20, value); -}; - - -/** - * repeated string bannedPrivilegedDevPubKeys = 21; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Filter.prototype.getBannedprivilegeddevpubkeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 21)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setBannedprivilegeddevpubkeysList = function(value) { - return jspb.Message.setField(this, 21, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.addBannedprivilegeddevpubkeys = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 21, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.clearBannedprivilegeddevpubkeysList = function() { - return this.setBannedprivilegeddevpubkeysList([]); -}; - - -/** - * optional bool disable_auto_conf = 22; - * @return {boolean} - */ -proto.io.bisq.protobuffer.Filter.prototype.getDisableAutoConf = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 22, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setDisableAutoConf = function(value) { - return jspb.Message.setProto3BooleanField(this, 22, value); -}; - - -/** - * repeated string banned_auto_conf_explorers = 23; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Filter.prototype.getBannedAutoConfExplorersList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 23)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setBannedAutoConfExplorersList = function(value) { - return jspb.Message.setField(this, 23, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.addBannedAutoConfExplorers = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 23, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.clearBannedAutoConfExplorersList = function() { - return this.setBannedAutoConfExplorersList([]); -}; - - -/** - * repeated string node_addresses_banned_from_network = 24; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Filter.prototype.getNodeAddressesBannedFromNetworkList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 24)); -}; - - -/** - * @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, 24, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.addNodeAddressesBannedFromNetwork = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 24, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.clearNodeAddressesBannedFromNetworkList = function() { - return this.setNodeAddressesBannedFromNetworkList([]); -}; - - -/** - * optional bool disable_api = 25; - * @return {boolean} - */ -proto.io.bisq.protobuffer.Filter.prototype.getDisableApi = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 25, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setDisableApi = function(value) { - return jspb.Message.setProto3BooleanField(this, 25, value); -}; - - -/** - * optional bool disable_mempool_validation = 26; - * @return {boolean} - */ -proto.io.bisq.protobuffer.Filter.prototype.getDisableMempoolValidation = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 26, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.Filter} returns this - */ -proto.io.bisq.protobuffer.Filter.prototype.setDisableMempoolValidation = function(value) { - return jspb.Message.setProto3BooleanField(this, 26, 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.TradeStatistics2.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.TradeStatistics2.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.TradeStatistics2} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.TradeStatistics2.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, ""), - hash: msg.getHash_asB64(), - extraDataMap: (f = msg.getExtraDataMap()) ? f.toObject(includeInstance, undefined) : [], - 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.TradeStatistics2} - */ -proto.io.bisq.protobuffer.TradeStatistics2.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.TradeStatistics2; - return proto.io.bisq.protobuffer.TradeStatistics2.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.TradeStatistics2} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.TradeStatistics2} - */ -proto.io.bisq.protobuffer.TradeStatistics2.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.setHash(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; - 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.TradeStatistics2.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.TradeStatistics2.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.TradeStatistics2} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.TradeStatistics2.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.getHash_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); - } - f = message.getMakerDepositTxId(); - if (f.length > 0) { - writer.writeString( - 100, - f - ); - } - f = message.getTakerDepositTxId(); - if (f.length > 0) { - writer.writeString( - 101, - f - ); - } -}; - - -/** - * optional string base_currency = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.getBaseCurrency = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics2} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.setBaseCurrency = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string counter_currency = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.getCounterCurrency = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics2} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.setCounterCurrency = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional OfferPayload.Direction direction = 3; - * @return {!proto.io.bisq.protobuffer.OfferPayload.Direction} - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.getDirection = function() { - return /** @type {!proto.io.bisq.protobuffer.OfferPayload.Direction} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.OfferPayload.Direction} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics2} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.setDirection = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional int64 trade_price = 4; - * @return {number} - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.getTradePrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics2} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.setTradePrice = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional int64 trade_amount = 5; - * @return {number} - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.getTradeAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics2} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.setTradeAmount = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional int64 trade_date = 6; - * @return {number} - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.getTradeDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics2} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.setTradeDate = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional string payment_method_id = 7; - * @return {string} - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.getPaymentMethodId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics2} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.setPaymentMethodId = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional int64 offer_date = 8; - * @return {number} - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.getOfferDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics2} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.setOfferDate = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional bool offer_use_market_based_price = 9; - * @return {boolean} - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.getOfferUseMarketBasedPrice = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics2} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.setOfferUseMarketBasedPrice = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); -}; - - -/** - * optional double offer_market_price_margin = 10; - * @return {number} - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.getOfferMarketPriceMargin = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics2} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.setOfferMarketPriceMargin = function(value) { - return jspb.Message.setProto3FloatField(this, 10, value); -}; - - -/** - * optional int64 offer_amount = 11; - * @return {number} - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.getOfferAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics2} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.setOfferAmount = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * optional int64 offer_min_amount = 12; - * @return {number} - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.getOfferMinAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics2} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.setOfferMinAmount = function(value) { - return jspb.Message.setProto3IntField(this, 12, value); -}; - - -/** - * optional string offer_id = 13; - * @return {string} - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.getOfferId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics2} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.setOfferId = function(value) { - return jspb.Message.setProto3StringField(this, 13, 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|Uint8Array)} - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.getHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** - * optional bytes hash = 15; - * This is a type-conversion wrapper around `getHash()` - * @return {string} - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.getHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getHash())); -}; - - -/** - * optional bytes hash = 15; - * 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.TradeStatistics2.prototype.getHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getHash())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics2} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.setHash = 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.TradeStatistics2.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.TradeStatistics2} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.clearExtraDataMap = function() { - this.getExtraDataMap().clear(); - return this;}; - - -/** - * optional string maker_deposit_tx_id = 100; - * @return {string} - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.getMakerDepositTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 100, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics2} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.setMakerDepositTxId = function(value) { - return jspb.Message.setProto3StringField(this, 100, value); -}; - - -/** - * optional string taker_deposit_tx_id = 101; - * @return {string} - */ -proto.io.bisq.protobuffer.TradeStatistics2.prototype.getTakerDepositTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 101, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics2} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics2.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.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|Uint8Array)} - */ -proto.io.bisq.protobuffer.TradeStatistics3.prototype.getHash = function() { - return /** @type {!(string|Uint8Array)} */ (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); -}; - - - - - -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.MailboxStoragePayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.MailboxStoragePayload.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.MailboxStoragePayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MailboxStoragePayload.toObject = function(includeInstance, msg) { - var f, obj = { - prefixedSealedAndSignedMessage: (f = msg.getPrefixedSealedAndSignedMessage()) && proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.toObject(includeInstance, f), - senderPubKeyForAddOperationBytes: msg.getSenderPubKeyForAddOperationBytes_asB64(), - ownerPubKeyBytes: msg.getOwnerPubKeyBytes_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.MailboxStoragePayload} - */ -proto.io.bisq.protobuffer.MailboxStoragePayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.MailboxStoragePayload; - return proto.io.bisq.protobuffer.MailboxStoragePayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.MailboxStoragePayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.MailboxStoragePayload} - */ -proto.io.bisq.protobuffer.MailboxStoragePayload.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.PrefixedSealedAndSignedMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.deserializeBinaryFromReader); - msg.setPrefixedSealedAndSignedMessage(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSenderPubKeyForAddOperationBytes(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setOwnerPubKeyBytes(value); - break; - case 4: - 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.MailboxStoragePayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.MailboxStoragePayload.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.MailboxStoragePayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MailboxStoragePayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPrefixedSealedAndSignedMessage(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.serializeBinaryToWriter - ); - } - f = message.getSenderPubKeyForAddOperationBytes_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getOwnerPubKeyBytes_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getExtraDataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional PrefixedSealedAndSignedMessage prefixed_sealed_and_signed_message = 1; - * @return {?proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage} - */ -proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.getPrefixedSealedAndSignedMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.MailboxStoragePayload} returns this -*/ -proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.setPrefixedSealedAndSignedMessage = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.MailboxStoragePayload} returns this - */ -proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.clearPrefixedSealedAndSignedMessage = function() { - return this.setPrefixedSealedAndSignedMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.hasPrefixedSealedAndSignedMessage = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional bytes sender_pub_key_for_add_operation_bytes = 2; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.getSenderPubKeyForAddOperationBytes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes sender_pub_key_for_add_operation_bytes = 2; - * This is a type-conversion wrapper around `getSenderPubKeyForAddOperationBytes()` - * @return {string} - */ -proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.getSenderPubKeyForAddOperationBytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSenderPubKeyForAddOperationBytes())); -}; - - -/** - * optional bytes sender_pub_key_for_add_operation_bytes = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSenderPubKeyForAddOperationBytes()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.getSenderPubKeyForAddOperationBytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSenderPubKeyForAddOperationBytes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.MailboxStoragePayload} returns this - */ -proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.setSenderPubKeyForAddOperationBytes = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional bytes owner_pub_key_bytes = 3; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.getOwnerPubKeyBytes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes owner_pub_key_bytes = 3; - * This is a type-conversion wrapper around `getOwnerPubKeyBytes()` - * @return {string} - */ -proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.getOwnerPubKeyBytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getOwnerPubKeyBytes())); -}; - - -/** - * optional bytes owner_pub_key_bytes = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getOwnerPubKeyBytes()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.getOwnerPubKeyBytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getOwnerPubKeyBytes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.MailboxStoragePayload} returns this - */ -proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.setOwnerPubKeyBytes = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * map extra_data = 4; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.getExtraDataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 4, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.io.bisq.protobuffer.MailboxStoragePayload} returns this - */ -proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.clearExtraDataMap = function() { - this.getExtraDataMap().clear(); - return this;}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.OfferPayload.repeatedFields_ = [17,19,1003]; - - - -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.OfferPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.OfferPayload.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.OfferPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.OfferPayload.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - date: jspb.Message.getFieldWithDefault(msg, 2, 0), - ownerNodeAddress: (f = msg.getOwnerNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - pubKeyRing: (f = msg.getPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - direction: jspb.Message.getFieldWithDefault(msg, 5, 0), - price: jspb.Message.getFieldWithDefault(msg, 6, 0), - marketPriceMargin: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), - useMarketBasedPrice: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - amount: jspb.Message.getFieldWithDefault(msg, 9, 0), - minAmount: jspb.Message.getFieldWithDefault(msg, 10, 0), - baseCurrencyCode: jspb.Message.getFieldWithDefault(msg, 11, ""), - counterCurrencyCode: jspb.Message.getFieldWithDefault(msg, 12, ""), - paymentMethodId: jspb.Message.getFieldWithDefault(msg, 13, ""), - makerPaymentAccountId: jspb.Message.getFieldWithDefault(msg, 14, ""), - offerFeePaymentTxId: jspb.Message.getFieldWithDefault(msg, 15, ""), - countryCode: jspb.Message.getFieldWithDefault(msg, 16, ""), - acceptedCountryCodesList: (f = jspb.Message.getRepeatedField(msg, 17)) == null ? undefined : f, - bankId: jspb.Message.getFieldWithDefault(msg, 18, ""), - acceptedBankIdsList: (f = jspb.Message.getRepeatedField(msg, 19)) == null ? undefined : f, - versionNr: jspb.Message.getFieldWithDefault(msg, 20, ""), - blockHeightAtOfferCreation: jspb.Message.getFieldWithDefault(msg, 21, 0), - txFee: jspb.Message.getFieldWithDefault(msg, 22, 0), - makerFee: jspb.Message.getFieldWithDefault(msg, 23, 0), - buyerSecurityDeposit: jspb.Message.getFieldWithDefault(msg, 24, 0), - sellerSecurityDeposit: jspb.Message.getFieldWithDefault(msg, 25, 0), - maxTradeLimit: jspb.Message.getFieldWithDefault(msg, 26, 0), - maxTradePeriod: jspb.Message.getFieldWithDefault(msg, 27, 0), - useAutoClose: jspb.Message.getBooleanFieldWithDefault(msg, 28, false), - useReOpenAfterAutoClose: jspb.Message.getBooleanFieldWithDefault(msg, 29, false), - lowerClosePrice: jspb.Message.getFieldWithDefault(msg, 30, 0), - upperClosePrice: jspb.Message.getFieldWithDefault(msg, 31, 0), - isPrivateOffer: jspb.Message.getBooleanFieldWithDefault(msg, 32, false), - hashOfChallenge: jspb.Message.getFieldWithDefault(msg, 33, ""), - extraDataMap: (f = msg.getExtraDataMap()) ? f.toObject(includeInstance, undefined) : [], - protocolVersion: jspb.Message.getFieldWithDefault(msg, 35, 0), - arbitratorSigner: (f = msg.getArbitratorSigner()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - arbitratorSignature: jspb.Message.getFieldWithDefault(msg, 1002, ""), - reserveTxKeyImagesList: (f = jspb.Message.getRepeatedField(msg, 1003)) == null ? undefined : 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.OfferPayload} - */ -proto.io.bisq.protobuffer.OfferPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.OfferPayload; - return proto.io.bisq.protobuffer.OfferPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.OfferPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.OfferPayload} - */ -proto.io.bisq.protobuffer.OfferPayload.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 {number} */ (reader.readInt64()); - msg.setDate(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setOwnerNodeAddress(value); - break; - case 4: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setPubKeyRing(value); - break; - case 5: - var value = /** @type {!proto.io.bisq.protobuffer.OfferPayload.Direction} */ (reader.readEnum()); - msg.setDirection(value); - break; - case 6: - var value = /** @type {number} */ (reader.readInt64()); - msg.setPrice(value); - break; - case 7: - var value = /** @type {number} */ (reader.readDouble()); - msg.setMarketPriceMargin(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUseMarketBasedPrice(value); - break; - case 9: - var value = /** @type {number} */ (reader.readInt64()); - msg.setAmount(value); - break; - case 10: - var value = /** @type {number} */ (reader.readInt64()); - msg.setMinAmount(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setBaseCurrencyCode(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setCounterCurrencyCode(value); - break; - case 13: - var value = /** @type {string} */ (reader.readString()); - msg.setPaymentMethodId(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setMakerPaymentAccountId(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.setOfferFeePaymentTxId(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setCountryCode(value); - break; - case 17: - var value = /** @type {string} */ (reader.readString()); - msg.addAcceptedCountryCodes(value); - break; - case 18: - var value = /** @type {string} */ (reader.readString()); - msg.setBankId(value); - break; - case 19: - var value = /** @type {string} */ (reader.readString()); - msg.addAcceptedBankIds(value); - break; - case 20: - var value = /** @type {string} */ (reader.readString()); - msg.setVersionNr(value); - break; - case 21: - var value = /** @type {number} */ (reader.readInt64()); - msg.setBlockHeightAtOfferCreation(value); - break; - case 22: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTxFee(value); - break; - case 23: - var value = /** @type {number} */ (reader.readInt64()); - msg.setMakerFee(value); - break; - case 24: - var value = /** @type {number} */ (reader.readInt64()); - msg.setBuyerSecurityDeposit(value); - break; - case 25: - var value = /** @type {number} */ (reader.readInt64()); - msg.setSellerSecurityDeposit(value); - break; - case 26: - var value = /** @type {number} */ (reader.readInt64()); - msg.setMaxTradeLimit(value); - break; - case 27: - var value = /** @type {number} */ (reader.readInt64()); - msg.setMaxTradePeriod(value); - break; - case 28: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUseAutoClose(value); - break; - case 29: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUseReOpenAfterAutoClose(value); - break; - case 30: - var value = /** @type {number} */ (reader.readInt64()); - msg.setLowerClosePrice(value); - break; - case 31: - var value = /** @type {number} */ (reader.readInt64()); - msg.setUpperClosePrice(value); - break; - case 32: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsPrivateOffer(value); - break; - case 33: - var value = /** @type {string} */ (reader.readString()); - msg.setHashOfChallenge(value); - break; - case 34: - 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 35: - var value = /** @type {number} */ (reader.readInt32()); - msg.setProtocolVersion(value); - break; - case 1001: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setArbitratorSigner(value); - break; - case 1002: - var value = /** @type {string} */ (reader.readString()); - msg.setArbitratorSignature(value); - break; - case 1003: - var value = /** @type {string} */ (reader.readString()); - msg.addReserveTxKeyImages(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.OfferPayload.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.OfferPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.OfferPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDate(); - if (f !== 0) { - writer.writeInt64( - 2, - f - ); - } - f = message.getOwnerNodeAddress(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getPubKeyRing(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getDirection(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } - f = message.getPrice(); - if (f !== 0) { - writer.writeInt64( - 6, - f - ); - } - f = message.getMarketPriceMargin(); - if (f !== 0.0) { - writer.writeDouble( - 7, - f - ); - } - f = message.getUseMarketBasedPrice(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getAmount(); - if (f !== 0) { - writer.writeInt64( - 9, - f - ); - } - f = message.getMinAmount(); - if (f !== 0) { - writer.writeInt64( - 10, - f - ); - } - f = message.getBaseCurrencyCode(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getCounterCurrencyCode(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getPaymentMethodId(); - if (f.length > 0) { - writer.writeString( - 13, - f - ); - } - f = message.getMakerPaymentAccountId(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getOfferFeePaymentTxId(); - if (f.length > 0) { - writer.writeString( - 15, - f - ); - } - f = message.getCountryCode(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); - } - f = message.getAcceptedCountryCodesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 17, - f - ); - } - f = message.getBankId(); - if (f.length > 0) { - writer.writeString( - 18, - f - ); - } - f = message.getAcceptedBankIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 19, - f - ); - } - f = message.getVersionNr(); - if (f.length > 0) { - writer.writeString( - 20, - f - ); - } - f = message.getBlockHeightAtOfferCreation(); - if (f !== 0) { - writer.writeInt64( - 21, - f - ); - } - f = message.getTxFee(); - if (f !== 0) { - writer.writeInt64( - 22, - f - ); - } - f = message.getMakerFee(); - if (f !== 0) { - writer.writeInt64( - 23, - f - ); - } - f = message.getBuyerSecurityDeposit(); - if (f !== 0) { - writer.writeInt64( - 24, - f - ); - } - f = message.getSellerSecurityDeposit(); - if (f !== 0) { - writer.writeInt64( - 25, - f - ); - } - f = message.getMaxTradeLimit(); - if (f !== 0) { - writer.writeInt64( - 26, - f - ); - } - f = message.getMaxTradePeriod(); - if (f !== 0) { - writer.writeInt64( - 27, - f - ); - } - f = message.getUseAutoClose(); - if (f) { - writer.writeBool( - 28, - f - ); - } - f = message.getUseReOpenAfterAutoClose(); - if (f) { - writer.writeBool( - 29, - f - ); - } - f = message.getLowerClosePrice(); - if (f !== 0) { - writer.writeInt64( - 30, - f - ); - } - f = message.getUpperClosePrice(); - if (f !== 0) { - writer.writeInt64( - 31, - f - ); - } - f = message.getIsPrivateOffer(); - if (f) { - writer.writeBool( - 32, - f - ); - } - f = message.getHashOfChallenge(); - if (f.length > 0) { - writer.writeString( - 33, - f - ); - } - f = message.getExtraDataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(34, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getProtocolVersion(); - if (f !== 0) { - writer.writeInt32( - 35, - f - ); - } - f = message.getArbitratorSigner(); - if (f != null) { - writer.writeMessage( - 1001, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getArbitratorSignature(); - if (f.length > 0) { - writer.writeString( - 1002, - f - ); - } - f = message.getReserveTxKeyImagesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1003, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.OfferPayload.Direction = { - PB_ERROR: 0, - BUY: 1, - SELL: 2 -}; - -/** - * optional string id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int64 date = 2; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setDate = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional NodeAddress owner_node_address = 3; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getOwnerNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this -*/ -proto.io.bisq.protobuffer.OfferPayload.prototype.setOwnerNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.clearOwnerNodeAddress = function() { - return this.setOwnerNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.hasOwnerNodeAddress = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional PubKeyRing pub_key_ring = 4; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 4)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this -*/ -proto.io.bisq.protobuffer.OfferPayload.prototype.setPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.clearPubKeyRing = function() { - return this.setPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.hasPubKeyRing = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional Direction direction = 5; - * @return {!proto.io.bisq.protobuffer.OfferPayload.Direction} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getDirection = function() { - return /** @type {!proto.io.bisq.protobuffer.OfferPayload.Direction} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.OfferPayload.Direction} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setDirection = function(value) { - return jspb.Message.setProto3EnumField(this, 5, value); -}; - - -/** - * optional int64 price = 6; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setPrice = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional double market_price_margin = 7; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getMarketPriceMargin = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setMarketPriceMargin = function(value) { - return jspb.Message.setProto3FloatField(this, 7, value); -}; - - -/** - * optional bool use_market_based_price = 8; - * @return {boolean} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getUseMarketBasedPrice = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setUseMarketBasedPrice = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); -}; - - -/** - * optional int64 amount = 9; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setAmount = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); -}; - - -/** - * optional int64 min_amount = 10; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getMinAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setMinAmount = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional string base_currency_code = 11; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getBaseCurrencyCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setBaseCurrencyCode = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional string counter_currency_code = 12; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getCounterCurrencyCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setCounterCurrencyCode = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * optional string payment_method_id = 13; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getPaymentMethodId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setPaymentMethodId = function(value) { - return jspb.Message.setProto3StringField(this, 13, value); -}; - - -/** - * optional string maker_payment_account_id = 14; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getMakerPaymentAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setMakerPaymentAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 14, value); -}; - - -/** - * optional string offer_fee_payment_tx_id = 15; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getOfferFeePaymentTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setOfferFeePaymentTxId = function(value) { - return jspb.Message.setProto3StringField(this, 15, value); -}; - - -/** - * optional string country_code = 16; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getCountryCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setCountryCode = function(value) { - return jspb.Message.setProto3StringField(this, 16, value); -}; - - -/** - * repeated string accepted_country_codes = 17; - * @return {!Array} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getAcceptedCountryCodesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 17)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setAcceptedCountryCodesList = function(value) { - return jspb.Message.setField(this, 17, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.addAcceptedCountryCodes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 17, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.clearAcceptedCountryCodesList = function() { - return this.setAcceptedCountryCodesList([]); -}; - - -/** - * optional string bank_id = 18; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getBankId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setBankId = function(value) { - return jspb.Message.setProto3StringField(this, 18, value); -}; - - -/** - * repeated string accepted_bank_ids = 19; - * @return {!Array} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getAcceptedBankIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 19)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setAcceptedBankIdsList = function(value) { - return jspb.Message.setField(this, 19, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.addAcceptedBankIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 19, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.clearAcceptedBankIdsList = function() { - return this.setAcceptedBankIdsList([]); -}; - - -/** - * optional string version_nr = 20; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getVersionNr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setVersionNr = function(value) { - return jspb.Message.setProto3StringField(this, 20, value); -}; - - -/** - * optional int64 block_height_at_offer_creation = 21; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getBlockHeightAtOfferCreation = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setBlockHeightAtOfferCreation = function(value) { - return jspb.Message.setProto3IntField(this, 21, value); -}; - - -/** - * optional int64 tx_fee = 22; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getTxFee = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setTxFee = function(value) { - return jspb.Message.setProto3IntField(this, 22, value); -}; - - -/** - * optional int64 maker_fee = 23; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getMakerFee = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setMakerFee = function(value) { - return jspb.Message.setProto3IntField(this, 23, value); -}; - - -/** - * optional int64 buyer_security_deposit = 24; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getBuyerSecurityDeposit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setBuyerSecurityDeposit = function(value) { - return jspb.Message.setProto3IntField(this, 24, value); -}; - - -/** - * optional int64 seller_security_deposit = 25; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getSellerSecurityDeposit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 25, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setSellerSecurityDeposit = function(value) { - return jspb.Message.setProto3IntField(this, 25, value); -}; - - -/** - * optional int64 max_trade_limit = 26; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getMaxTradeLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 26, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setMaxTradeLimit = function(value) { - return jspb.Message.setProto3IntField(this, 26, value); -}; - - -/** - * optional int64 max_trade_period = 27; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getMaxTradePeriod = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 27, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setMaxTradePeriod = function(value) { - return jspb.Message.setProto3IntField(this, 27, value); -}; - - -/** - * optional bool use_auto_close = 28; - * @return {boolean} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getUseAutoClose = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 28, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setUseAutoClose = function(value) { - return jspb.Message.setProto3BooleanField(this, 28, value); -}; - - -/** - * optional bool use_re_open_after_auto_close = 29; - * @return {boolean} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getUseReOpenAfterAutoClose = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 29, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setUseReOpenAfterAutoClose = function(value) { - return jspb.Message.setProto3BooleanField(this, 29, value); -}; - - -/** - * optional int64 lower_close_price = 30; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getLowerClosePrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 30, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setLowerClosePrice = function(value) { - return jspb.Message.setProto3IntField(this, 30, value); -}; - - -/** - * optional int64 upper_close_price = 31; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getUpperClosePrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 31, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setUpperClosePrice = function(value) { - return jspb.Message.setProto3IntField(this, 31, value); -}; - - -/** - * optional bool is_private_offer = 32; - * @return {boolean} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getIsPrivateOffer = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 32, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setIsPrivateOffer = function(value) { - return jspb.Message.setProto3BooleanField(this, 32, value); -}; - - -/** - * optional string hash_of_challenge = 33; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getHashOfChallenge = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 33, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setHashOfChallenge = function(value) { - return jspb.Message.setProto3StringField(this, 33, value); -}; - - -/** - * map extra_data = 34; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getExtraDataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 34, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.clearExtraDataMap = function() { - this.getExtraDataMap().clear(); - return this;}; - - -/** - * optional int32 protocol_version = 35; - * @return {number} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getProtocolVersion = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 35, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setProtocolVersion = function(value) { - return jspb.Message.setProto3IntField(this, 35, value); -}; - - -/** - * optional NodeAddress arbitrator_signer = 1001; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getArbitratorSigner = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 1001)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this -*/ -proto.io.bisq.protobuffer.OfferPayload.prototype.setArbitratorSigner = function(value) { - return jspb.Message.setWrapperField(this, 1001, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.clearArbitratorSigner = function() { - return this.setArbitratorSigner(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.hasArbitratorSigner = function() { - return jspb.Message.getField(this, 1001) != null; -}; - - -/** - * optional string arbitrator_signature = 1002; - * @return {string} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getArbitratorSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1002, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setArbitratorSignature = function(value) { - return jspb.Message.setProto3StringField(this, 1002, value); -}; - - -/** - * repeated string reserve_tx_key_images = 1003; - * @return {!Array} - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.getReserveTxKeyImagesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1003)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.setReserveTxKeyImagesList = function(value) { - return jspb.Message.setField(this, 1003, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.addReserveTxKeyImages = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1003, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this - */ -proto.io.bisq.protobuffer.OfferPayload.prototype.clearReserveTxKeyImagesList = function() { - return this.setReserveTxKeyImagesList([]); -}; - - - - - -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.AccountAgeWitness.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.AccountAgeWitness.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.AccountAgeWitness} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AccountAgeWitness.toObject = function(includeInstance, msg) { - var f, obj = { - hash: msg.getHash_asB64(), - date: jspb.Message.getFieldWithDefault(msg, 2, 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.AccountAgeWitness} - */ -proto.io.bisq.protobuffer.AccountAgeWitness.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.AccountAgeWitness; - return proto.io.bisq.protobuffer.AccountAgeWitness.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.AccountAgeWitness} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.AccountAgeWitness} - */ -proto.io.bisq.protobuffer.AccountAgeWitness.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setHash(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt64()); - msg.setDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.AccountAgeWitness.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.AccountAgeWitness.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.AccountAgeWitness} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AccountAgeWitness.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHash_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getDate(); - if (f !== 0) { - writer.writeInt64( - 2, - f - ); - } -}; - - -/** - * optional bytes hash = 1; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.AccountAgeWitness.prototype.getHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes hash = 1; - * This is a type-conversion wrapper around `getHash()` - * @return {string} - */ -proto.io.bisq.protobuffer.AccountAgeWitness.prototype.getHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getHash())); -}; - - -/** - * optional bytes hash = 1; - * 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.AccountAgeWitness.prototype.getHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getHash())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.AccountAgeWitness} returns this - */ -proto.io.bisq.protobuffer.AccountAgeWitness.prototype.setHash = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional int64 date = 2; - * @return {number} - */ -proto.io.bisq.protobuffer.AccountAgeWitness.prototype.getDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.AccountAgeWitness} returns this - */ -proto.io.bisq.protobuffer.AccountAgeWitness.prototype.setDate = function(value) { - return jspb.Message.setProto3IntField(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.SignedWitness.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SignedWitness.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.SignedWitness} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SignedWitness.toObject = function(includeInstance, msg) { - var f, obj = { - verificationMethod: jspb.Message.getFieldWithDefault(msg, 1, 0), - accountAgeWitnessHash: msg.getAccountAgeWitnessHash_asB64(), - signature: msg.getSignature_asB64(), - signerPubKey: msg.getSignerPubKey_asB64(), - witnessOwnerPubKey: msg.getWitnessOwnerPubKey_asB64(), - date: jspb.Message.getFieldWithDefault(msg, 6, 0), - tradeAmount: jspb.Message.getFieldWithDefault(msg, 7, 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.SignedWitness} - */ -proto.io.bisq.protobuffer.SignedWitness.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SignedWitness; - return proto.io.bisq.protobuffer.SignedWitness.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SignedWitness} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SignedWitness} - */ -proto.io.bisq.protobuffer.SignedWitness.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.SignedWitness.VerificationMethod} */ (reader.readEnum()); - msg.setVerificationMethod(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setAccountAgeWitnessHash(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSignature(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSignerPubKey(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setWitnessOwnerPubKey(value); - break; - case 6: - var value = /** @type {number} */ (reader.readInt64()); - msg.setDate(value); - break; - case 7: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTradeAmount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SignedWitness.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.SignedWitness} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SignedWitness.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVerificationMethod(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getAccountAgeWitnessHash_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getSignature_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getSignerPubKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getWitnessOwnerPubKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } - f = message.getDate(); - if (f !== 0) { - writer.writeInt64( - 6, - f - ); - } - f = message.getTradeAmount(); - if (f !== 0) { - writer.writeInt64( - 7, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.SignedWitness.VerificationMethod = { - PB_ERROR: 0, - ARBITRATOR: 1, - TRADE: 2 -}; - -/** - * optional VerificationMethod verification_method = 1; - * @return {!proto.io.bisq.protobuffer.SignedWitness.VerificationMethod} - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.getVerificationMethod = function() { - return /** @type {!proto.io.bisq.protobuffer.SignedWitness.VerificationMethod} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.SignedWitness.VerificationMethod} value - * @return {!proto.io.bisq.protobuffer.SignedWitness} returns this - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.setVerificationMethod = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional bytes account_age_witness_hash = 2; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.getAccountAgeWitnessHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes account_age_witness_hash = 2; - * This is a type-conversion wrapper around `getAccountAgeWitnessHash()` - * @return {string} - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.getAccountAgeWitnessHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getAccountAgeWitnessHash())); -}; - - -/** - * optional bytes account_age_witness_hash = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getAccountAgeWitnessHash()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.getAccountAgeWitnessHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getAccountAgeWitnessHash())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.SignedWitness} returns this - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.setAccountAgeWitnessHash = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional bytes signature = 3; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.getSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes signature = 3; - * This is a type-conversion wrapper around `getSignature()` - * @return {string} - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.getSignature_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSignature())); -}; - - -/** - * optional bytes signature = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSignature()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.getSignature_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSignature())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.SignedWitness} returns this - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.setSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * optional bytes signer_pub_key = 4; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.getSignerPubKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes signer_pub_key = 4; - * This is a type-conversion wrapper around `getSignerPubKey()` - * @return {string} - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.getSignerPubKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSignerPubKey())); -}; - - -/** - * optional bytes signer_pub_key = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSignerPubKey()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.getSignerPubKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSignerPubKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.SignedWitness} returns this - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.setSignerPubKey = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * optional bytes witness_owner_pub_key = 5; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.getWitnessOwnerPubKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes witness_owner_pub_key = 5; - * This is a type-conversion wrapper around `getWitnessOwnerPubKey()` - * @return {string} - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.getWitnessOwnerPubKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getWitnessOwnerPubKey())); -}; - - -/** - * optional bytes witness_owner_pub_key = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getWitnessOwnerPubKey()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.getWitnessOwnerPubKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getWitnessOwnerPubKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.SignedWitness} returns this - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.setWitnessOwnerPubKey = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - -/** - * optional int64 date = 6; - * @return {number} - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.getDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.SignedWitness} returns this - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.setDate = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional int64 trade_amount = 7; - * @return {number} - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.getTradeAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.SignedWitness} returns this - */ -proto.io.bisq.protobuffer.SignedWitness.prototype.setTradeAmount = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.Dispute.repeatedFields_ = [23]; - - - -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.Dispute.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.Dispute.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.Dispute} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Dispute.toObject = function(includeInstance, msg) { - var f, obj = { - tradeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - id: jspb.Message.getFieldWithDefault(msg, 2, ""), - traderId: jspb.Message.getFieldWithDefault(msg, 3, 0), - isOpener: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - disputeOpenerIsBuyer: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - disputeOpenerIsMaker: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - openingDate: jspb.Message.getFieldWithDefault(msg, 7, 0), - traderPubKeyRing: (f = msg.getTraderPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - tradeDate: jspb.Message.getFieldWithDefault(msg, 9, 0), - contract: (f = msg.getContract()) && proto.io.bisq.protobuffer.Contract.toObject(includeInstance, f), - contractHash: msg.getContractHash_asB64(), - depositTxSerialized: msg.getDepositTxSerialized_asB64(), - payoutTxSerialized: msg.getPayoutTxSerialized_asB64(), - depositTxId: jspb.Message.getFieldWithDefault(msg, 14, ""), - payoutTxId: jspb.Message.getFieldWithDefault(msg, 15, ""), - contractAsJson: jspb.Message.getFieldWithDefault(msg, 16, ""), - makerContractSignature: jspb.Message.getFieldWithDefault(msg, 17, ""), - takerContractSignature: jspb.Message.getFieldWithDefault(msg, 18, ""), - makerPaymentAccountPayload: (f = msg.getMakerPaymentAccountPayload()) && proto.io.bisq.protobuffer.PaymentAccountPayload.toObject(includeInstance, f), - takerPaymentAccountPayload: (f = msg.getTakerPaymentAccountPayload()) && proto.io.bisq.protobuffer.PaymentAccountPayload.toObject(includeInstance, f), - agentPubKeyRing: (f = msg.getAgentPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - isSupportTicket: jspb.Message.getBooleanFieldWithDefault(msg, 22, false), - chatMessageList: jspb.Message.toObjectList(msg.getChatMessageList(), - proto.io.bisq.protobuffer.ChatMessage.toObject, includeInstance), - isClosed: jspb.Message.getBooleanFieldWithDefault(msg, 24, false), - disputeResult: (f = msg.getDisputeResult()) && proto.io.bisq.protobuffer.DisputeResult.toObject(includeInstance, f), - disputePayoutTxId: jspb.Message.getFieldWithDefault(msg, 26, ""), - supportType: jspb.Message.getFieldWithDefault(msg, 27, 0), - mediatorsDisputeResult: jspb.Message.getFieldWithDefault(msg, 28, ""), - delayedPayoutTxId: jspb.Message.getFieldWithDefault(msg, 29, ""), - donationAddressOfDelayedPayoutTx: jspb.Message.getFieldWithDefault(msg, 30, ""), - state: jspb.Message.getFieldWithDefault(msg, 31, 0), - tradePeriodEnd: jspb.Message.getFieldWithDefault(msg, 32, 0), - 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.Dispute} - */ -proto.io.bisq.protobuffer.Dispute.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.Dispute; - return proto.io.bisq.protobuffer.Dispute.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.Dispute} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.Dispute} - */ -proto.io.bisq.protobuffer.Dispute.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.setId(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setTraderId(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsOpener(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDisputeOpenerIsBuyer(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDisputeOpenerIsMaker(value); - break; - case 7: - var value = /** @type {number} */ (reader.readInt64()); - msg.setOpeningDate(value); - break; - case 8: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setTraderPubKeyRing(value); - break; - case 9: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTradeDate(value); - break; - case 10: - var value = new proto.io.bisq.protobuffer.Contract; - reader.readMessage(value,proto.io.bisq.protobuffer.Contract.deserializeBinaryFromReader); - msg.setContract(value); - break; - case 11: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setContractHash(value); - break; - case 12: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setDepositTxSerialized(value); - break; - case 13: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPayoutTxSerialized(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setDepositTxId(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.setPayoutTxId(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setContractAsJson(value); - break; - case 17: - var value = /** @type {string} */ (reader.readString()); - msg.setMakerContractSignature(value); - break; - case 18: - var value = /** @type {string} */ (reader.readString()); - msg.setTakerContractSignature(value); - break; - case 19: - var value = new proto.io.bisq.protobuffer.PaymentAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccountPayload.deserializeBinaryFromReader); - msg.setMakerPaymentAccountPayload(value); - break; - case 20: - var value = new proto.io.bisq.protobuffer.PaymentAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccountPayload.deserializeBinaryFromReader); - msg.setTakerPaymentAccountPayload(value); - break; - case 21: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setAgentPubKeyRing(value); - break; - case 22: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsSupportTicket(value); - break; - case 23: - var value = new proto.io.bisq.protobuffer.ChatMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.ChatMessage.deserializeBinaryFromReader); - msg.addChatMessage(value); - break; - case 24: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsClosed(value); - break; - case 25: - var value = new proto.io.bisq.protobuffer.DisputeResult; - reader.readMessage(value,proto.io.bisq.protobuffer.DisputeResult.deserializeBinaryFromReader); - msg.setDisputeResult(value); - break; - case 26: - var value = /** @type {string} */ (reader.readString()); - msg.setDisputePayoutTxId(value); - break; - case 27: - var value = /** @type {!proto.io.bisq.protobuffer.SupportType} */ (reader.readEnum()); - msg.setSupportType(value); - break; - case 28: - var value = /** @type {string} */ (reader.readString()); - msg.setMediatorsDisputeResult(value); - break; - case 29: - var value = /** @type {string} */ (reader.readString()); - msg.setDelayedPayoutTxId(value); - break; - case 30: - var value = /** @type {string} */ (reader.readString()); - msg.setDonationAddressOfDelayedPayoutTx(value); - break; - case 31: - var value = /** @type {!proto.io.bisq.protobuffer.Dispute.State} */ (reader.readEnum()); - msg.setState(value); - break; - case 32: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTradePeriodEnd(value); - break; - case 33: - 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.Dispute.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.Dispute.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.Dispute} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Dispute.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getTraderId(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getIsOpener(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getDisputeOpenerIsBuyer(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getDisputeOpenerIsMaker(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getOpeningDate(); - if (f !== 0) { - writer.writeInt64( - 7, - f - ); - } - f = message.getTraderPubKeyRing(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getTradeDate(); - if (f !== 0) { - writer.writeInt64( - 9, - f - ); - } - f = message.getContract(); - if (f != null) { - writer.writeMessage( - 10, - f, - proto.io.bisq.protobuffer.Contract.serializeBinaryToWriter - ); - } - f = message.getContractHash_asU8(); - if (f.length > 0) { - writer.writeBytes( - 11, - f - ); - } - f = message.getDepositTxSerialized_asU8(); - if (f.length > 0) { - writer.writeBytes( - 12, - f - ); - } - f = message.getPayoutTxSerialized_asU8(); - if (f.length > 0) { - writer.writeBytes( - 13, - f - ); - } - f = message.getDepositTxId(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getPayoutTxId(); - if (f.length > 0) { - writer.writeString( - 15, - f - ); - } - f = message.getContractAsJson(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); - } - f = message.getMakerContractSignature(); - if (f.length > 0) { - writer.writeString( - 17, - f - ); - } - f = message.getTakerContractSignature(); - if (f.length > 0) { - writer.writeString( - 18, - f - ); - } - f = message.getMakerPaymentAccountPayload(); - if (f != null) { - writer.writeMessage( - 19, - f, - proto.io.bisq.protobuffer.PaymentAccountPayload.serializeBinaryToWriter - ); - } - f = message.getTakerPaymentAccountPayload(); - if (f != null) { - writer.writeMessage( - 20, - f, - proto.io.bisq.protobuffer.PaymentAccountPayload.serializeBinaryToWriter - ); - } - f = message.getAgentPubKeyRing(); - if (f != null) { - writer.writeMessage( - 21, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getIsSupportTicket(); - if (f) { - writer.writeBool( - 22, - f - ); - } - f = message.getChatMessageList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 23, - f, - proto.io.bisq.protobuffer.ChatMessage.serializeBinaryToWriter - ); - } - f = message.getIsClosed(); - if (f) { - writer.writeBool( - 24, - f - ); - } - f = message.getDisputeResult(); - if (f != null) { - writer.writeMessage( - 25, - f, - proto.io.bisq.protobuffer.DisputeResult.serializeBinaryToWriter - ); - } - f = message.getDisputePayoutTxId(); - if (f.length > 0) { - writer.writeString( - 26, - f - ); - } - f = message.getSupportType(); - if (f !== 0.0) { - writer.writeEnum( - 27, - f - ); - } - f = message.getMediatorsDisputeResult(); - if (f.length > 0) { - writer.writeString( - 28, - f - ); - } - f = message.getDelayedPayoutTxId(); - if (f.length > 0) { - writer.writeString( - 29, - f - ); - } - f = message.getDonationAddressOfDelayedPayoutTx(); - if (f.length > 0) { - writer.writeString( - 30, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 31, - f - ); - } - f = message.getTradePeriodEnd(); - if (f !== 0) { - writer.writeInt64( - 32, - f - ); - } - f = message.getExtraDataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(33, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * @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} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string id = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional int32 trader_id = 3; - * @return {number} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getTraderId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setTraderId = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bool is_opener = 4; - * @return {boolean} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getIsOpener = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setIsOpener = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional bool dispute_opener_is_buyer = 5; - * @return {boolean} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getDisputeOpenerIsBuyer = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setDisputeOpenerIsBuyer = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional bool dispute_opener_is_maker = 6; - * @return {boolean} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getDisputeOpenerIsMaker = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setDisputeOpenerIsMaker = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional int64 opening_date = 7; - * @return {number} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getOpeningDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setOpeningDate = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional PubKeyRing trader_pub_key_ring = 8; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getTraderPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 8)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this -*/ -proto.io.bisq.protobuffer.Dispute.prototype.setTraderPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.clearTraderPubKeyRing = function() { - return this.setTraderPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Dispute.prototype.hasTraderPubKeyRing = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional int64 trade_date = 9; - * @return {number} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getTradeDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setTradeDate = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); -}; - - -/** - * optional Contract contract = 10; - * @return {?proto.io.bisq.protobuffer.Contract} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getContract = function() { - return /** @type{?proto.io.bisq.protobuffer.Contract} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Contract, 10)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Contract|undefined} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this -*/ -proto.io.bisq.protobuffer.Dispute.prototype.setContract = function(value) { - return jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.clearContract = function() { - return this.setContract(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Dispute.prototype.hasContract = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional bytes contract_hash = 11; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getContractHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * optional bytes contract_hash = 11; - * This is a type-conversion wrapper around `getContractHash()` - * @return {string} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getContractHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getContractHash())); -}; - - -/** - * optional bytes contract_hash = 11; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getContractHash()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getContractHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getContractHash())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setContractHash = function(value) { - return jspb.Message.setProto3BytesField(this, 11, value); -}; - - -/** - * optional bytes deposit_tx_serialized = 12; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getDepositTxSerialized = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * optional bytes deposit_tx_serialized = 12; - * This is a type-conversion wrapper around `getDepositTxSerialized()` - * @return {string} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getDepositTxSerialized_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getDepositTxSerialized())); -}; - - -/** - * optional bytes deposit_tx_serialized = 12; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getDepositTxSerialized()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getDepositTxSerialized_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getDepositTxSerialized())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setDepositTxSerialized = function(value) { - return jspb.Message.setProto3BytesField(this, 12, value); -}; - - -/** - * optional bytes payout_tx_serialized = 13; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getPayoutTxSerialized = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 13, "")); -}; - - -/** - * optional bytes payout_tx_serialized = 13; - * This is a type-conversion wrapper around `getPayoutTxSerialized()` - * @return {string} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getPayoutTxSerialized_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPayoutTxSerialized())); -}; - - -/** - * optional bytes payout_tx_serialized = 13; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPayoutTxSerialized()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getPayoutTxSerialized_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPayoutTxSerialized())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setPayoutTxSerialized = function(value) { - return jspb.Message.setProto3BytesField(this, 13, value); -}; - - -/** - * optional string deposit_tx_id = 14; - * @return {string} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getDepositTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setDepositTxId = function(value) { - return jspb.Message.setProto3StringField(this, 14, value); -}; - - -/** - * optional string payout_tx_id = 15; - * @return {string} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getPayoutTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setPayoutTxId = function(value) { - return jspb.Message.setProto3StringField(this, 15, value); -}; - - -/** - * optional string contract_as_json = 16; - * @return {string} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getContractAsJson = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setContractAsJson = function(value) { - return jspb.Message.setProto3StringField(this, 16, value); -}; - - -/** - * optional string maker_contract_signature = 17; - * @return {string} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getMakerContractSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setMakerContractSignature = function(value) { - return jspb.Message.setProto3StringField(this, 17, value); -}; - - -/** - * optional string taker_contract_signature = 18; - * @return {string} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getTakerContractSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setTakerContractSignature = function(value) { - return jspb.Message.setProto3StringField(this, 18, value); -}; - - -/** - * optional PaymentAccountPayload maker_payment_account_payload = 19; - * @return {?proto.io.bisq.protobuffer.PaymentAccountPayload} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getMakerPaymentAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.PaymentAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PaymentAccountPayload, 19)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PaymentAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this -*/ -proto.io.bisq.protobuffer.Dispute.prototype.setMakerPaymentAccountPayload = function(value) { - return jspb.Message.setWrapperField(this, 19, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.clearMakerPaymentAccountPayload = function() { - return this.setMakerPaymentAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Dispute.prototype.hasMakerPaymentAccountPayload = function() { - return jspb.Message.getField(this, 19) != null; -}; - - -/** - * optional PaymentAccountPayload taker_payment_account_payload = 20; - * @return {?proto.io.bisq.protobuffer.PaymentAccountPayload} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getTakerPaymentAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.PaymentAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PaymentAccountPayload, 20)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PaymentAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this -*/ -proto.io.bisq.protobuffer.Dispute.prototype.setTakerPaymentAccountPayload = function(value) { - return jspb.Message.setWrapperField(this, 20, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.clearTakerPaymentAccountPayload = function() { - return this.setTakerPaymentAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Dispute.prototype.hasTakerPaymentAccountPayload = function() { - return jspb.Message.getField(this, 20) != null; -}; - - -/** - * optional PubKeyRing agent_pub_key_ring = 21; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getAgentPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 21)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this -*/ -proto.io.bisq.protobuffer.Dispute.prototype.setAgentPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 21, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.clearAgentPubKeyRing = function() { - return this.setAgentPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Dispute.prototype.hasAgentPubKeyRing = function() { - return jspb.Message.getField(this, 21) != null; -}; - - -/** - * optional bool is_support_ticket = 22; - * @return {boolean} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getIsSupportTicket = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 22, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setIsSupportTicket = function(value) { - return jspb.Message.setProto3BooleanField(this, 22, value); -}; - - -/** - * repeated ChatMessage chat_message = 23; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getChatMessageList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.ChatMessage, 23)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this -*/ -proto.io.bisq.protobuffer.Dispute.prototype.setChatMessageList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 23, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.ChatMessage=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.ChatMessage} - */ -proto.io.bisq.protobuffer.Dispute.prototype.addChatMessage = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 23, opt_value, proto.io.bisq.protobuffer.ChatMessage, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.clearChatMessageList = function() { - return this.setChatMessageList([]); -}; - - -/** - * optional bool is_closed = 24; - * @return {boolean} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getIsClosed = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 24, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setIsClosed = function(value) { - return jspb.Message.setProto3BooleanField(this, 24, value); -}; - - -/** - * optional DisputeResult dispute_result = 25; - * @return {?proto.io.bisq.protobuffer.DisputeResult} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getDisputeResult = function() { - return /** @type{?proto.io.bisq.protobuffer.DisputeResult} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.DisputeResult, 25)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.DisputeResult|undefined} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this -*/ -proto.io.bisq.protobuffer.Dispute.prototype.setDisputeResult = function(value) { - return jspb.Message.setWrapperField(this, 25, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.clearDisputeResult = function() { - return this.setDisputeResult(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Dispute.prototype.hasDisputeResult = function() { - return jspb.Message.getField(this, 25) != null; -}; - - -/** - * optional string dispute_payout_tx_id = 26; - * @return {string} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getDisputePayoutTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setDisputePayoutTxId = function(value) { - return jspb.Message.setProto3StringField(this, 26, value); -}; - - -/** - * optional SupportType support_type = 27; - * @return {!proto.io.bisq.protobuffer.SupportType} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getSupportType = function() { - return /** @type {!proto.io.bisq.protobuffer.SupportType} */ (jspb.Message.getFieldWithDefault(this, 27, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.SupportType} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setSupportType = function(value) { - return jspb.Message.setProto3EnumField(this, 27, value); -}; - - -/** - * optional string mediators_dispute_result = 28; - * @return {string} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getMediatorsDisputeResult = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 28, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setMediatorsDisputeResult = function(value) { - return jspb.Message.setProto3StringField(this, 28, value); -}; - - -/** - * optional string delayed_payout_tx_id = 29; - * @return {string} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getDelayedPayoutTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 29, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setDelayedPayoutTxId = function(value) { - return jspb.Message.setProto3StringField(this, 29, value); -}; - - -/** - * optional string donation_address_of_delayed_payout_tx = 30; - * @return {string} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getDonationAddressOfDelayedPayoutTx = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 30, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Dispute} returns this - */ -proto.io.bisq.protobuffer.Dispute.prototype.setDonationAddressOfDelayedPayoutTx = function(value) { - return jspb.Message.setProto3StringField(this, 30, value); -}; - - -/** - * optional State state = 31; - * @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, 31, 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, 31, value); -}; - - -/** - * optional int64 trade_period_end = 32; - * @return {number} - */ -proto.io.bisq.protobuffer.Dispute.prototype.getTradePeriodEnd = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 32, 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, 32, value); -}; - - -/** - * map extra_data = 33; - * @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, 33, 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;}; - - - - - -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.Attachment.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.Attachment.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.Attachment} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Attachment.toObject = function(includeInstance, msg) { - var f, obj = { - fileName: jspb.Message.getFieldWithDefault(msg, 1, ""), - bytes: msg.getBytes_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.Attachment} - */ -proto.io.bisq.protobuffer.Attachment.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.Attachment; - return proto.io.bisq.protobuffer.Attachment.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.Attachment} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.Attachment} - */ -proto.io.bisq.protobuffer.Attachment.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.setFileName(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setBytes(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Attachment.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.Attachment.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.Attachment} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Attachment.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFileName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getBytes_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } -}; - - -/** - * optional string file_name = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.Attachment.prototype.getFileName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Attachment} returns this - */ -proto.io.bisq.protobuffer.Attachment.prototype.setFileName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes bytes = 2; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.Attachment.prototype.getBytes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes bytes = 2; - * This is a type-conversion wrapper around `getBytes()` - * @return {string} - */ -proto.io.bisq.protobuffer.Attachment.prototype.getBytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getBytes())); -}; - - -/** - * optional bytes bytes = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getBytes()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Attachment.prototype.getBytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getBytes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.Attachment} returns this - */ -proto.io.bisq.protobuffer.Attachment.prototype.setBytes = function(value) { - return jspb.Message.setProto3BytesField(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.DisputeResult.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.DisputeResult.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.DisputeResult} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.DisputeResult.toObject = function(includeInstance, msg) { - var f, obj = { - tradeId: jspb.Message.getFieldWithDefault(msg, 1, ""), - traderId: jspb.Message.getFieldWithDefault(msg, 2, 0), - winner: jspb.Message.getFieldWithDefault(msg, 3, 0), - reasonOrdinal: jspb.Message.getFieldWithDefault(msg, 4, 0), - tamperProofEvidence: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - idVerification: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - screenCast: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - summaryNotes: jspb.Message.getFieldWithDefault(msg, 8, ""), - chatMessage: (f = msg.getChatMessage()) && proto.io.bisq.protobuffer.ChatMessage.toObject(includeInstance, f), - arbitratorSignature: msg.getArbitratorSignature_asB64(), - buyerPayoutAmount: jspb.Message.getFieldWithDefault(msg, 11, 0), - sellerPayoutAmount: jspb.Message.getFieldWithDefault(msg, 12, 0), - arbitratorPubKey: msg.getArbitratorPubKey_asB64(), - closeDate: jspb.Message.getFieldWithDefault(msg, 14, 0), - isLoserPublisher: jspb.Message.getBooleanFieldWithDefault(msg, 15, false), - arbitratorSignedPayoutTxHex: jspb.Message.getFieldWithDefault(msg, 16, ""), - arbitratorUpdatedMultisigHex: jspb.Message.getFieldWithDefault(msg, 17, "") - }; - - 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.DisputeResult} - */ -proto.io.bisq.protobuffer.DisputeResult.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.DisputeResult; - return proto.io.bisq.protobuffer.DisputeResult.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.DisputeResult} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.DisputeResult} - */ -proto.io.bisq.protobuffer.DisputeResult.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 {number} */ (reader.readInt32()); - msg.setTraderId(value); - break; - case 3: - var value = /** @type {!proto.io.bisq.protobuffer.DisputeResult.Winner} */ (reader.readEnum()); - msg.setWinner(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt32()); - msg.setReasonOrdinal(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setTamperProofEvidence(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIdVerification(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setScreenCast(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setSummaryNotes(value); - break; - case 9: - var value = new proto.io.bisq.protobuffer.ChatMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.ChatMessage.deserializeBinaryFromReader); - msg.setChatMessage(value); - break; - case 10: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setArbitratorSignature(value); - break; - case 11: - var value = /** @type {number} */ (reader.readInt64()); - msg.setBuyerPayoutAmount(value); - break; - case 12: - var value = /** @type {number} */ (reader.readInt64()); - msg.setSellerPayoutAmount(value); - break; - case 13: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setArbitratorPubKey(value); - break; - case 14: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCloseDate(value); - break; - case 15: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsLoserPublisher(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setArbitratorSignedPayoutTxHex(value); - break; - case 17: - var value = /** @type {string} */ (reader.readString()); - msg.setArbitratorUpdatedMultisigHex(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.DisputeResult.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.DisputeResult} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.DisputeResult.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTraderId(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getWinner(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getReasonOrdinal(); - if (f !== 0) { - writer.writeInt32( - 4, - f - ); - } - f = message.getTamperProofEvidence(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getIdVerification(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getScreenCast(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getSummaryNotes(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getChatMessage(); - if (f != null) { - writer.writeMessage( - 9, - f, - proto.io.bisq.protobuffer.ChatMessage.serializeBinaryToWriter - ); - } - f = message.getArbitratorSignature_asU8(); - if (f.length > 0) { - writer.writeBytes( - 10, - f - ); - } - f = message.getBuyerPayoutAmount(); - if (f !== 0) { - writer.writeInt64( - 11, - f - ); - } - f = message.getSellerPayoutAmount(); - if (f !== 0) { - writer.writeInt64( - 12, - f - ); - } - f = message.getArbitratorPubKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 13, - f - ); - } - f = message.getCloseDate(); - if (f !== 0) { - writer.writeInt64( - 14, - f - ); - } - f = message.getIsLoserPublisher(); - if (f) { - writer.writeBool( - 15, - f - ); - } - f = message.getArbitratorSignedPayoutTxHex(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); - } - f = message.getArbitratorUpdatedMultisigHex(); - if (f.length > 0) { - writer.writeString( - 17, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.DisputeResult.Winner = { - PB_ERROR_WINNER: 0, - BUYER: 1, - SELLER: 2 -}; - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.DisputeResult.Reason = { - PB_ERROR_REASON: 0, - OTHER: 1, - BUG: 2, - USABILITY: 3, - SCAM: 4, - PROTOCOL_VIOLATION: 5, - NO_REPLY: 6, - BANK_PROBLEMS: 7, - OPTION_TRADE: 8, - SELLER_NOT_RESPONDING: 9, - WRONG_SENDER_ACCOUNT: 10, - TRADE_ALREADY_SETTLED: 11, - PEER_WAS_LATE: 12 -}; - -/** - * optional string trade_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getTradeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DisputeResult} returns this - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.setTradeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int32 trader_id = 2; - * @return {number} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getTraderId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.DisputeResult} returns this - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.setTraderId = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional Winner winner = 3; - * @return {!proto.io.bisq.protobuffer.DisputeResult.Winner} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getWinner = function() { - return /** @type {!proto.io.bisq.protobuffer.DisputeResult.Winner} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.DisputeResult.Winner} value - * @return {!proto.io.bisq.protobuffer.DisputeResult} returns this - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.setWinner = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional int32 reason_ordinal = 4; - * @return {number} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getReasonOrdinal = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.DisputeResult} returns this - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.setReasonOrdinal = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional bool tamper_proof_evidence = 5; - * @return {boolean} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getTamperProofEvidence = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.DisputeResult} returns this - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.setTamperProofEvidence = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional bool id_verification = 6; - * @return {boolean} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getIdVerification = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.DisputeResult} returns this - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.setIdVerification = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional bool screen_cast = 7; - * @return {boolean} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getScreenCast = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.DisputeResult} returns this - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.setScreenCast = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * optional string summary_notes = 8; - * @return {string} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getSummaryNotes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DisputeResult} returns this - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.setSummaryNotes = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional ChatMessage chat_message = 9; - * @return {?proto.io.bisq.protobuffer.ChatMessage} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getChatMessage = function() { - return /** @type{?proto.io.bisq.protobuffer.ChatMessage} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ChatMessage, 9)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.ChatMessage|undefined} value - * @return {!proto.io.bisq.protobuffer.DisputeResult} returns this -*/ -proto.io.bisq.protobuffer.DisputeResult.prototype.setChatMessage = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.DisputeResult} returns this - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.clearChatMessage = function() { - return this.setChatMessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.hasChatMessage = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional bytes arbitrator_signature = 10; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getArbitratorSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * optional bytes arbitrator_signature = 10; - * This is a type-conversion wrapper around `getArbitratorSignature()` - * @return {string} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getArbitratorSignature_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getArbitratorSignature())); -}; - - -/** - * optional bytes arbitrator_signature = 10; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getArbitratorSignature()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getArbitratorSignature_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getArbitratorSignature())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.DisputeResult} returns this - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.setArbitratorSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 10, value); -}; - - -/** - * optional int64 buyer_payout_amount = 11; - * @return {number} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getBuyerPayoutAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.DisputeResult} returns this - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.setBuyerPayoutAmount = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * optional int64 seller_payout_amount = 12; - * @return {number} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getSellerPayoutAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.DisputeResult} returns this - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.setSellerPayoutAmount = function(value) { - return jspb.Message.setProto3IntField(this, 12, value); -}; - - -/** - * optional bytes arbitrator_pub_key = 13; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getArbitratorPubKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 13, "")); -}; - - -/** - * optional bytes arbitrator_pub_key = 13; - * This is a type-conversion wrapper around `getArbitratorPubKey()` - * @return {string} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getArbitratorPubKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getArbitratorPubKey())); -}; - - -/** - * optional bytes arbitrator_pub_key = 13; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getArbitratorPubKey()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getArbitratorPubKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getArbitratorPubKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.DisputeResult} returns this - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.setArbitratorPubKey = function(value) { - return jspb.Message.setProto3BytesField(this, 13, value); -}; - - -/** - * optional int64 close_date = 14; - * @return {number} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getCloseDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.DisputeResult} returns this - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.setCloseDate = function(value) { - return jspb.Message.setProto3IntField(this, 14, value); -}; - - -/** - * optional bool is_loser_publisher = 15; - * @return {boolean} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getIsLoserPublisher = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.DisputeResult} returns this - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.setIsLoserPublisher = function(value) { - return jspb.Message.setProto3BooleanField(this, 15, value); -}; - - -/** - * optional string arbitrator_signed_payout_tx_hex = 16; - * @return {string} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getArbitratorSignedPayoutTxHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DisputeResult} returns this - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.setArbitratorSignedPayoutTxHex = function(value) { - return jspb.Message.setProto3StringField(this, 16, value); -}; - - -/** - * optional string arbitrator_updated_multisig_hex = 17; - * @return {string} - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.getArbitratorUpdatedMultisigHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.DisputeResult} returns this - */ -proto.io.bisq.protobuffer.DisputeResult.prototype.setArbitratorUpdatedMultisigHex = function(value) { - return jspb.Message.setProto3StringField(this, 17, 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.Contract.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.Contract.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.Contract} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Contract.toObject = function(includeInstance, msg) { - var f, obj = { - offerPayload: (f = msg.getOfferPayload()) && proto.io.bisq.protobuffer.OfferPayload.toObject(includeInstance, f), - tradeAmount: jspb.Message.getFieldWithDefault(msg, 2, 0), - tradePrice: jspb.Message.getFieldWithDefault(msg, 3, 0), - isBuyerMakerAndSellerTaker: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - makerAccountId: jspb.Message.getFieldWithDefault(msg, 7, ""), - takerAccountId: jspb.Message.getFieldWithDefault(msg, 8, ""), - makerPaymentMethodId: jspb.Message.getFieldWithDefault(msg, 9, ""), - takerPaymentMethodId: jspb.Message.getFieldWithDefault(msg, 10, ""), - makerPaymentAccountPayloadHash: msg.getMakerPaymentAccountPayloadHash_asB64(), - takerPaymentAccountPayloadHash: msg.getTakerPaymentAccountPayloadHash_asB64(), - makerPubKeyRing: (f = msg.getMakerPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - takerPubKeyRing: (f = msg.getTakerPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - buyerNodeAddress: (f = msg.getBuyerNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - sellerNodeAddress: (f = msg.getSellerNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - makerPayoutAddressString: jspb.Message.getFieldWithDefault(msg, 17, ""), - takerPayoutAddressString: jspb.Message.getFieldWithDefault(msg, 18, ""), - arbitratorNodeAddress: (f = msg.getArbitratorNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - lockTime: jspb.Message.getFieldWithDefault(msg, 20, 0), - makerDepositTxHash: jspb.Message.getFieldWithDefault(msg, 21, ""), - takerDepositTxHash: jspb.Message.getFieldWithDefault(msg, 22, "") - }; - - 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.Contract} - */ -proto.io.bisq.protobuffer.Contract.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.Contract; - return proto.io.bisq.protobuffer.Contract.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.Contract} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.Contract} - */ -proto.io.bisq.protobuffer.Contract.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.OfferPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.OfferPayload.deserializeBinaryFromReader); - msg.setOfferPayload(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTradeAmount(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTradePrice(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsBuyerMakerAndSellerTaker(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setMakerAccountId(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setTakerAccountId(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setMakerPaymentMethodId(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setTakerPaymentMethodId(value); - break; - case 11: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setMakerPaymentAccountPayloadHash(value); - break; - case 12: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setTakerPaymentAccountPayloadHash(value); - break; - case 13: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setMakerPubKeyRing(value); - break; - case 14: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setTakerPubKeyRing(value); - break; - case 15: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setBuyerNodeAddress(value); - break; - case 16: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSellerNodeAddress(value); - break; - case 17: - var value = /** @type {string} */ (reader.readString()); - msg.setMakerPayoutAddressString(value); - break; - case 18: - var value = /** @type {string} */ (reader.readString()); - msg.setTakerPayoutAddressString(value); - break; - case 19: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setArbitratorNodeAddress(value); - break; - case 20: - var value = /** @type {number} */ (reader.readInt64()); - msg.setLockTime(value); - break; - case 21: - var value = /** @type {string} */ (reader.readString()); - msg.setMakerDepositTxHash(value); - break; - case 22: - var value = /** @type {string} */ (reader.readString()); - msg.setTakerDepositTxHash(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Contract.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.Contract.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.Contract} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Contract.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOfferPayload(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.OfferPayload.serializeBinaryToWriter - ); - } - f = message.getTradeAmount(); - if (f !== 0) { - writer.writeInt64( - 2, - f - ); - } - f = message.getTradePrice(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getIsBuyerMakerAndSellerTaker(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getMakerAccountId(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getTakerAccountId(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getMakerPaymentMethodId(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getTakerPaymentMethodId(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getMakerPaymentAccountPayloadHash_asU8(); - if (f.length > 0) { - writer.writeBytes( - 11, - f - ); - } - f = message.getTakerPaymentAccountPayloadHash_asU8(); - if (f.length > 0) { - writer.writeBytes( - 12, - f - ); - } - f = message.getMakerPubKeyRing(); - if (f != null) { - writer.writeMessage( - 13, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getTakerPubKeyRing(); - if (f != null) { - writer.writeMessage( - 14, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getBuyerNodeAddress(); - if (f != null) { - writer.writeMessage( - 15, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getSellerNodeAddress(); - if (f != null) { - writer.writeMessage( - 16, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getMakerPayoutAddressString(); - if (f.length > 0) { - writer.writeString( - 17, - f - ); - } - f = message.getTakerPayoutAddressString(); - if (f.length > 0) { - writer.writeString( - 18, - f - ); - } - f = message.getArbitratorNodeAddress(); - if (f != null) { - writer.writeMessage( - 19, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getLockTime(); - if (f !== 0) { - writer.writeInt64( - 20, - f - ); - } - f = message.getMakerDepositTxHash(); - if (f.length > 0) { - writer.writeString( - 21, - f - ); - } - f = message.getTakerDepositTxHash(); - if (f.length > 0) { - writer.writeString( - 22, - f - ); - } -}; - - -/** - * optional OfferPayload offer_payload = 1; - * @return {?proto.io.bisq.protobuffer.OfferPayload} - */ -proto.io.bisq.protobuffer.Contract.prototype.getOfferPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.OfferPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.OfferPayload, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.OfferPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this -*/ -proto.io.bisq.protobuffer.Contract.prototype.setOfferPayload = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.clearOfferPayload = function() { - return this.setOfferPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Contract.prototype.hasOfferPayload = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional int64 trade_amount = 2; - * @return {number} - */ -proto.io.bisq.protobuffer.Contract.prototype.getTradeAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.setTradeAmount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional int64 trade_price = 3; - * @return {number} - */ -proto.io.bisq.protobuffer.Contract.prototype.getTradePrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.setTradePrice = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bool is_buyer_maker_and_seller_taker = 6; - * @return {boolean} - */ -proto.io.bisq.protobuffer.Contract.prototype.getIsBuyerMakerAndSellerTaker = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.setIsBuyerMakerAndSellerTaker = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional string maker_account_id = 7; - * @return {string} - */ -proto.io.bisq.protobuffer.Contract.prototype.getMakerAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.setMakerAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string taker_account_id = 8; - * @return {string} - */ -proto.io.bisq.protobuffer.Contract.prototype.getTakerAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.setTakerAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string maker_payment_method_id = 9; - * @return {string} - */ -proto.io.bisq.protobuffer.Contract.prototype.getMakerPaymentMethodId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.setMakerPaymentMethodId = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional string taker_payment_method_id = 10; - * @return {string} - */ -proto.io.bisq.protobuffer.Contract.prototype.getTakerPaymentMethodId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.setTakerPaymentMethodId = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); -}; - - -/** - * optional bytes maker_payment_account_payload_hash = 11; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.Contract.prototype.getMakerPaymentAccountPayloadHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * optional bytes maker_payment_account_payload_hash = 11; - * This is a type-conversion wrapper around `getMakerPaymentAccountPayloadHash()` - * @return {string} - */ -proto.io.bisq.protobuffer.Contract.prototype.getMakerPaymentAccountPayloadHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getMakerPaymentAccountPayloadHash())); -}; - - -/** - * optional bytes maker_payment_account_payload_hash = 11; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getMakerPaymentAccountPayloadHash()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Contract.prototype.getMakerPaymentAccountPayloadHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getMakerPaymentAccountPayloadHash())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.setMakerPaymentAccountPayloadHash = function(value) { - return jspb.Message.setProto3BytesField(this, 11, value); -}; - - -/** - * optional bytes taker_payment_account_payload_hash = 12; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.Contract.prototype.getTakerPaymentAccountPayloadHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * optional bytes taker_payment_account_payload_hash = 12; - * This is a type-conversion wrapper around `getTakerPaymentAccountPayloadHash()` - * @return {string} - */ -proto.io.bisq.protobuffer.Contract.prototype.getTakerPaymentAccountPayloadHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getTakerPaymentAccountPayloadHash())); -}; - - -/** - * optional bytes taker_payment_account_payload_hash = 12; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getTakerPaymentAccountPayloadHash()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Contract.prototype.getTakerPaymentAccountPayloadHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getTakerPaymentAccountPayloadHash())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.setTakerPaymentAccountPayloadHash = function(value) { - return jspb.Message.setProto3BytesField(this, 12, value); -}; - - -/** - * optional PubKeyRing maker_pub_key_ring = 13; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.Contract.prototype.getMakerPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 13)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this -*/ -proto.io.bisq.protobuffer.Contract.prototype.setMakerPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 13, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.clearMakerPubKeyRing = function() { - return this.setMakerPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Contract.prototype.hasMakerPubKeyRing = function() { - return jspb.Message.getField(this, 13) != null; -}; - - -/** - * optional PubKeyRing taker_pub_key_ring = 14; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.Contract.prototype.getTakerPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 14)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this -*/ -proto.io.bisq.protobuffer.Contract.prototype.setTakerPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 14, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.clearTakerPubKeyRing = function() { - return this.setTakerPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Contract.prototype.hasTakerPubKeyRing = function() { - return jspb.Message.getField(this, 14) != null; -}; - - -/** - * optional NodeAddress buyer_node_address = 15; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.Contract.prototype.getBuyerNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 15)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this -*/ -proto.io.bisq.protobuffer.Contract.prototype.setBuyerNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 15, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.clearBuyerNodeAddress = function() { - return this.setBuyerNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Contract.prototype.hasBuyerNodeAddress = function() { - return jspb.Message.getField(this, 15) != null; -}; - - -/** - * optional NodeAddress seller_node_address = 16; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.Contract.prototype.getSellerNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 16)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this -*/ -proto.io.bisq.protobuffer.Contract.prototype.setSellerNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 16, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.clearSellerNodeAddress = function() { - return this.setSellerNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Contract.prototype.hasSellerNodeAddress = function() { - return jspb.Message.getField(this, 16) != null; -}; - - -/** - * optional string maker_payout_address_string = 17; - * @return {string} - */ -proto.io.bisq.protobuffer.Contract.prototype.getMakerPayoutAddressString = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.setMakerPayoutAddressString = function(value) { - return jspb.Message.setProto3StringField(this, 17, value); -}; - - -/** - * optional string taker_payout_address_string = 18; - * @return {string} - */ -proto.io.bisq.protobuffer.Contract.prototype.getTakerPayoutAddressString = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.setTakerPayoutAddressString = function(value) { - return jspb.Message.setProto3StringField(this, 18, value); -}; - - -/** - * optional NodeAddress arbitrator_node_address = 19; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.Contract.prototype.getArbitratorNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 19)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this -*/ -proto.io.bisq.protobuffer.Contract.prototype.setArbitratorNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 19, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.clearArbitratorNodeAddress = function() { - return this.setArbitratorNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Contract.prototype.hasArbitratorNodeAddress = function() { - return jspb.Message.getField(this, 19) != null; -}; - - -/** - * optional int64 lock_time = 20; - * @return {number} - */ -proto.io.bisq.protobuffer.Contract.prototype.getLockTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.setLockTime = function(value) { - return jspb.Message.setProto3IntField(this, 20, value); -}; - - -/** - * optional string maker_deposit_tx_hash = 21; - * @return {string} - */ -proto.io.bisq.protobuffer.Contract.prototype.getMakerDepositTxHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.setMakerDepositTxHash = function(value) { - return jspb.Message.setProto3StringField(this, 21, value); -}; - - -/** - * optional string taker_deposit_tx_hash = 22; - * @return {string} - */ -proto.io.bisq.protobuffer.Contract.prototype.getTakerDepositTxHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Contract} returns this - */ -proto.io.bisq.protobuffer.Contract.prototype.setTakerDepositTxHash = function(value) { - return jspb.Message.setProto3StringField(this, 22, 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.RawTransactionInput.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.RawTransactionInput.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.RawTransactionInput} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RawTransactionInput.toObject = function(includeInstance, msg) { - var f, obj = { - index: jspb.Message.getFieldWithDefault(msg, 1, 0), - parentTransaction: msg.getParentTransaction_asB64(), - value: jspb.Message.getFieldWithDefault(msg, 3, 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.RawTransactionInput} - */ -proto.io.bisq.protobuffer.RawTransactionInput.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.RawTransactionInput; - return proto.io.bisq.protobuffer.RawTransactionInput.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.RawTransactionInput} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.RawTransactionInput} - */ -proto.io.bisq.protobuffer.RawTransactionInput.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setIndex(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setParentTransaction(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.RawTransactionInput.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.RawTransactionInput.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.RawTransactionInput} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RawTransactionInput.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIndex(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } - f = message.getParentTransaction_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getValue(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } -}; - - -/** - * optional int64 index = 1; - * @return {number} - */ -proto.io.bisq.protobuffer.RawTransactionInput.prototype.getIndex = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.RawTransactionInput} returns this - */ -proto.io.bisq.protobuffer.RawTransactionInput.prototype.setIndex = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bytes parent_transaction = 2; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.RawTransactionInput.prototype.getParentTransaction = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes parent_transaction = 2; - * This is a type-conversion wrapper around `getParentTransaction()` - * @return {string} - */ -proto.io.bisq.protobuffer.RawTransactionInput.prototype.getParentTransaction_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getParentTransaction())); -}; - - -/** - * optional bytes parent_transaction = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getParentTransaction()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.RawTransactionInput.prototype.getParentTransaction_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getParentTransaction())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.RawTransactionInput} returns this - */ -proto.io.bisq.protobuffer.RawTransactionInput.prototype.setParentTransaction = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional int64 value = 3; - * @return {number} - */ -proto.io.bisq.protobuffer.RawTransactionInput.prototype.getValue = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.RawTransactionInput} returns this - */ -proto.io.bisq.protobuffer.RawTransactionInput.prototype.setValue = function(value) { - return jspb.Message.setProto3IntField(this, 3, 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 - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @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,29,30,31,32]]; - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.MessageCase = { - MESSAGE_NOT_SET: 0, - ALI_PAY_ACCOUNT_PAYLOAD: 4, - CHASE_QUICK_PAY_ACCOUNT_PAYLOAD: 5, - CLEAR_XCHANGE_ACCOUNT_PAYLOAD: 6, - COUNTRY_BASED_PAYMENT_ACCOUNT_PAYLOAD: 7, - CRYPTO_CURRENCY_ACCOUNT_PAYLOAD: 8, - FASTER_PAYMENTS_ACCOUNT_PAYLOAD: 9, - INTERAC_E_TRANSFER_ACCOUNT_PAYLOAD: 10, - O_K_PAY_ACCOUNT_PAYLOAD: 11, - PERFECT_MONEY_ACCOUNT_PAYLOAD: 12, - SWISH_ACCOUNT_PAYLOAD: 13, - U_S_POSTAL_MONEY_ORDER_ACCOUNT_PAYLOAD: 14, - UPHOLD_ACCOUNT_PAYLOAD: 16, - CASH_APP_ACCOUNT_PAYLOAD: 17, - MONEY_BEAM_ACCOUNT_PAYLOAD: 18, - VENMO_ACCOUNT_PAYLOAD: 19, - POPMONEY_ACCOUNT_PAYLOAD: 20, - REVOLUT_ACCOUNT_PAYLOAD: 21, - WE_CHAT_PAY_ACCOUNT_PAYLOAD: 22, - MONEY_GRAM_ACCOUNT_PAYLOAD: 23, - HAL_CASH_ACCOUNT_PAYLOAD: 24, - PROMPT_PAY_ACCOUNT_PAYLOAD: 25, - ADVANCED_CASH_ACCOUNT_PAYLOAD: 26, - INSTANT_CRYPTO_CURRENCY_ACCOUNT_PAYLOAD: 27, - 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 -}; - -/** - * @return {proto.io.bisq.protobuffer.PaymentAccountPayload.MessageCase} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getMessageCase = function() { - return /** @type {proto.io.bisq.protobuffer.PaymentAccountPayload.MessageCase} */(jspb.Message.computeOneofCase(this, proto.io.bisq.protobuffer.PaymentAccountPayload.oneofGroups_[0])); -}; - - - -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.PaymentAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PaymentAccountPayload.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.PaymentAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - paymentMethodId: jspb.Message.getFieldWithDefault(msg, 2, ""), - maxTradePeriod: jspb.Message.getFieldWithDefault(msg, 3, 0), - aliPayAccountPayload: (f = msg.getAliPayAccountPayload()) && proto.io.bisq.protobuffer.AliPayAccountPayload.toObject(includeInstance, f), - chaseQuickPayAccountPayload: (f = msg.getChaseQuickPayAccountPayload()) && proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload.toObject(includeInstance, f), - clearXchangeAccountPayload: (f = msg.getClearXchangeAccountPayload()) && proto.io.bisq.protobuffer.ClearXchangeAccountPayload.toObject(includeInstance, f), - countryBasedPaymentAccountPayload: (f = msg.getCountryBasedPaymentAccountPayload()) && proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.toObject(includeInstance, f), - cryptoCurrencyAccountPayload: (f = msg.getCryptoCurrencyAccountPayload()) && proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload.toObject(includeInstance, f), - fasterPaymentsAccountPayload: (f = msg.getFasterPaymentsAccountPayload()) && proto.io.bisq.protobuffer.FasterPaymentsAccountPayload.toObject(includeInstance, f), - interacETransferAccountPayload: (f = msg.getInteracETransferAccountPayload()) && proto.io.bisq.protobuffer.InteracETransferAccountPayload.toObject(includeInstance, f), - oKPayAccountPayload: (f = msg.getOKPayAccountPayload()) && proto.io.bisq.protobuffer.OKPayAccountPayload.toObject(includeInstance, f), - perfectMoneyAccountPayload: (f = msg.getPerfectMoneyAccountPayload()) && proto.io.bisq.protobuffer.PerfectMoneyAccountPayload.toObject(includeInstance, f), - swishAccountPayload: (f = msg.getSwishAccountPayload()) && proto.io.bisq.protobuffer.SwishAccountPayload.toObject(includeInstance, f), - uSPostalMoneyOrderAccountPayload: (f = msg.getUSPostalMoneyOrderAccountPayload()) && proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload.toObject(includeInstance, f), - upholdAccountPayload: (f = msg.getUpholdAccountPayload()) && proto.io.bisq.protobuffer.UpholdAccountPayload.toObject(includeInstance, f), - cashAppAccountPayload: (f = msg.getCashAppAccountPayload()) && proto.io.bisq.protobuffer.CashAppAccountPayload.toObject(includeInstance, f), - moneyBeamAccountPayload: (f = msg.getMoneyBeamAccountPayload()) && proto.io.bisq.protobuffer.MoneyBeamAccountPayload.toObject(includeInstance, f), - venmoAccountPayload: (f = msg.getVenmoAccountPayload()) && proto.io.bisq.protobuffer.VenmoAccountPayload.toObject(includeInstance, f), - popmoneyAccountPayload: (f = msg.getPopmoneyAccountPayload()) && proto.io.bisq.protobuffer.PopmoneyAccountPayload.toObject(includeInstance, f), - revolutAccountPayload: (f = msg.getRevolutAccountPayload()) && proto.io.bisq.protobuffer.RevolutAccountPayload.toObject(includeInstance, f), - weChatPayAccountPayload: (f = msg.getWeChatPayAccountPayload()) && proto.io.bisq.protobuffer.WeChatPayAccountPayload.toObject(includeInstance, f), - moneyGramAccountPayload: (f = msg.getMoneyGramAccountPayload()) && proto.io.bisq.protobuffer.MoneyGramAccountPayload.toObject(includeInstance, f), - halCashAccountPayload: (f = msg.getHalCashAccountPayload()) && proto.io.bisq.protobuffer.HalCashAccountPayload.toObject(includeInstance, f), - promptPayAccountPayload: (f = msg.getPromptPayAccountPayload()) && proto.io.bisq.protobuffer.PromptPayAccountPayload.toObject(includeInstance, f), - 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) : [] - }; - - 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.PaymentAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PaymentAccountPayload; - return proto.io.bisq.protobuffer.PaymentAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PaymentAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.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 {number} */ (reader.readInt64()); - msg.setMaxTradePeriod(value); - break; - case 4: - var value = new proto.io.bisq.protobuffer.AliPayAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.AliPayAccountPayload.deserializeBinaryFromReader); - msg.setAliPayAccountPayload(value); - break; - case 5: - var value = new proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload.deserializeBinaryFromReader); - msg.setChaseQuickPayAccountPayload(value); - break; - case 6: - var value = new proto.io.bisq.protobuffer.ClearXchangeAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.ClearXchangeAccountPayload.deserializeBinaryFromReader); - msg.setClearXchangeAccountPayload(value); - break; - case 7: - var value = new proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.deserializeBinaryFromReader); - msg.setCountryBasedPaymentAccountPayload(value); - break; - case 8: - var value = new proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload.deserializeBinaryFromReader); - msg.setCryptoCurrencyAccountPayload(value); - break; - case 9: - var value = new proto.io.bisq.protobuffer.FasterPaymentsAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.FasterPaymentsAccountPayload.deserializeBinaryFromReader); - msg.setFasterPaymentsAccountPayload(value); - break; - case 10: - var value = new proto.io.bisq.protobuffer.InteracETransferAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.InteracETransferAccountPayload.deserializeBinaryFromReader); - msg.setInteracETransferAccountPayload(value); - break; - case 11: - var value = new proto.io.bisq.protobuffer.OKPayAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.OKPayAccountPayload.deserializeBinaryFromReader); - msg.setOKPayAccountPayload(value); - break; - case 12: - var value = new proto.io.bisq.protobuffer.PerfectMoneyAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.PerfectMoneyAccountPayload.deserializeBinaryFromReader); - msg.setPerfectMoneyAccountPayload(value); - break; - case 13: - var value = new proto.io.bisq.protobuffer.SwishAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.SwishAccountPayload.deserializeBinaryFromReader); - msg.setSwishAccountPayload(value); - break; - case 14: - var value = new proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload.deserializeBinaryFromReader); - msg.setUSPostalMoneyOrderAccountPayload(value); - break; - case 16: - var value = new proto.io.bisq.protobuffer.UpholdAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.UpholdAccountPayload.deserializeBinaryFromReader); - msg.setUpholdAccountPayload(value); - break; - case 17: - var value = new proto.io.bisq.protobuffer.CashAppAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.CashAppAccountPayload.deserializeBinaryFromReader); - msg.setCashAppAccountPayload(value); - break; - case 18: - var value = new proto.io.bisq.protobuffer.MoneyBeamAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.MoneyBeamAccountPayload.deserializeBinaryFromReader); - msg.setMoneyBeamAccountPayload(value); - break; - case 19: - var value = new proto.io.bisq.protobuffer.VenmoAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.VenmoAccountPayload.deserializeBinaryFromReader); - msg.setVenmoAccountPayload(value); - break; - case 20: - var value = new proto.io.bisq.protobuffer.PopmoneyAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.PopmoneyAccountPayload.deserializeBinaryFromReader); - msg.setPopmoneyAccountPayload(value); - break; - case 21: - var value = new proto.io.bisq.protobuffer.RevolutAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.RevolutAccountPayload.deserializeBinaryFromReader); - msg.setRevolutAccountPayload(value); - break; - case 22: - var value = new proto.io.bisq.protobuffer.WeChatPayAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.WeChatPayAccountPayload.deserializeBinaryFromReader); - msg.setWeChatPayAccountPayload(value); - break; - case 23: - var value = new proto.io.bisq.protobuffer.MoneyGramAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.MoneyGramAccountPayload.deserializeBinaryFromReader); - msg.setMoneyGramAccountPayload(value); - break; - case 24: - var value = new proto.io.bisq.protobuffer.HalCashAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.HalCashAccountPayload.deserializeBinaryFromReader); - msg.setHalCashAccountPayload(value); - break; - case 25: - var value = new proto.io.bisq.protobuffer.PromptPayAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.PromptPayAccountPayload.deserializeBinaryFromReader); - msg.setPromptPayAccountPayload(value); - break; - case 26: - var value = new proto.io.bisq.protobuffer.AdvancedCashAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.AdvancedCashAccountPayload.deserializeBinaryFromReader); - msg.setAdvancedCashAccountPayload(value); - break; - case 27: - var value = new proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload.deserializeBinaryFromReader); - msg.setInstantCryptoCurrencyAccountPayload(value); - break; - case 28: - var value = new proto.io.bisq.protobuffer.JapanBankAccountPayload; - 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) { - 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.PaymentAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PaymentAccountPayload.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.PaymentAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.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.getMaxTradePeriod(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getAliPayAccountPayload(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.io.bisq.protobuffer.AliPayAccountPayload.serializeBinaryToWriter - ); - } - f = message.getChaseQuickPayAccountPayload(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload.serializeBinaryToWriter - ); - } - f = message.getClearXchangeAccountPayload(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.io.bisq.protobuffer.ClearXchangeAccountPayload.serializeBinaryToWriter - ); - } - f = message.getCountryBasedPaymentAccountPayload(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.serializeBinaryToWriter - ); - } - f = message.getCryptoCurrencyAccountPayload(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload.serializeBinaryToWriter - ); - } - f = message.getFasterPaymentsAccountPayload(); - if (f != null) { - writer.writeMessage( - 9, - f, - proto.io.bisq.protobuffer.FasterPaymentsAccountPayload.serializeBinaryToWriter - ); - } - f = message.getInteracETransferAccountPayload(); - if (f != null) { - writer.writeMessage( - 10, - f, - proto.io.bisq.protobuffer.InteracETransferAccountPayload.serializeBinaryToWriter - ); - } - f = message.getOKPayAccountPayload(); - if (f != null) { - writer.writeMessage( - 11, - f, - proto.io.bisq.protobuffer.OKPayAccountPayload.serializeBinaryToWriter - ); - } - f = message.getPerfectMoneyAccountPayload(); - if (f != null) { - writer.writeMessage( - 12, - f, - proto.io.bisq.protobuffer.PerfectMoneyAccountPayload.serializeBinaryToWriter - ); - } - f = message.getSwishAccountPayload(); - if (f != null) { - writer.writeMessage( - 13, - f, - proto.io.bisq.protobuffer.SwishAccountPayload.serializeBinaryToWriter - ); - } - f = message.getUSPostalMoneyOrderAccountPayload(); - if (f != null) { - writer.writeMessage( - 14, - f, - proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload.serializeBinaryToWriter - ); - } - f = message.getUpholdAccountPayload(); - if (f != null) { - writer.writeMessage( - 16, - f, - proto.io.bisq.protobuffer.UpholdAccountPayload.serializeBinaryToWriter - ); - } - f = message.getCashAppAccountPayload(); - if (f != null) { - writer.writeMessage( - 17, - f, - proto.io.bisq.protobuffer.CashAppAccountPayload.serializeBinaryToWriter - ); - } - f = message.getMoneyBeamAccountPayload(); - if (f != null) { - writer.writeMessage( - 18, - f, - proto.io.bisq.protobuffer.MoneyBeamAccountPayload.serializeBinaryToWriter - ); - } - f = message.getVenmoAccountPayload(); - if (f != null) { - writer.writeMessage( - 19, - f, - proto.io.bisq.protobuffer.VenmoAccountPayload.serializeBinaryToWriter - ); - } - f = message.getPopmoneyAccountPayload(); - if (f != null) { - writer.writeMessage( - 20, - f, - proto.io.bisq.protobuffer.PopmoneyAccountPayload.serializeBinaryToWriter - ); - } - f = message.getRevolutAccountPayload(); - if (f != null) { - writer.writeMessage( - 21, - f, - proto.io.bisq.protobuffer.RevolutAccountPayload.serializeBinaryToWriter - ); - } - f = message.getWeChatPayAccountPayload(); - if (f != null) { - writer.writeMessage( - 22, - f, - proto.io.bisq.protobuffer.WeChatPayAccountPayload.serializeBinaryToWriter - ); - } - f = message.getMoneyGramAccountPayload(); - if (f != null) { - writer.writeMessage( - 23, - f, - proto.io.bisq.protobuffer.MoneyGramAccountPayload.serializeBinaryToWriter - ); - } - f = message.getHalCashAccountPayload(); - if (f != null) { - writer.writeMessage( - 24, - f, - proto.io.bisq.protobuffer.HalCashAccountPayload.serializeBinaryToWriter - ); - } - f = message.getPromptPayAccountPayload(); - if (f != null) { - writer.writeMessage( - 25, - f, - proto.io.bisq.protobuffer.PromptPayAccountPayload.serializeBinaryToWriter - ); - } - f = message.getAdvancedCashAccountPayload(); - if (f != null) { - writer.writeMessage( - 26, - f, - proto.io.bisq.protobuffer.AdvancedCashAccountPayload.serializeBinaryToWriter - ); - } - f = message.getInstantCryptoCurrencyAccountPayload(); - if (f != null) { - writer.writeMessage( - 27, - f, - proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload.serializeBinaryToWriter - ); - } - f = message.getJapanBankAccountPayload(); - if (f != null) { - writer.writeMessage( - 28, - f, - 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); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string payment_method_id = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getPaymentMethodId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setPaymentMethodId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional int64 max_trade_period = 3; - * @return {number} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getMaxTradePeriod = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setMaxTradePeriod = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional AliPayAccountPayload ali_pay_account_payload = 4; - * @return {?proto.io.bisq.protobuffer.AliPayAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getAliPayAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.AliPayAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.AliPayAccountPayload, 4)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.AliPayAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setAliPayAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, 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.clearAliPayAccountPayload = function() { - return this.setAliPayAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasAliPayAccountPayload = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional ChaseQuickPayAccountPayload chase_quick_pay_account_payload = 5; - * @return {?proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getChaseQuickPayAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload, 5)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setChaseQuickPayAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, 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.clearChaseQuickPayAccountPayload = function() { - return this.setChaseQuickPayAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasChaseQuickPayAccountPayload = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional ClearXchangeAccountPayload clear_xchange_account_payload = 6; - * @return {?proto.io.bisq.protobuffer.ClearXchangeAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getClearXchangeAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.ClearXchangeAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ClearXchangeAccountPayload, 6)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.ClearXchangeAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setClearXchangeAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 6, 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.clearClearXchangeAccountPayload = function() { - return this.setClearXchangeAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasClearXchangeAccountPayload = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional CountryBasedPaymentAccountPayload country_based_payment_account_payload = 7; - * @return {?proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getCountryBasedPaymentAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload, 7)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setCountryBasedPaymentAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 7, 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.clearCountryBasedPaymentAccountPayload = function() { - return this.setCountryBasedPaymentAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasCountryBasedPaymentAccountPayload = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional CryptoCurrencyAccountPayload crypto_currency_account_payload = 8; - * @return {?proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getCryptoCurrencyAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload, 8)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setCryptoCurrencyAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 8, 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.clearCryptoCurrencyAccountPayload = function() { - return this.setCryptoCurrencyAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasCryptoCurrencyAccountPayload = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional FasterPaymentsAccountPayload faster_payments_account_payload = 9; - * @return {?proto.io.bisq.protobuffer.FasterPaymentsAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getFasterPaymentsAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.FasterPaymentsAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.FasterPaymentsAccountPayload, 9)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.FasterPaymentsAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setFasterPaymentsAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 9, 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.clearFasterPaymentsAccountPayload = function() { - return this.setFasterPaymentsAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasFasterPaymentsAccountPayload = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional InteracETransferAccountPayload interac_e_transfer_account_payload = 10; - * @return {?proto.io.bisq.protobuffer.InteracETransferAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getInteracETransferAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.InteracETransferAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.InteracETransferAccountPayload, 10)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.InteracETransferAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setInteracETransferAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 10, 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.clearInteracETransferAccountPayload = function() { - return this.setInteracETransferAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasInteracETransferAccountPayload = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional OKPayAccountPayload o_k_pay_account_payload = 11; - * @return {?proto.io.bisq.protobuffer.OKPayAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getOKPayAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.OKPayAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.OKPayAccountPayload, 11)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.OKPayAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setOKPayAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 11, 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.clearOKPayAccountPayload = function() { - return this.setOKPayAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasOKPayAccountPayload = function() { - return jspb.Message.getField(this, 11) != null; -}; - - -/** - * optional PerfectMoneyAccountPayload perfect_money_account_payload = 12; - * @return {?proto.io.bisq.protobuffer.PerfectMoneyAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getPerfectMoneyAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.PerfectMoneyAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PerfectMoneyAccountPayload, 12)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PerfectMoneyAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setPerfectMoneyAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 12, 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.clearPerfectMoneyAccountPayload = function() { - return this.setPerfectMoneyAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasPerfectMoneyAccountPayload = function() { - return jspb.Message.getField(this, 12) != null; -}; - - -/** - * optional SwishAccountPayload swish_account_payload = 13; - * @return {?proto.io.bisq.protobuffer.SwishAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getSwishAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.SwishAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.SwishAccountPayload, 13)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.SwishAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setSwishAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 13, 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.clearSwishAccountPayload = function() { - return this.setSwishAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasSwishAccountPayload = function() { - return jspb.Message.getField(this, 13) != null; -}; - - -/** - * optional USPostalMoneyOrderAccountPayload u_s_postal_money_order_account_payload = 14; - * @return {?proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getUSPostalMoneyOrderAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload, 14)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setUSPostalMoneyOrderAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 14, 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.clearUSPostalMoneyOrderAccountPayload = function() { - return this.setUSPostalMoneyOrderAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasUSPostalMoneyOrderAccountPayload = function() { - return jspb.Message.getField(this, 14) != null; -}; - - -/** - * optional UpholdAccountPayload uphold_account_payload = 16; - * @return {?proto.io.bisq.protobuffer.UpholdAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getUpholdAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.UpholdAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.UpholdAccountPayload, 16)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.UpholdAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setUpholdAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 16, 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.clearUpholdAccountPayload = function() { - return this.setUpholdAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasUpholdAccountPayload = function() { - return jspb.Message.getField(this, 16) != null; -}; - - -/** - * optional CashAppAccountPayload cash_app_account_payload = 17; - * @return {?proto.io.bisq.protobuffer.CashAppAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getCashAppAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.CashAppAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.CashAppAccountPayload, 17)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.CashAppAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setCashAppAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 17, 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.clearCashAppAccountPayload = function() { - return this.setCashAppAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasCashAppAccountPayload = function() { - return jspb.Message.getField(this, 17) != null; -}; - - -/** - * optional MoneyBeamAccountPayload money_beam_account_payload = 18; - * @return {?proto.io.bisq.protobuffer.MoneyBeamAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getMoneyBeamAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.MoneyBeamAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.MoneyBeamAccountPayload, 18)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.MoneyBeamAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setMoneyBeamAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 18, 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.clearMoneyBeamAccountPayload = function() { - return this.setMoneyBeamAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasMoneyBeamAccountPayload = function() { - return jspb.Message.getField(this, 18) != null; -}; - - -/** - * optional VenmoAccountPayload venmo_account_payload = 19; - * @return {?proto.io.bisq.protobuffer.VenmoAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getVenmoAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.VenmoAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.VenmoAccountPayload, 19)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.VenmoAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setVenmoAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 19, 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.clearVenmoAccountPayload = function() { - return this.setVenmoAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasVenmoAccountPayload = function() { - return jspb.Message.getField(this, 19) != null; -}; - - -/** - * optional PopmoneyAccountPayload popmoney_account_payload = 20; - * @return {?proto.io.bisq.protobuffer.PopmoneyAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getPopmoneyAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.PopmoneyAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PopmoneyAccountPayload, 20)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PopmoneyAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setPopmoneyAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 20, 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.clearPopmoneyAccountPayload = function() { - return this.setPopmoneyAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasPopmoneyAccountPayload = function() { - return jspb.Message.getField(this, 20) != null; -}; - - -/** - * optional RevolutAccountPayload revolut_account_payload = 21; - * @return {?proto.io.bisq.protobuffer.RevolutAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getRevolutAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.RevolutAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.RevolutAccountPayload, 21)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.RevolutAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setRevolutAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 21, 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.clearRevolutAccountPayload = function() { - return this.setRevolutAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasRevolutAccountPayload = function() { - return jspb.Message.getField(this, 21) != null; -}; - - -/** - * optional WeChatPayAccountPayload we_chat_pay_account_payload = 22; - * @return {?proto.io.bisq.protobuffer.WeChatPayAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getWeChatPayAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.WeChatPayAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.WeChatPayAccountPayload, 22)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.WeChatPayAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setWeChatPayAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 22, 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.clearWeChatPayAccountPayload = function() { - return this.setWeChatPayAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasWeChatPayAccountPayload = function() { - return jspb.Message.getField(this, 22) != null; -}; - - -/** - * optional MoneyGramAccountPayload money_gram_account_payload = 23; - * @return {?proto.io.bisq.protobuffer.MoneyGramAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getMoneyGramAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.MoneyGramAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.MoneyGramAccountPayload, 23)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.MoneyGramAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setMoneyGramAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 23, 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.clearMoneyGramAccountPayload = function() { - return this.setMoneyGramAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasMoneyGramAccountPayload = function() { - return jspb.Message.getField(this, 23) != null; -}; - - -/** - * optional HalCashAccountPayload hal_cash_account_payload = 24; - * @return {?proto.io.bisq.protobuffer.HalCashAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getHalCashAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.HalCashAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.HalCashAccountPayload, 24)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.HalCashAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setHalCashAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 24, 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.clearHalCashAccountPayload = function() { - return this.setHalCashAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasHalCashAccountPayload = function() { - return jspb.Message.getField(this, 24) != null; -}; - - -/** - * optional PromptPayAccountPayload prompt_pay_account_payload = 25; - * @return {?proto.io.bisq.protobuffer.PromptPayAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getPromptPayAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.PromptPayAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PromptPayAccountPayload, 25)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PromptPayAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setPromptPayAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 25, 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.clearPromptPayAccountPayload = function() { - return this.setPromptPayAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasPromptPayAccountPayload = function() { - return jspb.Message.getField(this, 25) != null; -}; - - -/** - * optional AdvancedCashAccountPayload advanced_cash_account_payload = 26; - * @return {?proto.io.bisq.protobuffer.AdvancedCashAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getAdvancedCashAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.AdvancedCashAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.AdvancedCashAccountPayload, 26)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.AdvancedCashAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setAdvancedCashAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 26, 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.clearAdvancedCashAccountPayload = function() { - return this.setAdvancedCashAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasAdvancedCashAccountPayload = function() { - return jspb.Message.getField(this, 26) != null; -}; - - -/** - * optional InstantCryptoCurrencyAccountPayload instant_crypto_currency_account_payload = 27; - * @return {?proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getInstantCryptoCurrencyAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload, 27)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setInstantCryptoCurrencyAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 27, 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.clearInstantCryptoCurrencyAccountPayload = function() { - return this.setInstantCryptoCurrencyAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasInstantCryptoCurrencyAccountPayload = function() { - return jspb.Message.getField(this, 27) != null; -}; - - -/** - * optional JapanBankAccountPayload japan_bank_account_payload = 28; - * @return {?proto.io.bisq.protobuffer.JapanBankAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getJapanBankAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.JapanBankAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.JapanBankAccountPayload, 28)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.JapanBankAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.setJapanBankAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 28, 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.clearJapanBankAccountPayload = function() { - return this.setJapanBankAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.hasJapanBankAccountPayload = function() { - return jspb.Message.getField(this, 28) != null; -}; - - -/** - * 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 - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.getExcludeFromJsonDataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 15, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.io.bisq.protobuffer.PaymentAccountPayload} returns this - */ -proto.io.bisq.protobuffer.PaymentAccountPayload.prototype.clearExcludeFromJsonDataMap = function() { - this.getExcludeFromJsonDataMap().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.AliPayAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.AliPayAccountPayload.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.AliPayAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AliPayAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - accountNr: 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.AliPayAccountPayload} - */ -proto.io.bisq.protobuffer.AliPayAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.AliPayAccountPayload; - return proto.io.bisq.protobuffer.AliPayAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.AliPayAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.AliPayAccountPayload} - */ -proto.io.bisq.protobuffer.AliPayAccountPayload.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.setAccountNr(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.AliPayAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.AliPayAccountPayload.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.AliPayAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AliPayAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccountNr(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string account_nr = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.AliPayAccountPayload.prototype.getAccountNr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.AliPayAccountPayload} returns this - */ -proto.io.bisq.protobuffer.AliPayAccountPayload.prototype.setAccountNr = 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.WeChatPayAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.WeChatPayAccountPayload.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.WeChatPayAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.WeChatPayAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - accountNr: 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.WeChatPayAccountPayload} - */ -proto.io.bisq.protobuffer.WeChatPayAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.WeChatPayAccountPayload; - return proto.io.bisq.protobuffer.WeChatPayAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.WeChatPayAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.WeChatPayAccountPayload} - */ -proto.io.bisq.protobuffer.WeChatPayAccountPayload.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.setAccountNr(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.WeChatPayAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.WeChatPayAccountPayload.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.WeChatPayAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.WeChatPayAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccountNr(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string account_nr = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.WeChatPayAccountPayload.prototype.getAccountNr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.WeChatPayAccountPayload} returns this - */ -proto.io.bisq.protobuffer.WeChatPayAccountPayload.prototype.setAccountNr = 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.ChaseQuickPayAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload.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.ChaseQuickPayAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - email: jspb.Message.getFieldWithDefault(msg, 1, ""), - holderName: 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.ChaseQuickPayAccountPayload} - */ -proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload; - return proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload} - */ -proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload.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; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setHolderName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload.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.ChaseQuickPayAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHolderName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string email = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload} returns this - */ -proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload.prototype.setEmail = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string holder_name = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload.prototype.getHolderName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload} returns this - */ -proto.io.bisq.protobuffer.ChaseQuickPayAccountPayload.prototype.setHolderName = 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.ClearXchangeAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.ClearXchangeAccountPayload.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.ClearXchangeAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ClearXchangeAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - holderName: jspb.Message.getFieldWithDefault(msg, 1, ""), - emailOrMobileNr: 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.ClearXchangeAccountPayload} - */ -proto.io.bisq.protobuffer.ClearXchangeAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.ClearXchangeAccountPayload; - return proto.io.bisq.protobuffer.ClearXchangeAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.ClearXchangeAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.ClearXchangeAccountPayload} - */ -proto.io.bisq.protobuffer.ClearXchangeAccountPayload.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.setHolderName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setEmailOrMobileNr(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.ClearXchangeAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.ClearXchangeAccountPayload.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.ClearXchangeAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ClearXchangeAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHolderName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEmailOrMobileNr(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string holder_name = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.ClearXchangeAccountPayload.prototype.getHolderName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ClearXchangeAccountPayload} returns this - */ -proto.io.bisq.protobuffer.ClearXchangeAccountPayload.prototype.setHolderName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string email_or_mobile_nr = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.ClearXchangeAccountPayload.prototype.getEmailOrMobileNr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ClearXchangeAccountPayload} returns this - */ -proto.io.bisq.protobuffer.ClearXchangeAccountPayload.prototype.setEmailOrMobileNr = function(value) { - return jspb.Message.setProto3StringField(this, 2, 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 - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.oneofGroups_ = [[2,3,4,5,6,7]]; - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.MessageCase = { - MESSAGE_NOT_SET: 0, - BANK_ACCOUNT_PAYLOAD: 2, - CASH_DEPOSIT_ACCOUNT_PAYLOAD: 3, - SEPA_ACCOUNT_PAYLOAD: 4, - WESTERN_UNION_ACCOUNT_PAYLOAD: 5, - SEPA_INSTANT_ACCOUNT_PAYLOAD: 6, - F2F_ACCOUNT_PAYLOAD: 7 -}; - -/** - * @return {proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.MessageCase} - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.getMessageCase = function() { - return /** @type {proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.MessageCase} */(jspb.Message.computeOneofCase(this, proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.oneofGroups_[0])); -}; - - - -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.CountryBasedPaymentAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.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.CountryBasedPaymentAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - countrycode: jspb.Message.getFieldWithDefault(msg, 1, ""), - bankAccountPayload: (f = msg.getBankAccountPayload()) && proto.io.bisq.protobuffer.BankAccountPayload.toObject(includeInstance, f), - cashDepositAccountPayload: (f = msg.getCashDepositAccountPayload()) && proto.io.bisq.protobuffer.CashDepositAccountPayload.toObject(includeInstance, f), - sepaAccountPayload: (f = msg.getSepaAccountPayload()) && proto.io.bisq.protobuffer.SepaAccountPayload.toObject(includeInstance, f), - westernUnionAccountPayload: (f = msg.getWesternUnionAccountPayload()) && proto.io.bisq.protobuffer.WesternUnionAccountPayload.toObject(includeInstance, f), - sepaInstantAccountPayload: (f = msg.getSepaInstantAccountPayload()) && proto.io.bisq.protobuffer.SepaInstantAccountPayload.toObject(includeInstance, f), - f2fAccountPayload: (f = msg.getF2fAccountPayload()) && proto.io.bisq.protobuffer.F2FAccountPayload.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.CountryBasedPaymentAccountPayload} - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload; - return proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload} - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.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.setCountrycode(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.BankAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.BankAccountPayload.deserializeBinaryFromReader); - msg.setBankAccountPayload(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.CashDepositAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.CashDepositAccountPayload.deserializeBinaryFromReader); - msg.setCashDepositAccountPayload(value); - break; - case 4: - var value = new proto.io.bisq.protobuffer.SepaAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.SepaAccountPayload.deserializeBinaryFromReader); - msg.setSepaAccountPayload(value); - break; - case 5: - var value = new proto.io.bisq.protobuffer.WesternUnionAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.WesternUnionAccountPayload.deserializeBinaryFromReader); - msg.setWesternUnionAccountPayload(value); - break; - case 6: - var value = new proto.io.bisq.protobuffer.SepaInstantAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.SepaInstantAccountPayload.deserializeBinaryFromReader); - msg.setSepaInstantAccountPayload(value); - break; - case 7: - var value = new proto.io.bisq.protobuffer.F2FAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.F2FAccountPayload.deserializeBinaryFromReader); - msg.setF2fAccountPayload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.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.CountryBasedPaymentAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCountrycode(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getBankAccountPayload(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.BankAccountPayload.serializeBinaryToWriter - ); - } - f = message.getCashDepositAccountPayload(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.CashDepositAccountPayload.serializeBinaryToWriter - ); - } - f = message.getSepaAccountPayload(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.io.bisq.protobuffer.SepaAccountPayload.serializeBinaryToWriter - ); - } - f = message.getWesternUnionAccountPayload(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.io.bisq.protobuffer.WesternUnionAccountPayload.serializeBinaryToWriter - ); - } - f = message.getSepaInstantAccountPayload(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.io.bisq.protobuffer.SepaInstantAccountPayload.serializeBinaryToWriter - ); - } - f = message.getF2fAccountPayload(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.io.bisq.protobuffer.F2FAccountPayload.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string countryCode = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.getCountrycode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload} returns this - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.setCountrycode = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional BankAccountPayload bank_account_payload = 2; - * @return {?proto.io.bisq.protobuffer.BankAccountPayload} - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.getBankAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.BankAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.BankAccountPayload, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.BankAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.setBankAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload} returns this - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.clearBankAccountPayload = function() { - return this.setBankAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.hasBankAccountPayload = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional CashDepositAccountPayload cash_deposit_account_payload = 3; - * @return {?proto.io.bisq.protobuffer.CashDepositAccountPayload} - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.getCashDepositAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.CashDepositAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.CashDepositAccountPayload, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.CashDepositAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.setCashDepositAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload} returns this - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.clearCashDepositAccountPayload = function() { - return this.setCashDepositAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.hasCashDepositAccountPayload = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional SepaAccountPayload sepa_account_payload = 4; - * @return {?proto.io.bisq.protobuffer.SepaAccountPayload} - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.getSepaAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.SepaAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.SepaAccountPayload, 4)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.SepaAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.setSepaAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload} returns this - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.clearSepaAccountPayload = function() { - return this.setSepaAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.hasSepaAccountPayload = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional WesternUnionAccountPayload western_union_account_payload = 5; - * @return {?proto.io.bisq.protobuffer.WesternUnionAccountPayload} - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.getWesternUnionAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.WesternUnionAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.WesternUnionAccountPayload, 5)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.WesternUnionAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.setWesternUnionAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload} returns this - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.clearWesternUnionAccountPayload = function() { - return this.setWesternUnionAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.hasWesternUnionAccountPayload = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional SepaInstantAccountPayload sepa_instant_account_payload = 6; - * @return {?proto.io.bisq.protobuffer.SepaInstantAccountPayload} - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.getSepaInstantAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.SepaInstantAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.SepaInstantAccountPayload, 6)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.SepaInstantAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.setSepaInstantAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 6, proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload} returns this - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.clearSepaInstantAccountPayload = function() { - return this.setSepaInstantAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.hasSepaInstantAccountPayload = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional F2FAccountPayload f2f_account_payload = 7; - * @return {?proto.io.bisq.protobuffer.F2FAccountPayload} - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.getF2fAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.F2FAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.F2FAccountPayload, 7)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.F2FAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.setF2fAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 7, proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload} returns this - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.clearF2fAccountPayload = function() { - return this.setF2fAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.CountryBasedPaymentAccountPayload.prototype.hasF2fAccountPayload = function() { - return jspb.Message.getField(this, 7) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.io.bisq.protobuffer.BankAccountPayload.oneofGroups_ = [[9,10,11]]; - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.BankAccountPayload.MessageCase = { - MESSAGE_NOT_SET: 0, - NATIONAL_BANK_ACCOUNT_PAYLOAD: 9, - SAME_BANK_ACCONT_PAYLOAD: 10, - SPECIFIC_BANKS_ACCOUNT_PAYLOAD: 11 -}; - -/** - * @return {proto.io.bisq.protobuffer.BankAccountPayload.MessageCase} - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.getMessageCase = function() { - return /** @type {proto.io.bisq.protobuffer.BankAccountPayload.MessageCase} */(jspb.Message.computeOneofCase(this, proto.io.bisq.protobuffer.BankAccountPayload.oneofGroups_[0])); -}; - - - -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.BankAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.BankAccountPayload.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.BankAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.BankAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - holderName: jspb.Message.getFieldWithDefault(msg, 1, ""), - bankName: jspb.Message.getFieldWithDefault(msg, 2, ""), - bankId: jspb.Message.getFieldWithDefault(msg, 3, ""), - branchId: jspb.Message.getFieldWithDefault(msg, 4, ""), - accountNr: jspb.Message.getFieldWithDefault(msg, 5, ""), - accountType: jspb.Message.getFieldWithDefault(msg, 6, ""), - holderTaxId: jspb.Message.getFieldWithDefault(msg, 7, ""), - email: jspb.Message.getFieldWithDefault(msg, 8, ""), - nationalBankAccountPayload: (f = msg.getNationalBankAccountPayload()) && proto.io.bisq.protobuffer.NationalBankAccountPayload.toObject(includeInstance, f), - sameBankAccontPayload: (f = msg.getSameBankAccontPayload()) && proto.io.bisq.protobuffer.SameBankAccountPayload.toObject(includeInstance, f), - specificBanksAccountPayload: (f = msg.getSpecificBanksAccountPayload()) && proto.io.bisq.protobuffer.SpecificBanksAccountPayload.toObject(includeInstance, f), - nationalAccountId: jspb.Message.getFieldWithDefault(msg, 12, "") - }; - - 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.BankAccountPayload} - */ -proto.io.bisq.protobuffer.BankAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.BankAccountPayload; - return proto.io.bisq.protobuffer.BankAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.BankAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.BankAccountPayload} - */ -proto.io.bisq.protobuffer.BankAccountPayload.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.setHolderName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setBankName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setBankId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setBranchId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setAccountNr(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setAccountType(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setHolderTaxId(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 9: - var value = new proto.io.bisq.protobuffer.NationalBankAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.NationalBankAccountPayload.deserializeBinaryFromReader); - msg.setNationalBankAccountPayload(value); - break; - case 10: - var value = new proto.io.bisq.protobuffer.SameBankAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.SameBankAccountPayload.deserializeBinaryFromReader); - msg.setSameBankAccontPayload(value); - break; - case 11: - var value = new proto.io.bisq.protobuffer.SpecificBanksAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.SpecificBanksAccountPayload.deserializeBinaryFromReader); - msg.setSpecificBanksAccountPayload(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setNationalAccountId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.BankAccountPayload.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.BankAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.BankAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHolderName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getBankName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getBankId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getBranchId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getAccountNr(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getAccountType(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getHolderTaxId(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getNationalBankAccountPayload(); - if (f != null) { - writer.writeMessage( - 9, - f, - proto.io.bisq.protobuffer.NationalBankAccountPayload.serializeBinaryToWriter - ); - } - f = message.getSameBankAccontPayload(); - if (f != null) { - writer.writeMessage( - 10, - f, - proto.io.bisq.protobuffer.SameBankAccountPayload.serializeBinaryToWriter - ); - } - f = message.getSpecificBanksAccountPayload(); - if (f != null) { - writer.writeMessage( - 11, - f, - proto.io.bisq.protobuffer.SpecificBanksAccountPayload.serializeBinaryToWriter - ); - } - f = message.getNationalAccountId(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } -}; - - -/** - * optional string holder_name = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.getHolderName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.BankAccountPayload} returns this - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.setHolderName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string bank_name = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.getBankName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.BankAccountPayload} returns this - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.setBankName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string bank_id = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.getBankId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.BankAccountPayload} returns this - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.setBankId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string branch_id = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.getBranchId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.BankAccountPayload} returns this - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.setBranchId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string account_nr = 5; - * @return {string} - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.getAccountNr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.BankAccountPayload} returns this - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.setAccountNr = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string account_type = 6; - * @return {string} - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.getAccountType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.BankAccountPayload} returns this - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.setAccountType = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string holder_tax_id = 7; - * @return {string} - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.getHolderTaxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.BankAccountPayload} returns this - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.setHolderTaxId = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string email = 8; - * @return {string} - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.BankAccountPayload} returns this - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.setEmail = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional NationalBankAccountPayload national_bank_account_payload = 9; - * @return {?proto.io.bisq.protobuffer.NationalBankAccountPayload} - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.getNationalBankAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.NationalBankAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NationalBankAccountPayload, 9)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NationalBankAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.BankAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.setNationalBankAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 9, proto.io.bisq.protobuffer.BankAccountPayload.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.BankAccountPayload} returns this - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.clearNationalBankAccountPayload = function() { - return this.setNationalBankAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.hasNationalBankAccountPayload = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional SameBankAccountPayload same_bank_accont_payload = 10; - * @return {?proto.io.bisq.protobuffer.SameBankAccountPayload} - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.getSameBankAccontPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.SameBankAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.SameBankAccountPayload, 10)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.SameBankAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.BankAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.setSameBankAccontPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 10, proto.io.bisq.protobuffer.BankAccountPayload.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.BankAccountPayload} returns this - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.clearSameBankAccontPayload = function() { - return this.setSameBankAccontPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.hasSameBankAccontPayload = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional SpecificBanksAccountPayload specific_banks_account_payload = 11; - * @return {?proto.io.bisq.protobuffer.SpecificBanksAccountPayload} - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.getSpecificBanksAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.SpecificBanksAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.SpecificBanksAccountPayload, 11)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.SpecificBanksAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.BankAccountPayload} returns this -*/ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.setSpecificBanksAccountPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 11, proto.io.bisq.protobuffer.BankAccountPayload.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.BankAccountPayload} returns this - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.clearSpecificBanksAccountPayload = function() { - return this.setSpecificBanksAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.hasSpecificBanksAccountPayload = function() { - return jspb.Message.getField(this, 11) != null; -}; - - -/** - * optional string national_account_id = 12; - * @return {string} - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.getNationalAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.BankAccountPayload} returns this - */ -proto.io.bisq.protobuffer.BankAccountPayload.prototype.setNationalAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 12, 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.NationalBankAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.NationalBankAccountPayload.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.NationalBankAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.NationalBankAccountPayload.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.NationalBankAccountPayload} - */ -proto.io.bisq.protobuffer.NationalBankAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.NationalBankAccountPayload; - return proto.io.bisq.protobuffer.NationalBankAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.NationalBankAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.NationalBankAccountPayload} - */ -proto.io.bisq.protobuffer.NationalBankAccountPayload.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.NationalBankAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.NationalBankAccountPayload.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.NationalBankAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.NationalBankAccountPayload.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.SameBankAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SameBankAccountPayload.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.SameBankAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SameBankAccountPayload.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.SameBankAccountPayload} - */ -proto.io.bisq.protobuffer.SameBankAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SameBankAccountPayload; - return proto.io.bisq.protobuffer.SameBankAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SameBankAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SameBankAccountPayload} - */ -proto.io.bisq.protobuffer.SameBankAccountPayload.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.SameBankAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SameBankAccountPayload.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.SameBankAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SameBankAccountPayload.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.JapanBankAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.JapanBankAccountPayload.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.JapanBankAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.JapanBankAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - bankName: jspb.Message.getFieldWithDefault(msg, 1, ""), - bankCode: jspb.Message.getFieldWithDefault(msg, 2, ""), - bankBranchName: jspb.Message.getFieldWithDefault(msg, 3, ""), - bankBranchCode: jspb.Message.getFieldWithDefault(msg, 4, ""), - bankAccountType: jspb.Message.getFieldWithDefault(msg, 5, ""), - bankAccountName: jspb.Message.getFieldWithDefault(msg, 6, ""), - bankAccountNumber: 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.JapanBankAccountPayload} - */ -proto.io.bisq.protobuffer.JapanBankAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.JapanBankAccountPayload; - return proto.io.bisq.protobuffer.JapanBankAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.JapanBankAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.JapanBankAccountPayload} - */ -proto.io.bisq.protobuffer.JapanBankAccountPayload.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.setBankName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setBankCode(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setBankBranchName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setBankBranchCode(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setBankAccountType(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setBankAccountName(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setBankAccountNumber(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.JapanBankAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.JapanBankAccountPayload.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.JapanBankAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.JapanBankAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBankName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getBankCode(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getBankBranchName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getBankBranchCode(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getBankAccountType(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getBankAccountName(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getBankAccountNumber(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } -}; - - -/** - * optional string bank_name = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.JapanBankAccountPayload.prototype.getBankName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.JapanBankAccountPayload} returns this - */ -proto.io.bisq.protobuffer.JapanBankAccountPayload.prototype.setBankName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string bank_code = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.JapanBankAccountPayload.prototype.getBankCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.JapanBankAccountPayload} returns this - */ -proto.io.bisq.protobuffer.JapanBankAccountPayload.prototype.setBankCode = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string bank_branch_name = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.JapanBankAccountPayload.prototype.getBankBranchName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.JapanBankAccountPayload} returns this - */ -proto.io.bisq.protobuffer.JapanBankAccountPayload.prototype.setBankBranchName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string bank_branch_code = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.JapanBankAccountPayload.prototype.getBankBranchCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.JapanBankAccountPayload} returns this - */ -proto.io.bisq.protobuffer.JapanBankAccountPayload.prototype.setBankBranchCode = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string bank_account_type = 5; - * @return {string} - */ -proto.io.bisq.protobuffer.JapanBankAccountPayload.prototype.getBankAccountType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.JapanBankAccountPayload} returns this - */ -proto.io.bisq.protobuffer.JapanBankAccountPayload.prototype.setBankAccountType = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string bank_account_name = 6; - * @return {string} - */ -proto.io.bisq.protobuffer.JapanBankAccountPayload.prototype.getBankAccountName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.JapanBankAccountPayload} returns this - */ -proto.io.bisq.protobuffer.JapanBankAccountPayload.prototype.setBankAccountName = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string bank_account_number = 7; - * @return {string} - */ -proto.io.bisq.protobuffer.JapanBankAccountPayload.prototype.getBankAccountNumber = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.JapanBankAccountPayload} returns this - */ -proto.io.bisq.protobuffer.JapanBankAccountPayload.prototype.setBankAccountNumber = 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.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} - * @const - */ -proto.io.bisq.protobuffer.SpecificBanksAccountPayload.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.SpecificBanksAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SpecificBanksAccountPayload.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.SpecificBanksAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SpecificBanksAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - acceptedBanksList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : 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.SpecificBanksAccountPayload} - */ -proto.io.bisq.protobuffer.SpecificBanksAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SpecificBanksAccountPayload; - return proto.io.bisq.protobuffer.SpecificBanksAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SpecificBanksAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SpecificBanksAccountPayload} - */ -proto.io.bisq.protobuffer.SpecificBanksAccountPayload.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.addAcceptedBanks(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SpecificBanksAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SpecificBanksAccountPayload.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.SpecificBanksAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SpecificBanksAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAcceptedBanksList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } -}; - - -/** - * repeated string accepted_banks = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.SpecificBanksAccountPayload.prototype.getAcceptedBanksList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.SpecificBanksAccountPayload} returns this - */ -proto.io.bisq.protobuffer.SpecificBanksAccountPayload.prototype.setAcceptedBanksList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.SpecificBanksAccountPayload} returns this - */ -proto.io.bisq.protobuffer.SpecificBanksAccountPayload.prototype.addAcceptedBanks = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.SpecificBanksAccountPayload} returns this - */ -proto.io.bisq.protobuffer.SpecificBanksAccountPayload.prototype.clearAcceptedBanksList = function() { - return this.setAcceptedBanksList([]); -}; - - - - - -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.CashDepositAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.CashDepositAccountPayload.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.CashDepositAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - holderName: jspb.Message.getFieldWithDefault(msg, 1, ""), - holderEmail: jspb.Message.getFieldWithDefault(msg, 2, ""), - bankName: jspb.Message.getFieldWithDefault(msg, 3, ""), - bankId: jspb.Message.getFieldWithDefault(msg, 4, ""), - branchId: jspb.Message.getFieldWithDefault(msg, 5, ""), - accountNr: jspb.Message.getFieldWithDefault(msg, 6, ""), - accountType: jspb.Message.getFieldWithDefault(msg, 7, ""), - requirements: jspb.Message.getFieldWithDefault(msg, 8, ""), - holderTaxId: jspb.Message.getFieldWithDefault(msg, 9, ""), - nationalAccountId: jspb.Message.getFieldWithDefault(msg, 10, "") - }; - - 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.CashDepositAccountPayload} - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.CashDepositAccountPayload; - return proto.io.bisq.protobuffer.CashDepositAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.CashDepositAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.CashDepositAccountPayload} - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.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.setHolderName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setHolderEmail(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setBankName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setBankId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setBranchId(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setAccountNr(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setAccountType(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setRequirements(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setHolderTaxId(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setNationalAccountId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.CashDepositAccountPayload.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.CashDepositAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHolderName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHolderEmail(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getBankName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getBankId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getBranchId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getAccountNr(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getAccountType(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getRequirements(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getHolderTaxId(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getNationalAccountId(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } -}; - - -/** - * optional string holder_name = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.getHolderName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CashDepositAccountPayload} returns this - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.setHolderName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string holder_email = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.getHolderEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CashDepositAccountPayload} returns this - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.setHolderEmail = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string bank_name = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.getBankName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CashDepositAccountPayload} returns this - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.setBankName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string bank_id = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.getBankId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CashDepositAccountPayload} returns this - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.setBankId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string branch_id = 5; - * @return {string} - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.getBranchId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CashDepositAccountPayload} returns this - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.setBranchId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string account_nr = 6; - * @return {string} - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.getAccountNr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CashDepositAccountPayload} returns this - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.setAccountNr = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string account_type = 7; - * @return {string} - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.getAccountType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CashDepositAccountPayload} returns this - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.setAccountType = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string requirements = 8; - * @return {string} - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.getRequirements = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CashDepositAccountPayload} returns this - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.setRequirements = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string holder_tax_id = 9; - * @return {string} - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.getHolderTaxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CashDepositAccountPayload} returns this - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.setHolderTaxId = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional string national_account_id = 10; - * @return {string} - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.getNationalAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CashDepositAccountPayload} returns this - */ -proto.io.bisq.protobuffer.CashDepositAccountPayload.prototype.setNationalAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 10, 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.MoneyGramAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.MoneyGramAccountPayload.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.MoneyGramAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MoneyGramAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - holderName: jspb.Message.getFieldWithDefault(msg, 1, ""), - countryCode: jspb.Message.getFieldWithDefault(msg, 2, ""), - state: jspb.Message.getFieldWithDefault(msg, 3, ""), - email: 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.MoneyGramAccountPayload} - */ -proto.io.bisq.protobuffer.MoneyGramAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.MoneyGramAccountPayload; - return proto.io.bisq.protobuffer.MoneyGramAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.MoneyGramAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.MoneyGramAccountPayload} - */ -proto.io.bisq.protobuffer.MoneyGramAccountPayload.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.setHolderName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCountryCode(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setState(value); - break; - case 4: - 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.MoneyGramAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.MoneyGramAccountPayload.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.MoneyGramAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MoneyGramAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHolderName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCountryCode(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getState(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string holder_name = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.MoneyGramAccountPayload.prototype.getHolderName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.MoneyGramAccountPayload} returns this - */ -proto.io.bisq.protobuffer.MoneyGramAccountPayload.prototype.setHolderName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string country_code = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.MoneyGramAccountPayload.prototype.getCountryCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.MoneyGramAccountPayload} returns this - */ -proto.io.bisq.protobuffer.MoneyGramAccountPayload.prototype.setCountryCode = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string state = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.MoneyGramAccountPayload.prototype.getState = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.MoneyGramAccountPayload} returns this - */ -proto.io.bisq.protobuffer.MoneyGramAccountPayload.prototype.setState = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string email = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.MoneyGramAccountPayload.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.MoneyGramAccountPayload} returns this - */ -proto.io.bisq.protobuffer.MoneyGramAccountPayload.prototype.setEmail = 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.HalCashAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.HalCashAccountPayload.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.HalCashAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.HalCashAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - mobileNr: 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.HalCashAccountPayload} - */ -proto.io.bisq.protobuffer.HalCashAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.HalCashAccountPayload; - return proto.io.bisq.protobuffer.HalCashAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.HalCashAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.HalCashAccountPayload} - */ -proto.io.bisq.protobuffer.HalCashAccountPayload.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.setMobileNr(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.HalCashAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.HalCashAccountPayload.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.HalCashAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.HalCashAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMobileNr(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string mobile_nr = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.HalCashAccountPayload.prototype.getMobileNr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.HalCashAccountPayload} returns this - */ -proto.io.bisq.protobuffer.HalCashAccountPayload.prototype.setMobileNr = 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.WesternUnionAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.WesternUnionAccountPayload.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.WesternUnionAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.WesternUnionAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - holderName: jspb.Message.getFieldWithDefault(msg, 1, ""), - city: jspb.Message.getFieldWithDefault(msg, 2, ""), - state: jspb.Message.getFieldWithDefault(msg, 3, ""), - email: 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.WesternUnionAccountPayload} - */ -proto.io.bisq.protobuffer.WesternUnionAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.WesternUnionAccountPayload; - return proto.io.bisq.protobuffer.WesternUnionAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.WesternUnionAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.WesternUnionAccountPayload} - */ -proto.io.bisq.protobuffer.WesternUnionAccountPayload.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.setHolderName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCity(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setState(value); - break; - case 4: - 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.WesternUnionAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.WesternUnionAccountPayload.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.WesternUnionAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.WesternUnionAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHolderName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCity(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getState(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string holder_name = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.WesternUnionAccountPayload.prototype.getHolderName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.WesternUnionAccountPayload} returns this - */ -proto.io.bisq.protobuffer.WesternUnionAccountPayload.prototype.setHolderName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string city = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.WesternUnionAccountPayload.prototype.getCity = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.WesternUnionAccountPayload} returns this - */ -proto.io.bisq.protobuffer.WesternUnionAccountPayload.prototype.setCity = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string state = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.WesternUnionAccountPayload.prototype.getState = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.WesternUnionAccountPayload} returns this - */ -proto.io.bisq.protobuffer.WesternUnionAccountPayload.prototype.setState = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string email = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.WesternUnionAccountPayload.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.WesternUnionAccountPayload} returns this - */ -proto.io.bisq.protobuffer.WesternUnionAccountPayload.prototype.setEmail = 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.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} - * @const - */ -proto.io.bisq.protobuffer.SepaAccountPayload.repeatedFields_ = [5]; - - - -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.SepaAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SepaAccountPayload.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.SepaAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SepaAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - holderName: jspb.Message.getFieldWithDefault(msg, 1, ""), - iban: jspb.Message.getFieldWithDefault(msg, 2, ""), - bic: jspb.Message.getFieldWithDefault(msg, 3, ""), - email: jspb.Message.getFieldWithDefault(msg, 4, ""), - acceptedCountryCodesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : 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.SepaAccountPayload} - */ -proto.io.bisq.protobuffer.SepaAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SepaAccountPayload; - return proto.io.bisq.protobuffer.SepaAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SepaAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SepaAccountPayload} - */ -proto.io.bisq.protobuffer.SepaAccountPayload.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.setHolderName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setIban(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setBic(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.addAcceptedCountryCodes(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SepaAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SepaAccountPayload.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.SepaAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SepaAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHolderName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getIban(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getBic(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getAcceptedCountryCodesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 5, - f - ); - } -}; - - -/** - * optional string holder_name = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.SepaAccountPayload.prototype.getHolderName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SepaAccountPayload} returns this - */ -proto.io.bisq.protobuffer.SepaAccountPayload.prototype.setHolderName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string iban = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.SepaAccountPayload.prototype.getIban = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SepaAccountPayload} returns this - */ -proto.io.bisq.protobuffer.SepaAccountPayload.prototype.setIban = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string bic = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.SepaAccountPayload.prototype.getBic = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SepaAccountPayload} returns this - */ -proto.io.bisq.protobuffer.SepaAccountPayload.prototype.setBic = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string email = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.SepaAccountPayload.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SepaAccountPayload} returns this - */ -proto.io.bisq.protobuffer.SepaAccountPayload.prototype.setEmail = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * repeated string accepted_country_codes = 5; - * @return {!Array} - */ -proto.io.bisq.protobuffer.SepaAccountPayload.prototype.getAcceptedCountryCodesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.SepaAccountPayload} returns this - */ -proto.io.bisq.protobuffer.SepaAccountPayload.prototype.setAcceptedCountryCodesList = function(value) { - return jspb.Message.setField(this, 5, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.SepaAccountPayload} returns this - */ -proto.io.bisq.protobuffer.SepaAccountPayload.prototype.addAcceptedCountryCodes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 5, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.SepaAccountPayload} returns this - */ -proto.io.bisq.protobuffer.SepaAccountPayload.prototype.clearAcceptedCountryCodesList = function() { - return this.setAcceptedCountryCodesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.SepaInstantAccountPayload.repeatedFields_ = [4]; - - - -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.SepaInstantAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SepaInstantAccountPayload.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.SepaInstantAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SepaInstantAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - holderName: jspb.Message.getFieldWithDefault(msg, 1, ""), - iban: jspb.Message.getFieldWithDefault(msg, 2, ""), - bic: jspb.Message.getFieldWithDefault(msg, 3, ""), - acceptedCountryCodesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : 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.SepaInstantAccountPayload} - */ -proto.io.bisq.protobuffer.SepaInstantAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SepaInstantAccountPayload; - return proto.io.bisq.protobuffer.SepaInstantAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SepaInstantAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SepaInstantAccountPayload} - */ -proto.io.bisq.protobuffer.SepaInstantAccountPayload.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.setHolderName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setIban(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setBic(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addAcceptedCountryCodes(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SepaInstantAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SepaInstantAccountPayload.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.SepaInstantAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SepaInstantAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHolderName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getIban(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getBic(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getAcceptedCountryCodesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } -}; - - -/** - * optional string holder_name = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.SepaInstantAccountPayload.prototype.getHolderName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SepaInstantAccountPayload} returns this - */ -proto.io.bisq.protobuffer.SepaInstantAccountPayload.prototype.setHolderName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string iban = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.SepaInstantAccountPayload.prototype.getIban = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SepaInstantAccountPayload} returns this - */ -proto.io.bisq.protobuffer.SepaInstantAccountPayload.prototype.setIban = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string bic = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.SepaInstantAccountPayload.prototype.getBic = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SepaInstantAccountPayload} returns this - */ -proto.io.bisq.protobuffer.SepaInstantAccountPayload.prototype.setBic = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated string accepted_country_codes = 4; - * @return {!Array} - */ -proto.io.bisq.protobuffer.SepaInstantAccountPayload.prototype.getAcceptedCountryCodesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.SepaInstantAccountPayload} returns this - */ -proto.io.bisq.protobuffer.SepaInstantAccountPayload.prototype.setAcceptedCountryCodesList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.SepaInstantAccountPayload} returns this - */ -proto.io.bisq.protobuffer.SepaInstantAccountPayload.prototype.addAcceptedCountryCodes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.SepaInstantAccountPayload} returns this - */ -proto.io.bisq.protobuffer.SepaInstantAccountPayload.prototype.clearAcceptedCountryCodesList = function() { - return this.setAcceptedCountryCodesList([]); -}; - - - - - -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.CryptoCurrencyAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload.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.CryptoCurrencyAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload.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.CryptoCurrencyAccountPayload} - */ -proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload; - return proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload} - */ -proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload.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.CryptoCurrencyAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload.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.CryptoCurrencyAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload.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.CryptoCurrencyAccountPayload.prototype.getAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload} returns this - */ -proto.io.bisq.protobuffer.CryptoCurrencyAccountPayload.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.InstantCryptoCurrencyAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload.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.InstantCryptoCurrencyAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload.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.InstantCryptoCurrencyAccountPayload} - */ -proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload; - return proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload} - */ -proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload.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.InstantCryptoCurrencyAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload.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.InstantCryptoCurrencyAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload.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.InstantCryptoCurrencyAccountPayload.prototype.getAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload} returns this - */ -proto.io.bisq.protobuffer.InstantCryptoCurrencyAccountPayload.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.FasterPaymentsAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.FasterPaymentsAccountPayload.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.FasterPaymentsAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.FasterPaymentsAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - sortCode: jspb.Message.getFieldWithDefault(msg, 1, ""), - accountNr: jspb.Message.getFieldWithDefault(msg, 2, ""), - email: 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.FasterPaymentsAccountPayload} - */ -proto.io.bisq.protobuffer.FasterPaymentsAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.FasterPaymentsAccountPayload; - return proto.io.bisq.protobuffer.FasterPaymentsAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.FasterPaymentsAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.FasterPaymentsAccountPayload} - */ -proto.io.bisq.protobuffer.FasterPaymentsAccountPayload.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.setSortCode(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAccountNr(value); - break; - case 3: - 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.FasterPaymentsAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.FasterPaymentsAccountPayload.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.FasterPaymentsAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.FasterPaymentsAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSortCode(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAccountNr(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string sort_code = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.FasterPaymentsAccountPayload.prototype.getSortCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.FasterPaymentsAccountPayload} returns this - */ -proto.io.bisq.protobuffer.FasterPaymentsAccountPayload.prototype.setSortCode = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string account_nr = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.FasterPaymentsAccountPayload.prototype.getAccountNr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.FasterPaymentsAccountPayload} returns this - */ -proto.io.bisq.protobuffer.FasterPaymentsAccountPayload.prototype.setAccountNr = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string email = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.FasterPaymentsAccountPayload.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.FasterPaymentsAccountPayload} returns this - */ -proto.io.bisq.protobuffer.FasterPaymentsAccountPayload.prototype.setEmail = 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.InteracETransferAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.InteracETransferAccountPayload.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.InteracETransferAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.InteracETransferAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - email: jspb.Message.getFieldWithDefault(msg, 1, ""), - holderName: jspb.Message.getFieldWithDefault(msg, 2, ""), - question: jspb.Message.getFieldWithDefault(msg, 3, ""), - answer: 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.InteracETransferAccountPayload} - */ -proto.io.bisq.protobuffer.InteracETransferAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.InteracETransferAccountPayload; - return proto.io.bisq.protobuffer.InteracETransferAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.InteracETransferAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.InteracETransferAccountPayload} - */ -proto.io.bisq.protobuffer.InteracETransferAccountPayload.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; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setHolderName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setQuestion(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setAnswer(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.InteracETransferAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.InteracETransferAccountPayload.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.InteracETransferAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.InteracETransferAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHolderName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getQuestion(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getAnswer(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string email = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.InteracETransferAccountPayload.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InteracETransferAccountPayload} returns this - */ -proto.io.bisq.protobuffer.InteracETransferAccountPayload.prototype.setEmail = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string holder_name = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.InteracETransferAccountPayload.prototype.getHolderName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InteracETransferAccountPayload} returns this - */ -proto.io.bisq.protobuffer.InteracETransferAccountPayload.prototype.setHolderName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string question = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.InteracETransferAccountPayload.prototype.getQuestion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InteracETransferAccountPayload} returns this - */ -proto.io.bisq.protobuffer.InteracETransferAccountPayload.prototype.setQuestion = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string answer = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.InteracETransferAccountPayload.prototype.getAnswer = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.InteracETransferAccountPayload} returns this - */ -proto.io.bisq.protobuffer.InteracETransferAccountPayload.prototype.setAnswer = 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.OKPayAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.OKPayAccountPayload.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.OKPayAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.OKPayAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - accountNr: 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.OKPayAccountPayload} - */ -proto.io.bisq.protobuffer.OKPayAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.OKPayAccountPayload; - return proto.io.bisq.protobuffer.OKPayAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.OKPayAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.OKPayAccountPayload} - */ -proto.io.bisq.protobuffer.OKPayAccountPayload.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.setAccountNr(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.OKPayAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.OKPayAccountPayload.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.OKPayAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.OKPayAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccountNr(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string account_nr = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.OKPayAccountPayload.prototype.getAccountNr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OKPayAccountPayload} returns this - */ -proto.io.bisq.protobuffer.OKPayAccountPayload.prototype.setAccountNr = 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.UpholdAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.UpholdAccountPayload.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.UpholdAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.UpholdAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - accountId: 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.UpholdAccountPayload} - */ -proto.io.bisq.protobuffer.UpholdAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.UpholdAccountPayload; - return proto.io.bisq.protobuffer.UpholdAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.UpholdAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.UpholdAccountPayload} - */ -proto.io.bisq.protobuffer.UpholdAccountPayload.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.setAccountId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.UpholdAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.UpholdAccountPayload.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.UpholdAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.UpholdAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccountId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string account_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.UpholdAccountPayload.prototype.getAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.UpholdAccountPayload} returns this - */ -proto.io.bisq.protobuffer.UpholdAccountPayload.prototype.setAccountId = 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.CashAppAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.CashAppAccountPayload.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.CashAppAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CashAppAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - cashTag: 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.CashAppAccountPayload} - */ -proto.io.bisq.protobuffer.CashAppAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.CashAppAccountPayload; - return proto.io.bisq.protobuffer.CashAppAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.CashAppAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.CashAppAccountPayload} - */ -proto.io.bisq.protobuffer.CashAppAccountPayload.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.setCashTag(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.CashAppAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.CashAppAccountPayload.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.CashAppAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CashAppAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCashTag(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string cash_tag = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.CashAppAccountPayload.prototype.getCashTag = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.CashAppAccountPayload} returns this - */ -proto.io.bisq.protobuffer.CashAppAccountPayload.prototype.setCashTag = 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.MoneyBeamAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.MoneyBeamAccountPayload.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.MoneyBeamAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MoneyBeamAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - accountId: 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.MoneyBeamAccountPayload} - */ -proto.io.bisq.protobuffer.MoneyBeamAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.MoneyBeamAccountPayload; - return proto.io.bisq.protobuffer.MoneyBeamAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.MoneyBeamAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.MoneyBeamAccountPayload} - */ -proto.io.bisq.protobuffer.MoneyBeamAccountPayload.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.setAccountId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.MoneyBeamAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.MoneyBeamAccountPayload.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.MoneyBeamAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MoneyBeamAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccountId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string account_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.MoneyBeamAccountPayload.prototype.getAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.MoneyBeamAccountPayload} returns this - */ -proto.io.bisq.protobuffer.MoneyBeamAccountPayload.prototype.setAccountId = 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.VenmoAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.VenmoAccountPayload.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.VenmoAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.VenmoAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - venmoUserName: jspb.Message.getFieldWithDefault(msg, 1, ""), - holderName: 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.VenmoAccountPayload} - */ -proto.io.bisq.protobuffer.VenmoAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.VenmoAccountPayload; - return proto.io.bisq.protobuffer.VenmoAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.VenmoAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.VenmoAccountPayload} - */ -proto.io.bisq.protobuffer.VenmoAccountPayload.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.setVenmoUserName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setHolderName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.VenmoAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.VenmoAccountPayload.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.VenmoAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.VenmoAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVenmoUserName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHolderName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string venmo_user_name = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.VenmoAccountPayload.prototype.getVenmoUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.VenmoAccountPayload} returns this - */ -proto.io.bisq.protobuffer.VenmoAccountPayload.prototype.setVenmoUserName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string holder_name = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.VenmoAccountPayload.prototype.getHolderName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.VenmoAccountPayload} returns this - */ -proto.io.bisq.protobuffer.VenmoAccountPayload.prototype.setHolderName = 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.PopmoneyAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PopmoneyAccountPayload.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.PopmoneyAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PopmoneyAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - accountId: jspb.Message.getFieldWithDefault(msg, 1, ""), - holderName: 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.PopmoneyAccountPayload} - */ -proto.io.bisq.protobuffer.PopmoneyAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PopmoneyAccountPayload; - return proto.io.bisq.protobuffer.PopmoneyAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PopmoneyAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PopmoneyAccountPayload} - */ -proto.io.bisq.protobuffer.PopmoneyAccountPayload.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.setAccountId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setHolderName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PopmoneyAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PopmoneyAccountPayload.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.PopmoneyAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PopmoneyAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccountId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHolderName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string account_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.PopmoneyAccountPayload.prototype.getAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PopmoneyAccountPayload} returns this - */ -proto.io.bisq.protobuffer.PopmoneyAccountPayload.prototype.setAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string holder_name = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.PopmoneyAccountPayload.prototype.getHolderName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PopmoneyAccountPayload} returns this - */ -proto.io.bisq.protobuffer.PopmoneyAccountPayload.prototype.setHolderName = 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.RevolutAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.RevolutAccountPayload.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.RevolutAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RevolutAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - accountId: jspb.Message.getFieldWithDefault(msg, 1, ""), - userName: 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.RevolutAccountPayload} - */ -proto.io.bisq.protobuffer.RevolutAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.RevolutAccountPayload; - return proto.io.bisq.protobuffer.RevolutAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.RevolutAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.RevolutAccountPayload} - */ -proto.io.bisq.protobuffer.RevolutAccountPayload.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.setAccountId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.RevolutAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.RevolutAccountPayload.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.RevolutAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RevolutAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccountId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string account_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.RevolutAccountPayload.prototype.getAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.RevolutAccountPayload} returns this - */ -proto.io.bisq.protobuffer.RevolutAccountPayload.prototype.setAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_name = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.RevolutAccountPayload.prototype.getUserName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.RevolutAccountPayload} returns this - */ -proto.io.bisq.protobuffer.RevolutAccountPayload.prototype.setUserName = 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.PerfectMoneyAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PerfectMoneyAccountPayload.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.PerfectMoneyAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PerfectMoneyAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - accountNr: 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.PerfectMoneyAccountPayload} - */ -proto.io.bisq.protobuffer.PerfectMoneyAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PerfectMoneyAccountPayload; - return proto.io.bisq.protobuffer.PerfectMoneyAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PerfectMoneyAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PerfectMoneyAccountPayload} - */ -proto.io.bisq.protobuffer.PerfectMoneyAccountPayload.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.setAccountNr(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PerfectMoneyAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PerfectMoneyAccountPayload.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.PerfectMoneyAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PerfectMoneyAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccountNr(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string account_nr = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.PerfectMoneyAccountPayload.prototype.getAccountNr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PerfectMoneyAccountPayload} returns this - */ -proto.io.bisq.protobuffer.PerfectMoneyAccountPayload.prototype.setAccountNr = 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.SwishAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SwishAccountPayload.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.SwishAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SwishAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - mobileNr: jspb.Message.getFieldWithDefault(msg, 1, ""), - holderName: 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.SwishAccountPayload} - */ -proto.io.bisq.protobuffer.SwishAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SwishAccountPayload; - return proto.io.bisq.protobuffer.SwishAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SwishAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SwishAccountPayload} - */ -proto.io.bisq.protobuffer.SwishAccountPayload.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.setMobileNr(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setHolderName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SwishAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SwishAccountPayload.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.SwishAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SwishAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMobileNr(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHolderName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string mobile_nr = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.SwishAccountPayload.prototype.getMobileNr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SwishAccountPayload} returns this - */ -proto.io.bisq.protobuffer.SwishAccountPayload.prototype.setMobileNr = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string holder_name = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.SwishAccountPayload.prototype.getHolderName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SwishAccountPayload} returns this - */ -proto.io.bisq.protobuffer.SwishAccountPayload.prototype.setHolderName = 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.USPostalMoneyOrderAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload.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.USPostalMoneyOrderAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - postalAddress: jspb.Message.getFieldWithDefault(msg, 1, ""), - holderName: 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.USPostalMoneyOrderAccountPayload} - */ -proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload; - return proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload} - */ -proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload.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.setHolderName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload.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.USPostalMoneyOrderAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPostalAddress(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHolderName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string postal_address = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload.prototype.getPostalAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload} returns this - */ -proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload.prototype.setPostalAddress = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string holder_name = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload.prototype.getHolderName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload} returns this - */ -proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload.prototype.setHolderName = 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.F2FAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.F2FAccountPayload.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.F2FAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.F2FAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - contact: jspb.Message.getFieldWithDefault(msg, 1, ""), - city: 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.F2FAccountPayload} - */ -proto.io.bisq.protobuffer.F2FAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.F2FAccountPayload; - return proto.io.bisq.protobuffer.F2FAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.F2FAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.F2FAccountPayload} - */ -proto.io.bisq.protobuffer.F2FAccountPayload.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.setContact(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCity(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.F2FAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.F2FAccountPayload.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.F2FAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.F2FAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getContact(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCity(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getExtraInfo(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string contact = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.F2FAccountPayload.prototype.getContact = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.F2FAccountPayload} returns this - */ -proto.io.bisq.protobuffer.F2FAccountPayload.prototype.setContact = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string city = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.F2FAccountPayload.prototype.getCity = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.F2FAccountPayload} returns this - */ -proto.io.bisq.protobuffer.F2FAccountPayload.prototype.setCity = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string extra_info = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.F2FAccountPayload.prototype.getExtraInfo = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.F2FAccountPayload} returns this - */ -proto.io.bisq.protobuffer.F2FAccountPayload.prototype.setExtraInfo = 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.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. - * 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.PromptPayAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PromptPayAccountPayload.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.PromptPayAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PromptPayAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - promptPayId: 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.PromptPayAccountPayload} - */ -proto.io.bisq.protobuffer.PromptPayAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PromptPayAccountPayload; - return proto.io.bisq.protobuffer.PromptPayAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PromptPayAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PromptPayAccountPayload} - */ -proto.io.bisq.protobuffer.PromptPayAccountPayload.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.setPromptPayId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PromptPayAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PromptPayAccountPayload.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.PromptPayAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PromptPayAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPromptPayId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string prompt_pay_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.PromptPayAccountPayload.prototype.getPromptPayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PromptPayAccountPayload} returns this - */ -proto.io.bisq.protobuffer.PromptPayAccountPayload.prototype.setPromptPayId = 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.AdvancedCashAccountPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.AdvancedCashAccountPayload.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.AdvancedCashAccountPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AdvancedCashAccountPayload.toObject = function(includeInstance, msg) { - var f, obj = { - accountNr: 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.AdvancedCashAccountPayload} - */ -proto.io.bisq.protobuffer.AdvancedCashAccountPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.AdvancedCashAccountPayload; - return proto.io.bisq.protobuffer.AdvancedCashAccountPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.AdvancedCashAccountPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.AdvancedCashAccountPayload} - */ -proto.io.bisq.protobuffer.AdvancedCashAccountPayload.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.setAccountNr(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.AdvancedCashAccountPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.AdvancedCashAccountPayload.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.AdvancedCashAccountPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AdvancedCashAccountPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccountNr(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string account_nr = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.AdvancedCashAccountPayload.prototype.getAccountNr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.AdvancedCashAccountPayload} returns this - */ -proto.io.bisq.protobuffer.AdvancedCashAccountPayload.prototype.setAccountNr = 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.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 - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.io.bisq.protobuffer.PersistableEnvelope.oneofGroups_ = [[1,2,3,4,5,6,8,9,10,11,12,13,15,16,17,18,19,20,21,1001,1002]]; - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.MessageCase = { - MESSAGE_NOT_SET: 0, - SEQUENCE_NUMBER_MAP: 1, - PERSISTED_ENTRY_MAP: 2, - PEER_LIST: 3, - ADDRESS_ENTRY_LIST: 4, - NAVIGATION_PATH: 5, - TRADABLE_LIST: 6, - ARBITRATION_DISPUTE_LIST: 8, - PREFERENCES_PAYLOAD: 9, - USER_PAYLOAD: 10, - PAYMENT_ACCOUNT_LIST: 11, - ACCOUNT_AGE_WITNESS_STORE: 12, - TRADE_STATISTICS2_STORE: 13, - SIGNED_WITNESS_STORE: 15, - MEDIATION_DISPUTE_LIST: 16, - REFUND_DISPUTE_LIST: 17, - TRADE_STATISTICS3_STORE: 18, - MAILBOX_MESSAGE_LIST: 19, - IGNORED_MAILBOX_MAP: 20, - REMOVED_PAYLOADS_MAP: 21, - XMR_ADDRESS_ENTRY_LIST: 1001, - SIGNED_OFFER_LIST: 1002 -}; - -/** - * @return {proto.io.bisq.protobuffer.PersistableEnvelope.MessageCase} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getMessageCase = function() { - return /** @type {proto.io.bisq.protobuffer.PersistableEnvelope.MessageCase} */(jspb.Message.computeOneofCase(this, proto.io.bisq.protobuffer.PersistableEnvelope.oneofGroups_[0])); -}; - - - -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.PersistableEnvelope.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PersistableEnvelope.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.PersistableEnvelope} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PersistableEnvelope.toObject = function(includeInstance, msg) { - var f, obj = { - sequenceNumberMap: (f = msg.getSequenceNumberMap()) && proto.io.bisq.protobuffer.SequenceNumberMap.toObject(includeInstance, f), - persistedEntryMap: (f = msg.getPersistedEntryMap()) && proto.io.bisq.protobuffer.PersistedEntryMap.toObject(includeInstance, f), - peerList: (f = msg.getPeerList()) && proto.io.bisq.protobuffer.PeerList.toObject(includeInstance, f), - addressEntryList: (f = msg.getAddressEntryList()) && proto.io.bisq.protobuffer.AddressEntryList.toObject(includeInstance, f), - navigationPath: (f = msg.getNavigationPath()) && proto.io.bisq.protobuffer.NavigationPath.toObject(includeInstance, f), - tradableList: (f = msg.getTradableList()) && proto.io.bisq.protobuffer.TradableList.toObject(includeInstance, f), - arbitrationDisputeList: (f = msg.getArbitrationDisputeList()) && proto.io.bisq.protobuffer.ArbitrationDisputeList.toObject(includeInstance, f), - preferencesPayload: (f = msg.getPreferencesPayload()) && proto.io.bisq.protobuffer.PreferencesPayload.toObject(includeInstance, f), - userPayload: (f = msg.getUserPayload()) && proto.io.bisq.protobuffer.UserPayload.toObject(includeInstance, f), - paymentAccountList: (f = msg.getPaymentAccountList()) && proto.io.bisq.protobuffer.PaymentAccountList.toObject(includeInstance, f), - accountAgeWitnessStore: (f = msg.getAccountAgeWitnessStore()) && proto.io.bisq.protobuffer.AccountAgeWitnessStore.toObject(includeInstance, f), - tradeStatistics2Store: (f = msg.getTradeStatistics2Store()) && proto.io.bisq.protobuffer.TradeStatistics2Store.toObject(includeInstance, f), - 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), - signedOfferList: (f = msg.getSignedOfferList()) && proto.io.bisq.protobuffer.SignedOfferList.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.PersistableEnvelope} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PersistableEnvelope; - return proto.io.bisq.protobuffer.PersistableEnvelope.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PersistableEnvelope} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.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.SequenceNumberMap; - reader.readMessage(value,proto.io.bisq.protobuffer.SequenceNumberMap.deserializeBinaryFromReader); - msg.setSequenceNumberMap(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.PersistedEntryMap; - reader.readMessage(value,proto.io.bisq.protobuffer.PersistedEntryMap.deserializeBinaryFromReader); - msg.setPersistedEntryMap(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.PeerList; - reader.readMessage(value,proto.io.bisq.protobuffer.PeerList.deserializeBinaryFromReader); - msg.setPeerList(value); - break; - case 4: - var value = new proto.io.bisq.protobuffer.AddressEntryList; - reader.readMessage(value,proto.io.bisq.protobuffer.AddressEntryList.deserializeBinaryFromReader); - msg.setAddressEntryList(value); - break; - case 5: - var value = new proto.io.bisq.protobuffer.NavigationPath; - reader.readMessage(value,proto.io.bisq.protobuffer.NavigationPath.deserializeBinaryFromReader); - msg.setNavigationPath(value); - break; - case 6: - var value = new proto.io.bisq.protobuffer.TradableList; - reader.readMessage(value,proto.io.bisq.protobuffer.TradableList.deserializeBinaryFromReader); - msg.setTradableList(value); - break; - case 8: - var value = new proto.io.bisq.protobuffer.ArbitrationDisputeList; - reader.readMessage(value,proto.io.bisq.protobuffer.ArbitrationDisputeList.deserializeBinaryFromReader); - msg.setArbitrationDisputeList(value); - break; - case 9: - var value = new proto.io.bisq.protobuffer.PreferencesPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.PreferencesPayload.deserializeBinaryFromReader); - msg.setPreferencesPayload(value); - break; - case 10: - var value = new proto.io.bisq.protobuffer.UserPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.UserPayload.deserializeBinaryFromReader); - msg.setUserPayload(value); - break; - case 11: - var value = new proto.io.bisq.protobuffer.PaymentAccountList; - reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccountList.deserializeBinaryFromReader); - msg.setPaymentAccountList(value); - break; - case 12: - var value = new proto.io.bisq.protobuffer.AccountAgeWitnessStore; - reader.readMessage(value,proto.io.bisq.protobuffer.AccountAgeWitnessStore.deserializeBinaryFromReader); - msg.setAccountAgeWitnessStore(value); - break; - case 13: - var value = new proto.io.bisq.protobuffer.TradeStatistics2Store; - reader.readMessage(value,proto.io.bisq.protobuffer.TradeStatistics2Store.deserializeBinaryFromReader); - msg.setTradeStatistics2Store(value); - break; - case 15: - var value = new proto.io.bisq.protobuffer.SignedWitnessStore; - reader.readMessage(value,proto.io.bisq.protobuffer.SignedWitnessStore.deserializeBinaryFromReader); - msg.setSignedWitnessStore(value); - break; - case 16: - var value = new proto.io.bisq.protobuffer.MediationDisputeList; - reader.readMessage(value,proto.io.bisq.protobuffer.MediationDisputeList.deserializeBinaryFromReader); - msg.setMediationDisputeList(value); - break; - case 17: - var value = new proto.io.bisq.protobuffer.RefundDisputeList; - reader.readMessage(value,proto.io.bisq.protobuffer.RefundDisputeList.deserializeBinaryFromReader); - msg.setRefundDisputeList(value); - break; - case 18: - var value = new proto.io.bisq.protobuffer.TradeStatistics3Store; - reader.readMessage(value,proto.io.bisq.protobuffer.TradeStatistics3Store.deserializeBinaryFromReader); - msg.setTradeStatistics3Store(value); - break; - case 19: - var value = new proto.io.bisq.protobuffer.MailboxMessageList; - reader.readMessage(value,proto.io.bisq.protobuffer.MailboxMessageList.deserializeBinaryFromReader); - msg.setMailboxMessageList(value); - break; - case 20: - var value = new proto.io.bisq.protobuffer.IgnoredMailboxMap; - reader.readMessage(value,proto.io.bisq.protobuffer.IgnoredMailboxMap.deserializeBinaryFromReader); - msg.setIgnoredMailboxMap(value); - break; - case 21: - var value = new proto.io.bisq.protobuffer.RemovedPayloadsMap; - reader.readMessage(value,proto.io.bisq.protobuffer.RemovedPayloadsMap.deserializeBinaryFromReader); - msg.setRemovedPayloadsMap(value); - break; - case 1001: - var value = new proto.io.bisq.protobuffer.XmrAddressEntryList; - reader.readMessage(value,proto.io.bisq.protobuffer.XmrAddressEntryList.deserializeBinaryFromReader); - msg.setXmrAddressEntryList(value); - break; - case 1002: - var value = new proto.io.bisq.protobuffer.SignedOfferList; - reader.readMessage(value,proto.io.bisq.protobuffer.SignedOfferList.deserializeBinaryFromReader); - msg.setSignedOfferList(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PersistableEnvelope.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.PersistableEnvelope} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PersistableEnvelope.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSequenceNumberMap(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.SequenceNumberMap.serializeBinaryToWriter - ); - } - f = message.getPersistedEntryMap(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.PersistedEntryMap.serializeBinaryToWriter - ); - } - f = message.getPeerList(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.PeerList.serializeBinaryToWriter - ); - } - f = message.getAddressEntryList(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.io.bisq.protobuffer.AddressEntryList.serializeBinaryToWriter - ); - } - f = message.getNavigationPath(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.io.bisq.protobuffer.NavigationPath.serializeBinaryToWriter - ); - } - f = message.getTradableList(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.io.bisq.protobuffer.TradableList.serializeBinaryToWriter - ); - } - f = message.getArbitrationDisputeList(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.io.bisq.protobuffer.ArbitrationDisputeList.serializeBinaryToWriter - ); - } - f = message.getPreferencesPayload(); - if (f != null) { - writer.writeMessage( - 9, - f, - proto.io.bisq.protobuffer.PreferencesPayload.serializeBinaryToWriter - ); - } - f = message.getUserPayload(); - if (f != null) { - writer.writeMessage( - 10, - f, - proto.io.bisq.protobuffer.UserPayload.serializeBinaryToWriter - ); - } - f = message.getPaymentAccountList(); - if (f != null) { - writer.writeMessage( - 11, - f, - proto.io.bisq.protobuffer.PaymentAccountList.serializeBinaryToWriter - ); - } - f = message.getAccountAgeWitnessStore(); - if (f != null) { - writer.writeMessage( - 12, - f, - proto.io.bisq.protobuffer.AccountAgeWitnessStore.serializeBinaryToWriter - ); - } - f = message.getTradeStatistics2Store(); - if (f != null) { - writer.writeMessage( - 13, - f, - proto.io.bisq.protobuffer.TradeStatistics2Store.serializeBinaryToWriter - ); - } - f = message.getSignedWitnessStore(); - if (f != null) { - writer.writeMessage( - 15, - f, - proto.io.bisq.protobuffer.SignedWitnessStore.serializeBinaryToWriter - ); - } - f = message.getMediationDisputeList(); - if (f != null) { - writer.writeMessage( - 16, - f, - proto.io.bisq.protobuffer.MediationDisputeList.serializeBinaryToWriter - ); - } - f = message.getRefundDisputeList(); - if (f != null) { - writer.writeMessage( - 17, - f, - proto.io.bisq.protobuffer.RefundDisputeList.serializeBinaryToWriter - ); - } - f = message.getTradeStatistics3Store(); - if (f != null) { - writer.writeMessage( - 18, - f, - proto.io.bisq.protobuffer.TradeStatistics3Store.serializeBinaryToWriter - ); - } - f = message.getMailboxMessageList(); - if (f != null) { - writer.writeMessage( - 19, - f, - proto.io.bisq.protobuffer.MailboxMessageList.serializeBinaryToWriter - ); - } - f = message.getIgnoredMailboxMap(); - if (f != null) { - writer.writeMessage( - 20, - f, - proto.io.bisq.protobuffer.IgnoredMailboxMap.serializeBinaryToWriter - ); - } - f = message.getRemovedPayloadsMap(); - if (f != null) { - writer.writeMessage( - 21, - f, - proto.io.bisq.protobuffer.RemovedPayloadsMap.serializeBinaryToWriter - ); - } - f = message.getXmrAddressEntryList(); - if (f != null) { - writer.writeMessage( - 1001, - f, - proto.io.bisq.protobuffer.XmrAddressEntryList.serializeBinaryToWriter - ); - } - f = message.getSignedOfferList(); - if (f != null) { - writer.writeMessage( - 1002, - f, - proto.io.bisq.protobuffer.SignedOfferList.serializeBinaryToWriter - ); - } -}; - - -/** - * optional SequenceNumberMap sequence_number_map = 1; - * @return {?proto.io.bisq.protobuffer.SequenceNumberMap} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getSequenceNumberMap = function() { - return /** @type{?proto.io.bisq.protobuffer.SequenceNumberMap} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.SequenceNumberMap, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.SequenceNumberMap|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this -*/ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setSequenceNumberMap = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, 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.clearSequenceNumberMap = function() { - return this.setSequenceNumberMap(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasSequenceNumberMap = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional PersistedEntryMap persisted_entry_map = 2; - * @return {?proto.io.bisq.protobuffer.PersistedEntryMap} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getPersistedEntryMap = function() { - return /** @type{?proto.io.bisq.protobuffer.PersistedEntryMap} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PersistedEntryMap, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PersistedEntryMap|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this -*/ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setPersistedEntryMap = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, 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.clearPersistedEntryMap = function() { - return this.setPersistedEntryMap(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasPersistedEntryMap = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional PeerList peer_list = 3; - * @return {?proto.io.bisq.protobuffer.PeerList} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getPeerList = function() { - return /** @type{?proto.io.bisq.protobuffer.PeerList} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PeerList, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PeerList|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this -*/ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setPeerList = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, 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.clearPeerList = function() { - return this.setPeerList(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasPeerList = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional AddressEntryList address_entry_list = 4; - * @return {?proto.io.bisq.protobuffer.AddressEntryList} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getAddressEntryList = function() { - return /** @type{?proto.io.bisq.protobuffer.AddressEntryList} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.AddressEntryList, 4)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.AddressEntryList|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this -*/ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setAddressEntryList = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, 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.clearAddressEntryList = function() { - return this.setAddressEntryList(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasAddressEntryList = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional NavigationPath navigation_path = 5; - * @return {?proto.io.bisq.protobuffer.NavigationPath} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getNavigationPath = function() { - return /** @type{?proto.io.bisq.protobuffer.NavigationPath} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NavigationPath, 5)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NavigationPath|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this -*/ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setNavigationPath = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, 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.clearNavigationPath = function() { - return this.setNavigationPath(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasNavigationPath = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional TradableList tradable_list = 6; - * @return {?proto.io.bisq.protobuffer.TradableList} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getTradableList = function() { - return /** @type{?proto.io.bisq.protobuffer.TradableList} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TradableList, 6)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.TradableList|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this -*/ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setTradableList = function(value) { - return jspb.Message.setOneofWrapperField(this, 6, 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.clearTradableList = function() { - return this.setTradableList(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasTradableList = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional ArbitrationDisputeList arbitration_dispute_list = 8; - * @return {?proto.io.bisq.protobuffer.ArbitrationDisputeList} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getArbitrationDisputeList = function() { - return /** @type{?proto.io.bisq.protobuffer.ArbitrationDisputeList} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ArbitrationDisputeList, 8)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.ArbitrationDisputeList|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this -*/ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setArbitrationDisputeList = function(value) { - return jspb.Message.setOneofWrapperField(this, 8, 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.clearArbitrationDisputeList = function() { - return this.setArbitrationDisputeList(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasArbitrationDisputeList = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional PreferencesPayload preferences_payload = 9; - * @return {?proto.io.bisq.protobuffer.PreferencesPayload} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getPreferencesPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.PreferencesPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PreferencesPayload, 9)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PreferencesPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this -*/ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setPreferencesPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 9, 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.clearPreferencesPayload = function() { - return this.setPreferencesPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasPreferencesPayload = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional UserPayload user_payload = 10; - * @return {?proto.io.bisq.protobuffer.UserPayload} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getUserPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.UserPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.UserPayload, 10)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.UserPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this -*/ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setUserPayload = function(value) { - return jspb.Message.setOneofWrapperField(this, 10, 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.clearUserPayload = function() { - return this.setUserPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasUserPayload = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional PaymentAccountList payment_account_list = 11; - * @return {?proto.io.bisq.protobuffer.PaymentAccountList} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getPaymentAccountList = function() { - return /** @type{?proto.io.bisq.protobuffer.PaymentAccountList} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PaymentAccountList, 11)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PaymentAccountList|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this -*/ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setPaymentAccountList = function(value) { - return jspb.Message.setOneofWrapperField(this, 11, 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.clearPaymentAccountList = function() { - return this.setPaymentAccountList(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasPaymentAccountList = function() { - return jspb.Message.getField(this, 11) != null; -}; - - -/** - * optional AccountAgeWitnessStore account_age_witness_store = 12; - * @return {?proto.io.bisq.protobuffer.AccountAgeWitnessStore} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getAccountAgeWitnessStore = function() { - return /** @type{?proto.io.bisq.protobuffer.AccountAgeWitnessStore} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.AccountAgeWitnessStore, 12)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.AccountAgeWitnessStore|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this -*/ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setAccountAgeWitnessStore = function(value) { - return jspb.Message.setOneofWrapperField(this, 12, 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.clearAccountAgeWitnessStore = function() { - return this.setAccountAgeWitnessStore(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasAccountAgeWitnessStore = function() { - return jspb.Message.getField(this, 12) != null; -}; - - -/** - * optional TradeStatistics2Store trade_statistics2_store = 13; - * @return {?proto.io.bisq.protobuffer.TradeStatistics2Store} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getTradeStatistics2Store = function() { - return /** @type{?proto.io.bisq.protobuffer.TradeStatistics2Store} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TradeStatistics2Store, 13)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.TradeStatistics2Store|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this -*/ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setTradeStatistics2Store = function(value) { - return jspb.Message.setOneofWrapperField(this, 13, 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.clearTradeStatistics2Store = function() { - return this.setTradeStatistics2Store(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasTradeStatistics2Store = function() { - return jspb.Message.getField(this, 13) != null; -}; - - -/** - * optional SignedWitnessStore signed_witness_store = 15; - * @return {?proto.io.bisq.protobuffer.SignedWitnessStore} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getSignedWitnessStore = function() { - return /** @type{?proto.io.bisq.protobuffer.SignedWitnessStore} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.SignedWitnessStore, 15)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.SignedWitnessStore|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this -*/ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setSignedWitnessStore = function(value) { - return jspb.Message.setOneofWrapperField(this, 15, 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.clearSignedWitnessStore = function() { - return this.setSignedWitnessStore(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasSignedWitnessStore = function() { - return jspb.Message.getField(this, 15) != null; -}; - - -/** - * optional MediationDisputeList mediation_dispute_list = 16; - * @return {?proto.io.bisq.protobuffer.MediationDisputeList} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getMediationDisputeList = function() { - return /** @type{?proto.io.bisq.protobuffer.MediationDisputeList} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.MediationDisputeList, 16)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.MediationDisputeList|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this -*/ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setMediationDisputeList = function(value) { - return jspb.Message.setOneofWrapperField(this, 16, 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.clearMediationDisputeList = function() { - return this.setMediationDisputeList(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasMediationDisputeList = function() { - return jspb.Message.getField(this, 16) != null; -}; - - -/** - * optional RefundDisputeList refund_dispute_list = 17; - * @return {?proto.io.bisq.protobuffer.RefundDisputeList} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getRefundDisputeList = function() { - return /** @type{?proto.io.bisq.protobuffer.RefundDisputeList} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.RefundDisputeList, 17)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.RefundDisputeList|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this -*/ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setRefundDisputeList = function(value) { - return jspb.Message.setOneofWrapperField(this, 17, 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.clearRefundDisputeList = function() { - return this.setRefundDisputeList(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasRefundDisputeList = function() { - return jspb.Message.getField(this, 17) != null; -}; - - -/** - * optional TradeStatistics3Store trade_statistics3_store = 18; - * @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, 18)); -}; - - -/** - * @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, 18, 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, 18) != null; -}; - - -/** - * optional MailboxMessageList mailbox_message_list = 19; - * @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, 19)); -}; - - -/** - * @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, 19, 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, 19) != null; -}; - - -/** - * optional IgnoredMailboxMap ignored_mailbox_map = 20; - * @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, 20)); -}; - - -/** - * @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, 20, 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, 20) != null; -}; - - -/** - * optional RemovedPayloadsMap removed_payloads_map = 21; - * @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, 21)); -}; - - -/** - * @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, 21, 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, 21) != null; -}; - - -/** - * optional XmrAddressEntryList xmr_address_entry_list = 1001; - * @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, 1001)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.XmrAddressEntryList|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this -*/ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setXmrAddressEntryList = function(value) { - return jspb.Message.setOneofWrapperField(this, 1001, 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.clearXmrAddressEntryList = function() { - return this.setXmrAddressEntryList(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasXmrAddressEntryList = function() { - return jspb.Message.getField(this, 1001) != null; -}; - - -/** - * optional SignedOfferList signed_offer_list = 1002; - * @return {?proto.io.bisq.protobuffer.SignedOfferList} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getSignedOfferList = function() { - return /** @type{?proto.io.bisq.protobuffer.SignedOfferList} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.SignedOfferList, 1002)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.SignedOfferList|undefined} value - * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this -*/ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setSignedOfferList = function(value) { - return jspb.Message.setOneofWrapperField(this, 1002, 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.clearSignedOfferList = function() { - return this.setSignedOfferList(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasSignedOfferList = function() { - return jspb.Message.getField(this, 1002) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.SequenceNumberMap.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.SequenceNumberMap.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SequenceNumberMap.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.SequenceNumberMap} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SequenceNumberMap.toObject = function(includeInstance, msg) { - var f, obj = { - sequenceNumberEntriesList: jspb.Message.toObjectList(msg.getSequenceNumberEntriesList(), - proto.io.bisq.protobuffer.SequenceNumberEntry.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.SequenceNumberMap} - */ -proto.io.bisq.protobuffer.SequenceNumberMap.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SequenceNumberMap; - return proto.io.bisq.protobuffer.SequenceNumberMap.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SequenceNumberMap} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SequenceNumberMap} - */ -proto.io.bisq.protobuffer.SequenceNumberMap.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.SequenceNumberEntry; - reader.readMessage(value,proto.io.bisq.protobuffer.SequenceNumberEntry.deserializeBinaryFromReader); - msg.addSequenceNumberEntries(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SequenceNumberMap.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SequenceNumberMap.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.SequenceNumberMap} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SequenceNumberMap.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSequenceNumberEntriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.io.bisq.protobuffer.SequenceNumberEntry.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated SequenceNumberEntry sequence_number_entries = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.SequenceNumberMap.prototype.getSequenceNumberEntriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.SequenceNumberEntry, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.SequenceNumberMap} returns this -*/ -proto.io.bisq.protobuffer.SequenceNumberMap.prototype.setSequenceNumberEntriesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.SequenceNumberEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.SequenceNumberEntry} - */ -proto.io.bisq.protobuffer.SequenceNumberMap.prototype.addSequenceNumberEntries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.SequenceNumberEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.SequenceNumberMap} returns this - */ -proto.io.bisq.protobuffer.SequenceNumberMap.prototype.clearSequenceNumberEntriesList = function() { - return this.setSequenceNumberEntriesList([]); -}; - - - - - -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.SequenceNumberEntry.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SequenceNumberEntry.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.SequenceNumberEntry} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SequenceNumberEntry.toObject = function(includeInstance, msg) { - var f, obj = { - bytes: (f = msg.getBytes()) && proto.io.bisq.protobuffer.ByteArray.toObject(includeInstance, f), - mapValue: (f = msg.getMapValue()) && proto.io.bisq.protobuffer.MapValue.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.SequenceNumberEntry} - */ -proto.io.bisq.protobuffer.SequenceNumberEntry.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SequenceNumberEntry; - return proto.io.bisq.protobuffer.SequenceNumberEntry.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SequenceNumberEntry} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SequenceNumberEntry} - */ -proto.io.bisq.protobuffer.SequenceNumberEntry.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.ByteArray; - reader.readMessage(value,proto.io.bisq.protobuffer.ByteArray.deserializeBinaryFromReader); - msg.setBytes(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.MapValue; - reader.readMessage(value,proto.io.bisq.protobuffer.MapValue.deserializeBinaryFromReader); - msg.setMapValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SequenceNumberEntry.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SequenceNumberEntry.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.SequenceNumberEntry} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SequenceNumberEntry.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBytes(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.ByteArray.serializeBinaryToWriter - ); - } - f = message.getMapValue(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.MapValue.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ByteArray bytes = 1; - * @return {?proto.io.bisq.protobuffer.ByteArray} - */ -proto.io.bisq.protobuffer.SequenceNumberEntry.prototype.getBytes = function() { - return /** @type{?proto.io.bisq.protobuffer.ByteArray} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ByteArray, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.ByteArray|undefined} value - * @return {!proto.io.bisq.protobuffer.SequenceNumberEntry} returns this -*/ -proto.io.bisq.protobuffer.SequenceNumberEntry.prototype.setBytes = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.SequenceNumberEntry} returns this - */ -proto.io.bisq.protobuffer.SequenceNumberEntry.prototype.clearBytes = function() { - return this.setBytes(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.SequenceNumberEntry.prototype.hasBytes = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional MapValue map_value = 2; - * @return {?proto.io.bisq.protobuffer.MapValue} - */ -proto.io.bisq.protobuffer.SequenceNumberEntry.prototype.getMapValue = function() { - return /** @type{?proto.io.bisq.protobuffer.MapValue} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.MapValue, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.MapValue|undefined} value - * @return {!proto.io.bisq.protobuffer.SequenceNumberEntry} returns this -*/ -proto.io.bisq.protobuffer.SequenceNumberEntry.prototype.setMapValue = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.SequenceNumberEntry} returns this - */ -proto.io.bisq.protobuffer.SequenceNumberEntry.prototype.clearMapValue = function() { - return this.setMapValue(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.SequenceNumberEntry.prototype.hasMapValue = 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.ByteArray.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.ByteArray.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.ByteArray} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ByteArray.toObject = function(includeInstance, msg) { - var f, obj = { - bytes: msg.getBytes_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.ByteArray} - */ -proto.io.bisq.protobuffer.ByteArray.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.ByteArray; - return proto.io.bisq.protobuffer.ByteArray.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.ByteArray} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.ByteArray} - */ -proto.io.bisq.protobuffer.ByteArray.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setBytes(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.ByteArray.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.ByteArray.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.ByteArray} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ByteArray.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBytes_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes bytes = 1; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.ByteArray.prototype.getBytes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes bytes = 1; - * This is a type-conversion wrapper around `getBytes()` - * @return {string} - */ -proto.io.bisq.protobuffer.ByteArray.prototype.getBytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getBytes())); -}; - - -/** - * optional bytes bytes = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getBytes()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.ByteArray.prototype.getBytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getBytes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.ByteArray} returns this - */ -proto.io.bisq.protobuffer.ByteArray.prototype.setBytes = function(value) { - return jspb.Message.setProto3BytesField(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.MapValue.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.MapValue.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.MapValue} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MapValue.toObject = function(includeInstance, msg) { - var f, obj = { - sequenceNr: jspb.Message.getFieldWithDefault(msg, 1, 0), - timeStamp: jspb.Message.getFieldWithDefault(msg, 2, 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.MapValue} - */ -proto.io.bisq.protobuffer.MapValue.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.MapValue; - return proto.io.bisq.protobuffer.MapValue.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.MapValue} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.MapValue} - */ -proto.io.bisq.protobuffer.MapValue.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setSequenceNr(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTimeStamp(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.MapValue.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.MapValue.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.MapValue} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MapValue.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSequenceNr(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getTimeStamp(); - if (f !== 0) { - writer.writeInt64( - 2, - f - ); - } -}; - - -/** - * optional int32 sequence_nr = 1; - * @return {number} - */ -proto.io.bisq.protobuffer.MapValue.prototype.getSequenceNr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.MapValue} returns this - */ -proto.io.bisq.protobuffer.MapValue.prototype.setSequenceNr = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional int64 time_stamp = 2; - * @return {number} - */ -proto.io.bisq.protobuffer.MapValue.prototype.getTimeStamp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.MapValue} returns this - */ -proto.io.bisq.protobuffer.MapValue.prototype.setTimeStamp = function(value) { - return jspb.Message.setProto3IntField(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.PersistedEntryMap.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PersistedEntryMap.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.PersistedEntryMap} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PersistedEntryMap.toObject = function(includeInstance, msg) { - var f, obj = { - persistedEntryMapMap: (f = msg.getPersistedEntryMapMap()) ? f.toObject(includeInstance, proto.io.bisq.protobuffer.ProtectedStorageEntry.toObject) : [] - }; - - 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.PersistedEntryMap} - */ -proto.io.bisq.protobuffer.PersistedEntryMap.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PersistedEntryMap; - return proto.io.bisq.protobuffer.PersistedEntryMap.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PersistedEntryMap} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PersistedEntryMap} - */ -proto.io.bisq.protobuffer.PersistedEntryMap.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = msg.getPersistedEntryMapMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.io.bisq.protobuffer.ProtectedStorageEntry.deserializeBinaryFromReader, "", new proto.io.bisq.protobuffer.ProtectedStorageEntry()); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PersistedEntryMap.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PersistedEntryMap.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.PersistedEntryMap} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PersistedEntryMap.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPersistedEntryMapMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.io.bisq.protobuffer.ProtectedStorageEntry.serializeBinaryToWriter); - } -}; - - -/** - * map persisted_entry_map = 1; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.io.bisq.protobuffer.PersistedEntryMap.prototype.getPersistedEntryMapMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 1, opt_noLazyCreate, - proto.io.bisq.protobuffer.ProtectedStorageEntry)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.io.bisq.protobuffer.PersistedEntryMap} returns this - */ -proto.io.bisq.protobuffer.PersistedEntryMap.prototype.clearPersistedEntryMapMap = function() { - this.getPersistedEntryMapMap().clear(); - return this;}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.AccountAgeWitnessStore.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.AccountAgeWitnessStore.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.AccountAgeWitnessStore.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.AccountAgeWitnessStore} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AccountAgeWitnessStore.toObject = function(includeInstance, msg) { - var f, obj = { - itemsList: jspb.Message.toObjectList(msg.getItemsList(), - proto.io.bisq.protobuffer.AccountAgeWitness.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.AccountAgeWitnessStore} - */ -proto.io.bisq.protobuffer.AccountAgeWitnessStore.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.AccountAgeWitnessStore; - return proto.io.bisq.protobuffer.AccountAgeWitnessStore.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.AccountAgeWitnessStore} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.AccountAgeWitnessStore} - */ -proto.io.bisq.protobuffer.AccountAgeWitnessStore.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.AccountAgeWitness; - reader.readMessage(value,proto.io.bisq.protobuffer.AccountAgeWitness.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.AccountAgeWitnessStore.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.AccountAgeWitnessStore.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.AccountAgeWitnessStore} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AccountAgeWitnessStore.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getItemsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.io.bisq.protobuffer.AccountAgeWitness.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated AccountAgeWitness items = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.AccountAgeWitnessStore.prototype.getItemsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.AccountAgeWitness, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.AccountAgeWitnessStore} returns this -*/ -proto.io.bisq.protobuffer.AccountAgeWitnessStore.prototype.setItemsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.AccountAgeWitness=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.AccountAgeWitness} - */ -proto.io.bisq.protobuffer.AccountAgeWitnessStore.prototype.addItems = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.AccountAgeWitness, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.AccountAgeWitnessStore} returns this - */ -proto.io.bisq.protobuffer.AccountAgeWitnessStore.prototype.clearItemsList = function() { - return this.setItemsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.SignedWitnessStore.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.SignedWitnessStore.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SignedWitnessStore.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.SignedWitnessStore} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SignedWitnessStore.toObject = function(includeInstance, msg) { - var f, obj = { - itemsList: jspb.Message.toObjectList(msg.getItemsList(), - proto.io.bisq.protobuffer.SignedWitness.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.SignedWitnessStore} - */ -proto.io.bisq.protobuffer.SignedWitnessStore.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SignedWitnessStore; - return proto.io.bisq.protobuffer.SignedWitnessStore.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SignedWitnessStore} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SignedWitnessStore} - */ -proto.io.bisq.protobuffer.SignedWitnessStore.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.SignedWitness; - reader.readMessage(value,proto.io.bisq.protobuffer.SignedWitness.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.SignedWitnessStore.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SignedWitnessStore.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.SignedWitnessStore} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SignedWitnessStore.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getItemsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.io.bisq.protobuffer.SignedWitness.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated SignedWitness items = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.SignedWitnessStore.prototype.getItemsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.SignedWitness, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.SignedWitnessStore} returns this -*/ -proto.io.bisq.protobuffer.SignedWitnessStore.prototype.setItemsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.SignedWitness=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.SignedWitness} - */ -proto.io.bisq.protobuffer.SignedWitnessStore.prototype.addItems = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.SignedWitness, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.SignedWitnessStore} returns this - */ -proto.io.bisq.protobuffer.SignedWitnessStore.prototype.clearItemsList = function() { - return this.setItemsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.TradeStatistics2Store.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.TradeStatistics2Store.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.TradeStatistics2Store.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.TradeStatistics2Store} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.TradeStatistics2Store.toObject = function(includeInstance, msg) { - var f, obj = { - itemsList: jspb.Message.toObjectList(msg.getItemsList(), - proto.io.bisq.protobuffer.TradeStatistics2.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.TradeStatistics2Store} - */ -proto.io.bisq.protobuffer.TradeStatistics2Store.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.TradeStatistics2Store; - return proto.io.bisq.protobuffer.TradeStatistics2Store.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.TradeStatistics2Store} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.TradeStatistics2Store} - */ -proto.io.bisq.protobuffer.TradeStatistics2Store.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.TradeStatistics2; - reader.readMessage(value,proto.io.bisq.protobuffer.TradeStatistics2.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.TradeStatistics2Store.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.TradeStatistics2Store.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.TradeStatistics2Store} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.TradeStatistics2Store.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getItemsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.io.bisq.protobuffer.TradeStatistics2.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated TradeStatistics2 items = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.TradeStatistics2Store.prototype.getItemsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.TradeStatistics2, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.TradeStatistics2Store} returns this -*/ -proto.io.bisq.protobuffer.TradeStatistics2Store.prototype.setItemsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.TradeStatistics2=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.TradeStatistics2} - */ -proto.io.bisq.protobuffer.TradeStatistics2Store.prototype.addItems = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.TradeStatistics2, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.TradeStatistics2Store} returns this - */ -proto.io.bisq.protobuffer.TradeStatistics2Store.prototype.clearItemsList = function() { - return this.setItemsList([]); -}; - - - -/** - * 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} - * @const - */ -proto.io.bisq.protobuffer.PeerList.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.PeerList.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PeerList.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.PeerList} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PeerList.toObject = function(includeInstance, msg) { - var f, obj = { - peerList: jspb.Message.toObjectList(msg.getPeerList(), - proto.io.bisq.protobuffer.Peer.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.PeerList} - */ -proto.io.bisq.protobuffer.PeerList.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PeerList; - return proto.io.bisq.protobuffer.PeerList.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PeerList} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PeerList} - */ -proto.io.bisq.protobuffer.PeerList.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.Peer; - reader.readMessage(value,proto.io.bisq.protobuffer.Peer.deserializeBinaryFromReader); - msg.addPeer(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PeerList.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PeerList.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.PeerList} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PeerList.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPeerList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.io.bisq.protobuffer.Peer.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Peer peer = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.PeerList.prototype.getPeerList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.Peer, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.PeerList} returns this -*/ -proto.io.bisq.protobuffer.PeerList.prototype.setPeerList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.Peer=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Peer} - */ -proto.io.bisq.protobuffer.PeerList.prototype.addPeer = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.Peer, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.PeerList} returns this - */ -proto.io.bisq.protobuffer.PeerList.prototype.clearPeerList = function() { - return this.setPeerList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.AddressEntryList.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.AddressEntryList.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.AddressEntryList.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.AddressEntryList} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AddressEntryList.toObject = function(includeInstance, msg) { - var f, obj = { - addressEntryList: jspb.Message.toObjectList(msg.getAddressEntryList(), - proto.io.bisq.protobuffer.AddressEntry.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.AddressEntryList} - */ -proto.io.bisq.protobuffer.AddressEntryList.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.AddressEntryList; - return proto.io.bisq.protobuffer.AddressEntryList.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.AddressEntryList} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.AddressEntryList} - */ -proto.io.bisq.protobuffer.AddressEntryList.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.AddressEntry; - reader.readMessage(value,proto.io.bisq.protobuffer.AddressEntry.deserializeBinaryFromReader); - msg.addAddressEntry(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.AddressEntryList.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.AddressEntryList.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.AddressEntryList} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AddressEntryList.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAddressEntryList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.io.bisq.protobuffer.AddressEntry.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated AddressEntry address_entry = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.AddressEntryList.prototype.getAddressEntryList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.AddressEntry, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.AddressEntryList} returns this -*/ -proto.io.bisq.protobuffer.AddressEntryList.prototype.setAddressEntryList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.AddressEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.AddressEntry} - */ -proto.io.bisq.protobuffer.AddressEntryList.prototype.addAddressEntry = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.AddressEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.AddressEntryList} returns this - */ -proto.io.bisq.protobuffer.AddressEntryList.prototype.clearAddressEntryList = function() { - return this.setAddressEntryList([]); -}; - - - - - -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.AddressEntry.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.AddressEntry.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.AddressEntry} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AddressEntry.toObject = function(includeInstance, msg) { - var f, obj = { - offerId: jspb.Message.getFieldWithDefault(msg, 7, ""), - context: jspb.Message.getFieldWithDefault(msg, 8, 0), - pubKey: msg.getPubKey_asB64(), - pubKeyHash: msg.getPubKeyHash_asB64(), - coinLockedInMultiSig: jspb.Message.getFieldWithDefault(msg, 11, 0), - segwit: jspb.Message.getBooleanFieldWithDefault(msg, 12, 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.AddressEntry} - */ -proto.io.bisq.protobuffer.AddressEntry.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.AddressEntry; - return proto.io.bisq.protobuffer.AddressEntry.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.AddressEntry} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.AddressEntry} - */ -proto.io.bisq.protobuffer.AddressEntry.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setOfferId(value); - break; - case 8: - var value = /** @type {!proto.io.bisq.protobuffer.AddressEntry.Context} */ (reader.readEnum()); - msg.setContext(value); - break; - case 9: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPubKey(value); - break; - case 10: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPubKeyHash(value); - break; - case 11: - 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; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.AddressEntry.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.AddressEntry.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.AddressEntry} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AddressEntry.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOfferId(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getContext(); - if (f !== 0.0) { - writer.writeEnum( - 8, - f - ); - } - f = message.getPubKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 9, - f - ); - } - f = message.getPubKeyHash_asU8(); - if (f.length > 0) { - writer.writeBytes( - 10, - f - ); - } - f = message.getCoinLockedInMultiSig(); - if (f !== 0) { - writer.writeInt64( - 11, - f - ); - } - f = message.getSegwit(); - if (f) { - writer.writeBool( - 12, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.AddressEntry.Context = { - PB_ERROR: 0, - ARBITRATOR: 1, - AVAILABLE: 2, - OFFER_FUNDING: 3, - RESERVED_FOR_TRADE: 4, - MULTI_SIG: 5, - TRADE_PAYOUT: 6 -}; - -/** - * optional string offer_id = 7; - * @return {string} - */ -proto.io.bisq.protobuffer.AddressEntry.prototype.getOfferId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.AddressEntry} returns this - */ -proto.io.bisq.protobuffer.AddressEntry.prototype.setOfferId = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional Context context = 8; - * @return {!proto.io.bisq.protobuffer.AddressEntry.Context} - */ -proto.io.bisq.protobuffer.AddressEntry.prototype.getContext = function() { - return /** @type {!proto.io.bisq.protobuffer.AddressEntry.Context} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.AddressEntry.Context} value - * @return {!proto.io.bisq.protobuffer.AddressEntry} returns this - */ -proto.io.bisq.protobuffer.AddressEntry.prototype.setContext = function(value) { - return jspb.Message.setProto3EnumField(this, 8, value); -}; - - -/** - * optional bytes pub_key = 9; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.AddressEntry.prototype.getPubKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * optional bytes pub_key = 9; - * This is a type-conversion wrapper around `getPubKey()` - * @return {string} - */ -proto.io.bisq.protobuffer.AddressEntry.prototype.getPubKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPubKey())); -}; - - -/** - * optional bytes pub_key = 9; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPubKey()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.AddressEntry.prototype.getPubKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPubKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.AddressEntry} returns this - */ -proto.io.bisq.protobuffer.AddressEntry.prototype.setPubKey = function(value) { - return jspb.Message.setProto3BytesField(this, 9, value); -}; - - -/** - * optional bytes pub_key_hash = 10; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.AddressEntry.prototype.getPubKeyHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * optional bytes pub_key_hash = 10; - * This is a type-conversion wrapper around `getPubKeyHash()` - * @return {string} - */ -proto.io.bisq.protobuffer.AddressEntry.prototype.getPubKeyHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPubKeyHash())); -}; - - -/** - * optional bytes pub_key_hash = 10; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPubKeyHash()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.AddressEntry.prototype.getPubKeyHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPubKeyHash())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.AddressEntry} returns this - */ -proto.io.bisq.protobuffer.AddressEntry.prototype.setPubKeyHash = function(value) { - return jspb.Message.setProto3BytesField(this, 10, value); -}; - - -/** - * optional int64 coin_locked_in_multi_sig = 11; - * @return {number} - */ -proto.io.bisq.protobuffer.AddressEntry.prototype.getCoinLockedInMultiSig = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.AddressEntry} returns this - */ -proto.io.bisq.protobuffer.AddressEntry.prototype.setCoinLockedInMultiSig = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * 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. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.XmrAddressEntryList.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.XmrAddressEntryList.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.XmrAddressEntryList.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.XmrAddressEntryList} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.XmrAddressEntryList.toObject = function(includeInstance, msg) { - var f, obj = { - xmrAddressEntryList: jspb.Message.toObjectList(msg.getXmrAddressEntryList(), - proto.io.bisq.protobuffer.XmrAddressEntry.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.XmrAddressEntryList} - */ -proto.io.bisq.protobuffer.XmrAddressEntryList.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.XmrAddressEntryList; - return proto.io.bisq.protobuffer.XmrAddressEntryList.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.XmrAddressEntryList} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.XmrAddressEntryList} - */ -proto.io.bisq.protobuffer.XmrAddressEntryList.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.XmrAddressEntry; - reader.readMessage(value,proto.io.bisq.protobuffer.XmrAddressEntry.deserializeBinaryFromReader); - msg.addXmrAddressEntry(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.XmrAddressEntryList.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.XmrAddressEntryList.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.XmrAddressEntryList} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.XmrAddressEntryList.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getXmrAddressEntryList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.io.bisq.protobuffer.XmrAddressEntry.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated XmrAddressEntry xmr_address_entry = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.XmrAddressEntryList.prototype.getXmrAddressEntryList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.XmrAddressEntry, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.XmrAddressEntryList} returns this -*/ -proto.io.bisq.protobuffer.XmrAddressEntryList.prototype.setXmrAddressEntryList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.XmrAddressEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.XmrAddressEntry} - */ -proto.io.bisq.protobuffer.XmrAddressEntryList.prototype.addXmrAddressEntry = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.XmrAddressEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.XmrAddressEntryList} returns this - */ -proto.io.bisq.protobuffer.XmrAddressEntryList.prototype.clearXmrAddressEntryList = function() { - return this.setXmrAddressEntryList([]); -}; - - - - - -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.XmrAddressEntry.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.XmrAddressEntry.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.XmrAddressEntry} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.XmrAddressEntry.toObject = function(includeInstance, msg) { - var f, obj = { - subaddressIndex: jspb.Message.getFieldWithDefault(msg, 7, 0), - addressString: jspb.Message.getFieldWithDefault(msg, 8, ""), - offerId: jspb.Message.getFieldWithDefault(msg, 9, ""), - context: jspb.Message.getFieldWithDefault(msg, 10, 0), - coinLockedInMultiSig: jspb.Message.getFieldWithDefault(msg, 11, 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.XmrAddressEntry} - */ -proto.io.bisq.protobuffer.XmrAddressEntry.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.XmrAddressEntry; - return proto.io.bisq.protobuffer.XmrAddressEntry.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.XmrAddressEntry} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.XmrAddressEntry} - */ -proto.io.bisq.protobuffer.XmrAddressEntry.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 7: - var value = /** @type {number} */ (reader.readInt32()); - msg.setSubaddressIndex(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setAddressString(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setOfferId(value); - break; - case 10: - var value = /** @type {!proto.io.bisq.protobuffer.XmrAddressEntry.Context} */ (reader.readEnum()); - msg.setContext(value); - break; - case 11: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCoinLockedInMultiSig(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.XmrAddressEntry.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.XmrAddressEntry.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.XmrAddressEntry} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.XmrAddressEntry.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSubaddressIndex(); - if (f !== 0) { - writer.writeInt32( - 7, - f - ); - } - f = message.getAddressString(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getOfferId(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getContext(); - if (f !== 0.0) { - writer.writeEnum( - 10, - f - ); - } - f = message.getCoinLockedInMultiSig(); - if (f !== 0) { - writer.writeInt64( - 11, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.XmrAddressEntry.Context = { - PB_ERROR: 0, - ARBITRATOR: 1, - AVAILABLE: 2, - OFFER_FUNDING: 3, - RESERVED_FOR_TRADE: 4, - MULTI_SIG: 5, - TRADE_PAYOUT: 6 -}; - -/** - * optional int32 subaddress_index = 7; - * @return {number} - */ -proto.io.bisq.protobuffer.XmrAddressEntry.prototype.getSubaddressIndex = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.XmrAddressEntry} returns this - */ -proto.io.bisq.protobuffer.XmrAddressEntry.prototype.setSubaddressIndex = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional string address_string = 8; - * @return {string} - */ -proto.io.bisq.protobuffer.XmrAddressEntry.prototype.getAddressString = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.XmrAddressEntry} returns this - */ -proto.io.bisq.protobuffer.XmrAddressEntry.prototype.setAddressString = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string offer_id = 9; - * @return {string} - */ -proto.io.bisq.protobuffer.XmrAddressEntry.prototype.getOfferId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.XmrAddressEntry} returns this - */ -proto.io.bisq.protobuffer.XmrAddressEntry.prototype.setOfferId = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional Context context = 10; - * @return {!proto.io.bisq.protobuffer.XmrAddressEntry.Context} - */ -proto.io.bisq.protobuffer.XmrAddressEntry.prototype.getContext = function() { - return /** @type {!proto.io.bisq.protobuffer.XmrAddressEntry.Context} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.XmrAddressEntry.Context} value - * @return {!proto.io.bisq.protobuffer.XmrAddressEntry} returns this - */ -proto.io.bisq.protobuffer.XmrAddressEntry.prototype.setContext = function(value) { - return jspb.Message.setProto3EnumField(this, 10, value); -}; - - -/** - * optional int64 coin_locked_in_multi_sig = 11; - * @return {number} - */ -proto.io.bisq.protobuffer.XmrAddressEntry.prototype.getCoinLockedInMultiSig = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.XmrAddressEntry} returns this - */ -proto.io.bisq.protobuffer.XmrAddressEntry.prototype.setCoinLockedInMultiSig = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.NavigationPath.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.NavigationPath.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.NavigationPath.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.NavigationPath} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.NavigationPath.toObject = function(includeInstance, msg) { - var f, obj = { - pathList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : 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.NavigationPath} - */ -proto.io.bisq.protobuffer.NavigationPath.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.NavigationPath; - return proto.io.bisq.protobuffer.NavigationPath.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.NavigationPath} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.NavigationPath} - */ -proto.io.bisq.protobuffer.NavigationPath.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.addPath(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.NavigationPath.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.NavigationPath.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.NavigationPath} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.NavigationPath.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPathList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } -}; - - -/** - * repeated string path = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.NavigationPath.prototype.getPathList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.NavigationPath} returns this - */ -proto.io.bisq.protobuffer.NavigationPath.prototype.setPathList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.NavigationPath} returns this - */ -proto.io.bisq.protobuffer.NavigationPath.prototype.addPath = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.NavigationPath} returns this - */ -proto.io.bisq.protobuffer.NavigationPath.prototype.clearPathList = function() { - return this.setPathList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.PaymentAccountList.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.PaymentAccountList.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PaymentAccountList.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.PaymentAccountList} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PaymentAccountList.toObject = function(includeInstance, msg) { - var f, obj = { - paymentAccountList: jspb.Message.toObjectList(msg.getPaymentAccountList(), - proto.io.bisq.protobuffer.PaymentAccount.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.PaymentAccountList} - */ -proto.io.bisq.protobuffer.PaymentAccountList.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PaymentAccountList; - return proto.io.bisq.protobuffer.PaymentAccountList.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PaymentAccountList} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PaymentAccountList} - */ -proto.io.bisq.protobuffer.PaymentAccountList.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.PaymentAccount; - reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccount.deserializeBinaryFromReader); - msg.addPaymentAccount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PaymentAccountList.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PaymentAccountList.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.PaymentAccountList} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PaymentAccountList.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPaymentAccountList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.io.bisq.protobuffer.PaymentAccount.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated PaymentAccount payment_account = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.PaymentAccountList.prototype.getPaymentAccountList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.PaymentAccount, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.PaymentAccountList} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccountList.prototype.setPaymentAccountList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.PaymentAccount=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.PaymentAccount} - */ -proto.io.bisq.protobuffer.PaymentAccountList.prototype.addPaymentAccount = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.PaymentAccount, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.PaymentAccountList} returns this - */ -proto.io.bisq.protobuffer.PaymentAccountList.prototype.clearPaymentAccountList = function() { - return this.setPaymentAccountList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.TradableList.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.TradableList.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.TradableList.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.TradableList} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.TradableList.toObject = function(includeInstance, msg) { - var f, obj = { - tradableList: jspb.Message.toObjectList(msg.getTradableList(), - proto.io.bisq.protobuffer.Tradable.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.TradableList} - */ -proto.io.bisq.protobuffer.TradableList.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.TradableList; - return proto.io.bisq.protobuffer.TradableList.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.TradableList} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.TradableList} - */ -proto.io.bisq.protobuffer.TradableList.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.Tradable; - reader.readMessage(value,proto.io.bisq.protobuffer.Tradable.deserializeBinaryFromReader); - msg.addTradable(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.TradableList.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.TradableList.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.TradableList} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.TradableList.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTradableList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.io.bisq.protobuffer.Tradable.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Tradable tradable = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.TradableList.prototype.getTradableList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.Tradable, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.TradableList} returns this -*/ -proto.io.bisq.protobuffer.TradableList.prototype.setTradableList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.Tradable=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Tradable} - */ -proto.io.bisq.protobuffer.TradableList.prototype.addTradable = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.Tradable, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.TradableList} returns this - */ -proto.io.bisq.protobuffer.TradableList.prototype.clearTradableList = function() { - return this.setTradableList([]); -}; - - - - - -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.Offer.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.Offer.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.Offer} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Offer.toObject = function(includeInstance, msg) { - var f, obj = { - offerPayload: (f = msg.getOfferPayload()) && proto.io.bisq.protobuffer.OfferPayload.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.Offer} - */ -proto.io.bisq.protobuffer.Offer.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.Offer; - return proto.io.bisq.protobuffer.Offer.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.Offer} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.Offer} - */ -proto.io.bisq.protobuffer.Offer.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.OfferPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.OfferPayload.deserializeBinaryFromReader); - msg.setOfferPayload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Offer.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.Offer.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.Offer} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Offer.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOfferPayload(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.OfferPayload.serializeBinaryToWriter - ); - } -}; - - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.Offer.State = { - PB_ERROR: 0, - UNKNOWN: 1, - OFFER_FEE_PAID: 2, - AVAILABLE: 3, - NOT_AVAILABLE: 4, - REMOVED: 5, - MAKER_OFFLINE: 6 -}; - -/** - * optional OfferPayload offer_payload = 1; - * @return {?proto.io.bisq.protobuffer.OfferPayload} - */ -proto.io.bisq.protobuffer.Offer.prototype.getOfferPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.OfferPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.OfferPayload, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.OfferPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.Offer} returns this -*/ -proto.io.bisq.protobuffer.Offer.prototype.setOfferPayload = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Offer} returns this - */ -proto.io.bisq.protobuffer.Offer.prototype.clearOfferPayload = function() { - return this.setOfferPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Offer.prototype.hasOfferPayload = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.SignedOfferList.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.SignedOfferList.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SignedOfferList.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.SignedOfferList} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SignedOfferList.toObject = function(includeInstance, msg) { - var f, obj = { - signedOfferList: jspb.Message.toObjectList(msg.getSignedOfferList(), - proto.io.bisq.protobuffer.SignedOffer.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.SignedOfferList} - */ -proto.io.bisq.protobuffer.SignedOfferList.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SignedOfferList; - return proto.io.bisq.protobuffer.SignedOfferList.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SignedOfferList} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SignedOfferList} - */ -proto.io.bisq.protobuffer.SignedOfferList.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.SignedOffer; - reader.readMessage(value,proto.io.bisq.protobuffer.SignedOffer.deserializeBinaryFromReader); - msg.addSignedOffer(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SignedOfferList.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SignedOfferList.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.SignedOfferList} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SignedOfferList.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSignedOfferList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.io.bisq.protobuffer.SignedOffer.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated SignedOffer signed_offer = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.SignedOfferList.prototype.getSignedOfferList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.SignedOffer, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.SignedOfferList} returns this -*/ -proto.io.bisq.protobuffer.SignedOfferList.prototype.setSignedOfferList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.SignedOffer=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.SignedOffer} - */ -proto.io.bisq.protobuffer.SignedOfferList.prototype.addSignedOffer = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.SignedOffer, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.SignedOfferList} returns this - */ -proto.io.bisq.protobuffer.SignedOfferList.prototype.clearSignedOfferList = function() { - return this.setSignedOfferList([]); -}; - - - - - -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.SignedOffer.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SignedOffer.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.SignedOffer} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SignedOffer.toObject = function(includeInstance, msg) { - var f, obj = { - offerId: jspb.Message.getFieldWithDefault(msg, 1, ""), - reserveTxHash: jspb.Message.getFieldWithDefault(msg, 2, ""), - reserveTxHex: jspb.Message.getFieldWithDefault(msg, 3, ""), - arbitratorSignature: 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.SignedOffer} - */ -proto.io.bisq.protobuffer.SignedOffer.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SignedOffer; - return proto.io.bisq.protobuffer.SignedOffer.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SignedOffer} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SignedOffer} - */ -proto.io.bisq.protobuffer.SignedOffer.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.setOfferId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setReserveTxHash(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setReserveTxHex(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setArbitratorSignature(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.SignedOffer.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SignedOffer.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.SignedOffer} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SignedOffer.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOfferId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getReserveTxHash(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getReserveTxHex(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getArbitratorSignature(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string offer_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.SignedOffer.prototype.getOfferId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignedOffer} returns this - */ -proto.io.bisq.protobuffer.SignedOffer.prototype.setOfferId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string reserve_tx_hash = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.SignedOffer.prototype.getReserveTxHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignedOffer} returns this - */ -proto.io.bisq.protobuffer.SignedOffer.prototype.setReserveTxHash = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string reserve_tx_hex = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.SignedOffer.prototype.getReserveTxHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignedOffer} returns this - */ -proto.io.bisq.protobuffer.SignedOffer.prototype.setReserveTxHex = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string arbitrator_signature = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.SignedOffer.prototype.getArbitratorSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.SignedOffer} returns this - */ -proto.io.bisq.protobuffer.SignedOffer.prototype.setArbitratorSignature = 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.OpenOffer.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.OpenOffer.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.OpenOffer} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.OpenOffer.toObject = function(includeInstance, msg) { - var f, obj = { - offer: (f = msg.getOffer()) && proto.io.bisq.protobuffer.Offer.toObject(includeInstance, f), - state: jspb.Message.getFieldWithDefault(msg, 2, 0), - backupArbitrator: (f = msg.getBackupArbitrator()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - triggerPrice: jspb.Message.getFieldWithDefault(msg, 4, 0), - reserveTxHash: jspb.Message.getFieldWithDefault(msg, 5, ""), - reserveTxHex: jspb.Message.getFieldWithDefault(msg, 6, ""), - reserveTxKey: 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.OpenOffer} - */ -proto.io.bisq.protobuffer.OpenOffer.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.OpenOffer; - return proto.io.bisq.protobuffer.OpenOffer.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.OpenOffer} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.OpenOffer} - */ -proto.io.bisq.protobuffer.OpenOffer.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.Offer; - reader.readMessage(value,proto.io.bisq.protobuffer.Offer.deserializeBinaryFromReader); - msg.setOffer(value); - break; - case 2: - var value = /** @type {!proto.io.bisq.protobuffer.OpenOffer.State} */ (reader.readEnum()); - msg.setState(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setBackupArbitrator(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTriggerPrice(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setReserveTxHash(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setReserveTxHex(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setReserveTxKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.OpenOffer.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.OpenOffer.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.OpenOffer} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.OpenOffer.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffer(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.Offer.serializeBinaryToWriter - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getBackupArbitrator(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getTriggerPrice(); - if (f !== 0) { - writer.writeInt64( - 4, - f - ); - } - f = message.getReserveTxHash(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getReserveTxHex(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getReserveTxKey(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.OpenOffer.State = { - PB_ERROR: 0, - AVAILABLE: 1, - RESERVED: 2, - CLOSED: 3, - CANCELED: 4, - DEACTIVATED: 5 -}; - -/** - * optional Offer offer = 1; - * @return {?proto.io.bisq.protobuffer.Offer} - */ -proto.io.bisq.protobuffer.OpenOffer.prototype.getOffer = function() { - return /** @type{?proto.io.bisq.protobuffer.Offer} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Offer, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Offer|undefined} value - * @return {!proto.io.bisq.protobuffer.OpenOffer} returns this -*/ -proto.io.bisq.protobuffer.OpenOffer.prototype.setOffer = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.OpenOffer} returns this - */ -proto.io.bisq.protobuffer.OpenOffer.prototype.clearOffer = function() { - return this.setOffer(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.OpenOffer.prototype.hasOffer = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional State state = 2; - * @return {!proto.io.bisq.protobuffer.OpenOffer.State} - */ -proto.io.bisq.protobuffer.OpenOffer.prototype.getState = function() { - return /** @type {!proto.io.bisq.protobuffer.OpenOffer.State} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.OpenOffer.State} value - * @return {!proto.io.bisq.protobuffer.OpenOffer} returns this - */ -proto.io.bisq.protobuffer.OpenOffer.prototype.setState = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional NodeAddress backup_arbitrator = 3; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.OpenOffer.prototype.getBackupArbitrator = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.OpenOffer} returns this -*/ -proto.io.bisq.protobuffer.OpenOffer.prototype.setBackupArbitrator = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.OpenOffer} returns this - */ -proto.io.bisq.protobuffer.OpenOffer.prototype.clearBackupArbitrator = function() { - return this.setBackupArbitrator(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.OpenOffer.prototype.hasBackupArbitrator = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional int64 trigger_price = 4; - * @return {number} - */ -proto.io.bisq.protobuffer.OpenOffer.prototype.getTriggerPrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 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, 4, value); -}; - - -/** - * optional string reserve_tx_hash = 5; - * @return {string} - */ -proto.io.bisq.protobuffer.OpenOffer.prototype.getReserveTxHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OpenOffer} returns this - */ -proto.io.bisq.protobuffer.OpenOffer.prototype.setReserveTxHash = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string reserve_tx_hex = 6; - * @return {string} - */ -proto.io.bisq.protobuffer.OpenOffer.prototype.getReserveTxHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OpenOffer} returns this - */ -proto.io.bisq.protobuffer.OpenOffer.prototype.setReserveTxHex = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string reserve_tx_key = 7; - * @return {string} - */ -proto.io.bisq.protobuffer.OpenOffer.prototype.getReserveTxKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.OpenOffer} returns this - */ -proto.io.bisq.protobuffer.OpenOffer.prototype.setReserveTxKey = function(value) { - return jspb.Message.setProto3StringField(this, 7, 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 - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.io.bisq.protobuffer.Tradable.oneofGroups_ = [[1,2,3,4,5,6,1001]]; - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.Tradable.MessageCase = { - MESSAGE_NOT_SET: 0, - OPEN_OFFER: 1, - BUYER_AS_MAKER_TRADE: 2, - BUYER_AS_TAKER_TRADE: 3, - SELLER_AS_MAKER_TRADE: 4, - SELLER_AS_TAKER_TRADE: 5, - ARBITRATOR_TRADE: 6, - SIGNED_OFFER: 1001 -}; - -/** - * @return {proto.io.bisq.protobuffer.Tradable.MessageCase} - */ -proto.io.bisq.protobuffer.Tradable.prototype.getMessageCase = function() { - return /** @type {proto.io.bisq.protobuffer.Tradable.MessageCase} */(jspb.Message.computeOneofCase(this, proto.io.bisq.protobuffer.Tradable.oneofGroups_[0])); -}; - - - -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.Tradable.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.Tradable.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.Tradable} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Tradable.toObject = function(includeInstance, msg) { - var f, obj = { - openOffer: (f = msg.getOpenOffer()) && proto.io.bisq.protobuffer.OpenOffer.toObject(includeInstance, f), - buyerAsMakerTrade: (f = msg.getBuyerAsMakerTrade()) && proto.io.bisq.protobuffer.BuyerAsMakerTrade.toObject(includeInstance, f), - buyerAsTakerTrade: (f = msg.getBuyerAsTakerTrade()) && proto.io.bisq.protobuffer.BuyerAsTakerTrade.toObject(includeInstance, f), - sellerAsMakerTrade: (f = msg.getSellerAsMakerTrade()) && proto.io.bisq.protobuffer.SellerAsMakerTrade.toObject(includeInstance, f), - sellerAsTakerTrade: (f = msg.getSellerAsTakerTrade()) && proto.io.bisq.protobuffer.SellerAsTakerTrade.toObject(includeInstance, f), - arbitratorTrade: (f = msg.getArbitratorTrade()) && proto.io.bisq.protobuffer.ArbitratorTrade.toObject(includeInstance, f), - signedOffer: (f = msg.getSignedOffer()) && proto.io.bisq.protobuffer.SignedOffer.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.Tradable} - */ -proto.io.bisq.protobuffer.Tradable.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.Tradable; - return proto.io.bisq.protobuffer.Tradable.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.Tradable} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.Tradable} - */ -proto.io.bisq.protobuffer.Tradable.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.OpenOffer; - reader.readMessage(value,proto.io.bisq.protobuffer.OpenOffer.deserializeBinaryFromReader); - msg.setOpenOffer(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.BuyerAsMakerTrade; - reader.readMessage(value,proto.io.bisq.protobuffer.BuyerAsMakerTrade.deserializeBinaryFromReader); - msg.setBuyerAsMakerTrade(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.BuyerAsTakerTrade; - reader.readMessage(value,proto.io.bisq.protobuffer.BuyerAsTakerTrade.deserializeBinaryFromReader); - msg.setBuyerAsTakerTrade(value); - break; - case 4: - var value = new proto.io.bisq.protobuffer.SellerAsMakerTrade; - reader.readMessage(value,proto.io.bisq.protobuffer.SellerAsMakerTrade.deserializeBinaryFromReader); - msg.setSellerAsMakerTrade(value); - break; - case 5: - var value = new proto.io.bisq.protobuffer.SellerAsTakerTrade; - reader.readMessage(value,proto.io.bisq.protobuffer.SellerAsTakerTrade.deserializeBinaryFromReader); - msg.setSellerAsTakerTrade(value); - break; - case 6: - var value = new proto.io.bisq.protobuffer.ArbitratorTrade; - reader.readMessage(value,proto.io.bisq.protobuffer.ArbitratorTrade.deserializeBinaryFromReader); - msg.setArbitratorTrade(value); - break; - case 1001: - var value = new proto.io.bisq.protobuffer.SignedOffer; - reader.readMessage(value,proto.io.bisq.protobuffer.SignedOffer.deserializeBinaryFromReader); - msg.setSignedOffer(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Tradable.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.Tradable.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.Tradable} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Tradable.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOpenOffer(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.OpenOffer.serializeBinaryToWriter - ); - } - f = message.getBuyerAsMakerTrade(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.BuyerAsMakerTrade.serializeBinaryToWriter - ); - } - f = message.getBuyerAsTakerTrade(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.BuyerAsTakerTrade.serializeBinaryToWriter - ); - } - f = message.getSellerAsMakerTrade(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.io.bisq.protobuffer.SellerAsMakerTrade.serializeBinaryToWriter - ); - } - f = message.getSellerAsTakerTrade(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.io.bisq.protobuffer.SellerAsTakerTrade.serializeBinaryToWriter - ); - } - f = message.getArbitratorTrade(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.io.bisq.protobuffer.ArbitratorTrade.serializeBinaryToWriter - ); - } - f = message.getSignedOffer(); - if (f != null) { - writer.writeMessage( - 1001, - f, - proto.io.bisq.protobuffer.SignedOffer.serializeBinaryToWriter - ); - } -}; - - -/** - * optional OpenOffer open_offer = 1; - * @return {?proto.io.bisq.protobuffer.OpenOffer} - */ -proto.io.bisq.protobuffer.Tradable.prototype.getOpenOffer = function() { - return /** @type{?proto.io.bisq.protobuffer.OpenOffer} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.OpenOffer, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.OpenOffer|undefined} value - * @return {!proto.io.bisq.protobuffer.Tradable} returns this -*/ -proto.io.bisq.protobuffer.Tradable.prototype.setOpenOffer = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.io.bisq.protobuffer.Tradable.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Tradable} returns this - */ -proto.io.bisq.protobuffer.Tradable.prototype.clearOpenOffer = function() { - return this.setOpenOffer(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Tradable.prototype.hasOpenOffer = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional BuyerAsMakerTrade buyer_as_maker_trade = 2; - * @return {?proto.io.bisq.protobuffer.BuyerAsMakerTrade} - */ -proto.io.bisq.protobuffer.Tradable.prototype.getBuyerAsMakerTrade = function() { - return /** @type{?proto.io.bisq.protobuffer.BuyerAsMakerTrade} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.BuyerAsMakerTrade, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.BuyerAsMakerTrade|undefined} value - * @return {!proto.io.bisq.protobuffer.Tradable} returns this -*/ -proto.io.bisq.protobuffer.Tradable.prototype.setBuyerAsMakerTrade = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.io.bisq.protobuffer.Tradable.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Tradable} returns this - */ -proto.io.bisq.protobuffer.Tradable.prototype.clearBuyerAsMakerTrade = function() { - return this.setBuyerAsMakerTrade(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Tradable.prototype.hasBuyerAsMakerTrade = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional BuyerAsTakerTrade buyer_as_taker_trade = 3; - * @return {?proto.io.bisq.protobuffer.BuyerAsTakerTrade} - */ -proto.io.bisq.protobuffer.Tradable.prototype.getBuyerAsTakerTrade = function() { - return /** @type{?proto.io.bisq.protobuffer.BuyerAsTakerTrade} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.BuyerAsTakerTrade, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.BuyerAsTakerTrade|undefined} value - * @return {!proto.io.bisq.protobuffer.Tradable} returns this -*/ -proto.io.bisq.protobuffer.Tradable.prototype.setBuyerAsTakerTrade = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.io.bisq.protobuffer.Tradable.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Tradable} returns this - */ -proto.io.bisq.protobuffer.Tradable.prototype.clearBuyerAsTakerTrade = function() { - return this.setBuyerAsTakerTrade(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Tradable.prototype.hasBuyerAsTakerTrade = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional SellerAsMakerTrade seller_as_maker_trade = 4; - * @return {?proto.io.bisq.protobuffer.SellerAsMakerTrade} - */ -proto.io.bisq.protobuffer.Tradable.prototype.getSellerAsMakerTrade = function() { - return /** @type{?proto.io.bisq.protobuffer.SellerAsMakerTrade} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.SellerAsMakerTrade, 4)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.SellerAsMakerTrade|undefined} value - * @return {!proto.io.bisq.protobuffer.Tradable} returns this -*/ -proto.io.bisq.protobuffer.Tradable.prototype.setSellerAsMakerTrade = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.io.bisq.protobuffer.Tradable.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Tradable} returns this - */ -proto.io.bisq.protobuffer.Tradable.prototype.clearSellerAsMakerTrade = function() { - return this.setSellerAsMakerTrade(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Tradable.prototype.hasSellerAsMakerTrade = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional SellerAsTakerTrade seller_as_taker_trade = 5; - * @return {?proto.io.bisq.protobuffer.SellerAsTakerTrade} - */ -proto.io.bisq.protobuffer.Tradable.prototype.getSellerAsTakerTrade = function() { - return /** @type{?proto.io.bisq.protobuffer.SellerAsTakerTrade} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.SellerAsTakerTrade, 5)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.SellerAsTakerTrade|undefined} value - * @return {!proto.io.bisq.protobuffer.Tradable} returns this -*/ -proto.io.bisq.protobuffer.Tradable.prototype.setSellerAsTakerTrade = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.io.bisq.protobuffer.Tradable.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Tradable} returns this - */ -proto.io.bisq.protobuffer.Tradable.prototype.clearSellerAsTakerTrade = function() { - return this.setSellerAsTakerTrade(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Tradable.prototype.hasSellerAsTakerTrade = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional ArbitratorTrade arbitrator_trade = 6; - * @return {?proto.io.bisq.protobuffer.ArbitratorTrade} - */ -proto.io.bisq.protobuffer.Tradable.prototype.getArbitratorTrade = function() { - return /** @type{?proto.io.bisq.protobuffer.ArbitratorTrade} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ArbitratorTrade, 6)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.ArbitratorTrade|undefined} value - * @return {!proto.io.bisq.protobuffer.Tradable} returns this -*/ -proto.io.bisq.protobuffer.Tradable.prototype.setArbitratorTrade = function(value) { - return jspb.Message.setOneofWrapperField(this, 6, proto.io.bisq.protobuffer.Tradable.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Tradable} returns this - */ -proto.io.bisq.protobuffer.Tradable.prototype.clearArbitratorTrade = function() { - return this.setArbitratorTrade(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Tradable.prototype.hasArbitratorTrade = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional SignedOffer signed_offer = 1001; - * @return {?proto.io.bisq.protobuffer.SignedOffer} - */ -proto.io.bisq.protobuffer.Tradable.prototype.getSignedOffer = function() { - return /** @type{?proto.io.bisq.protobuffer.SignedOffer} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.SignedOffer, 1001)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.SignedOffer|undefined} value - * @return {!proto.io.bisq.protobuffer.Tradable} returns this -*/ -proto.io.bisq.protobuffer.Tradable.prototype.setSignedOffer = function(value) { - return jspb.Message.setOneofWrapperField(this, 1001, proto.io.bisq.protobuffer.Tradable.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Tradable} returns this - */ -proto.io.bisq.protobuffer.Tradable.prototype.clearSignedOffer = function() { - return this.setSignedOffer(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Tradable.prototype.hasSignedOffer = function() { - return jspb.Message.getField(this, 1001) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.Trade.repeatedFields_ = [25]; - - - -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.Trade.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.Trade.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.Trade} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Trade.toObject = function(includeInstance, msg) { - var f, obj = { - offer: (f = msg.getOffer()) && proto.io.bisq.protobuffer.Offer.toObject(includeInstance, f), - processModel: (f = msg.getProcessModel()) && proto.io.bisq.protobuffer.ProcessModel.toObject(includeInstance, f), - takerFeeTxId: jspb.Message.getFieldWithDefault(msg, 3, ""), - payoutTxId: jspb.Message.getFieldWithDefault(msg, 5, ""), - tradeAmountAsLong: jspb.Message.getFieldWithDefault(msg, 6, 0), - txFeeAsLong: jspb.Message.getFieldWithDefault(msg, 7, 0), - takerFeeAsLong: jspb.Message.getFieldWithDefault(msg, 8, 0), - takeOfferDate: jspb.Message.getFieldWithDefault(msg, 9, 0), - tradePrice: jspb.Message.getFieldWithDefault(msg, 10, 0), - state: jspb.Message.getFieldWithDefault(msg, 11, 0), - disputeState: jspb.Message.getFieldWithDefault(msg, 12, 0), - tradePeriodState: jspb.Message.getFieldWithDefault(msg, 13, 0), - contract: (f = msg.getContract()) && proto.io.bisq.protobuffer.Contract.toObject(includeInstance, f), - contractAsJson: jspb.Message.getFieldWithDefault(msg, 15, ""), - contractHash: msg.getContractHash_asB64(), - arbitratorNodeAddress: (f = msg.getArbitratorNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - mediatorNodeAddress: (f = msg.getMediatorNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - arbitratorBtcPubKey: msg.getArbitratorBtcPubKey_asB64(), - takerPaymentAccountId: jspb.Message.getFieldWithDefault(msg, 20, ""), - errorMessage: jspb.Message.getFieldWithDefault(msg, 21, ""), - arbitratorPubKeyRing: (f = msg.getArbitratorPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - mediatorPubKeyRing: (f = msg.getMediatorPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - counterCurrencyTxId: jspb.Message.getFieldWithDefault(msg, 24, ""), - chatMessageList: jspb.Message.toObjectList(msg.getChatMessageList(), - proto.io.bisq.protobuffer.ChatMessage.toObject, includeInstance), - mediationResultState: jspb.Message.getFieldWithDefault(msg, 26, 0), - lockTime: jspb.Message.getFieldWithDefault(msg, 27, 0), - delayedPayoutTxBytes: msg.getDelayedPayoutTxBytes_asB64(), - refundAgentNodeAddress: (f = msg.getRefundAgentNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - refundAgentPubKeyRing: (f = msg.getRefundAgentPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - refundResultState: jspb.Message.getFieldWithDefault(msg, 31, 0), - lastRefreshRequestDate: jspb.Message.getFieldWithDefault(msg, 32, 0), - counterCurrencyExtraData: jspb.Message.getFieldWithDefault(msg, 33, ""), - assetTxProofResult: jspb.Message.getFieldWithDefault(msg, 34, ""), - uid: jspb.Message.getFieldWithDefault(msg, 35, ""), - makerNodeAddress: (f = msg.getMakerNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - takerNodeAddress: (f = msg.getTakerNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - takerPubKeyRing: (f = msg.getTakerPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - makerPubKeyRing: (f = msg.getMakerPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.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.Trade} - */ -proto.io.bisq.protobuffer.Trade.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.Trade; - return proto.io.bisq.protobuffer.Trade.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.Trade} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.Trade} - */ -proto.io.bisq.protobuffer.Trade.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.Offer; - reader.readMessage(value,proto.io.bisq.protobuffer.Offer.deserializeBinaryFromReader); - msg.setOffer(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.ProcessModel; - reader.readMessage(value,proto.io.bisq.protobuffer.ProcessModel.deserializeBinaryFromReader); - msg.setProcessModel(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setTakerFeeTxId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setPayoutTxId(value); - break; - case 6: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTradeAmountAsLong(value); - break; - case 7: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTxFeeAsLong(value); - break; - case 8: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTakerFeeAsLong(value); - break; - case 9: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTakeOfferDate(value); - break; - case 10: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTradePrice(value); - break; - case 11: - var value = /** @type {!proto.io.bisq.protobuffer.Trade.State} */ (reader.readEnum()); - msg.setState(value); - break; - case 12: - var value = /** @type {!proto.io.bisq.protobuffer.Trade.DisputeState} */ (reader.readEnum()); - msg.setDisputeState(value); - break; - case 13: - var value = /** @type {!proto.io.bisq.protobuffer.Trade.TradePeriodState} */ (reader.readEnum()); - msg.setTradePeriodState(value); - break; - case 14: - var value = new proto.io.bisq.protobuffer.Contract; - reader.readMessage(value,proto.io.bisq.protobuffer.Contract.deserializeBinaryFromReader); - msg.setContract(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.setContractAsJson(value); - break; - case 16: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setContractHash(value); - break; - case 17: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setArbitratorNodeAddress(value); - break; - case 18: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setMediatorNodeAddress(value); - break; - case 19: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setArbitratorBtcPubKey(value); - break; - case 20: - var value = /** @type {string} */ (reader.readString()); - msg.setTakerPaymentAccountId(value); - break; - case 21: - var value = /** @type {string} */ (reader.readString()); - msg.setErrorMessage(value); - break; - case 22: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setArbitratorPubKeyRing(value); - break; - case 23: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setMediatorPubKeyRing(value); - break; - case 24: - var value = /** @type {string} */ (reader.readString()); - msg.setCounterCurrencyTxId(value); - break; - case 25: - var value = new proto.io.bisq.protobuffer.ChatMessage; - reader.readMessage(value,proto.io.bisq.protobuffer.ChatMessage.deserializeBinaryFromReader); - msg.addChatMessage(value); - break; - case 26: - var value = /** @type {!proto.io.bisq.protobuffer.MediationResultState} */ (reader.readEnum()); - msg.setMediationResultState(value); - break; - case 27: - var value = /** @type {number} */ (reader.readInt64()); - msg.setLockTime(value); - break; - case 28: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setDelayedPayoutTxBytes(value); - break; - case 29: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setRefundAgentNodeAddress(value); - break; - case 30: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setRefundAgentPubKeyRing(value); - break; - case 31: - var value = /** @type {!proto.io.bisq.protobuffer.RefundResultState} */ (reader.readEnum()); - msg.setRefundResultState(value); - break; - case 32: - var value = /** @type {number} */ (reader.readInt64()); - msg.setLastRefreshRequestDate(value); - break; - case 33: - var value = /** @type {string} */ (reader.readString()); - msg.setCounterCurrencyExtraData(value); - break; - case 34: - var value = /** @type {string} */ (reader.readString()); - msg.setAssetTxProofResult(value); - break; - case 35: - 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.setMakerNodeAddress(value); - break; - case 101: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setTakerNodeAddress(value); - break; - case 102: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setTakerPubKeyRing(value); - break; - case 103: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setMakerPubKeyRing(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Trade.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.Trade.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.Trade} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Trade.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffer(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.Offer.serializeBinaryToWriter - ); - } - f = message.getProcessModel(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.ProcessModel.serializeBinaryToWriter - ); - } - f = message.getTakerFeeTxId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPayoutTxId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getTradeAmountAsLong(); - if (f !== 0) { - writer.writeInt64( - 6, - f - ); - } - f = message.getTxFeeAsLong(); - if (f !== 0) { - writer.writeInt64( - 7, - f - ); - } - f = message.getTakerFeeAsLong(); - if (f !== 0) { - writer.writeInt64( - 8, - f - ); - } - f = message.getTakeOfferDate(); - if (f !== 0) { - writer.writeInt64( - 9, - f - ); - } - f = message.getTradePrice(); - if (f !== 0) { - writer.writeInt64( - 10, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 11, - f - ); - } - f = message.getDisputeState(); - if (f !== 0.0) { - writer.writeEnum( - 12, - f - ); - } - f = message.getTradePeriodState(); - if (f !== 0.0) { - writer.writeEnum( - 13, - f - ); - } - f = message.getContract(); - if (f != null) { - writer.writeMessage( - 14, - f, - proto.io.bisq.protobuffer.Contract.serializeBinaryToWriter - ); - } - f = message.getContractAsJson(); - if (f.length > 0) { - writer.writeString( - 15, - f - ); - } - f = message.getContractHash_asU8(); - if (f.length > 0) { - writer.writeBytes( - 16, - f - ); - } - f = message.getArbitratorNodeAddress(); - if (f != null) { - writer.writeMessage( - 17, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getMediatorNodeAddress(); - if (f != null) { - writer.writeMessage( - 18, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getArbitratorBtcPubKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 19, - f - ); - } - f = message.getTakerPaymentAccountId(); - if (f.length > 0) { - writer.writeString( - 20, - f - ); - } - f = message.getErrorMessage(); - if (f.length > 0) { - writer.writeString( - 21, - f - ); - } - f = message.getArbitratorPubKeyRing(); - if (f != null) { - writer.writeMessage( - 22, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getMediatorPubKeyRing(); - if (f != null) { - writer.writeMessage( - 23, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getCounterCurrencyTxId(); - if (f.length > 0) { - writer.writeString( - 24, - f - ); - } - f = message.getChatMessageList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 25, - f, - proto.io.bisq.protobuffer.ChatMessage.serializeBinaryToWriter - ); - } - f = message.getMediationResultState(); - if (f !== 0.0) { - writer.writeEnum( - 26, - f - ); - } - f = message.getLockTime(); - if (f !== 0) { - writer.writeInt64( - 27, - f - ); - } - f = message.getDelayedPayoutTxBytes_asU8(); - if (f.length > 0) { - writer.writeBytes( - 28, - f - ); - } - f = message.getRefundAgentNodeAddress(); - if (f != null) { - writer.writeMessage( - 29, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getRefundAgentPubKeyRing(); - if (f != null) { - writer.writeMessage( - 30, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getRefundResultState(); - if (f !== 0.0) { - writer.writeEnum( - 31, - f - ); - } - f = message.getLastRefreshRequestDate(); - if (f !== 0) { - writer.writeInt64( - 32, - f - ); - } - f = message.getCounterCurrencyExtraData(); - if (f.length > 0) { - writer.writeString( - 33, - f - ); - } - f = message.getAssetTxProofResult(); - if (f.length > 0) { - writer.writeString( - 34, - f - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 35, - f - ); - } - f = message.getMakerNodeAddress(); - if (f != null) { - writer.writeMessage( - 100, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getTakerNodeAddress(); - if (f != null) { - writer.writeMessage( - 101, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getTakerPubKeyRing(); - if (f != null) { - writer.writeMessage( - 102, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getMakerPubKeyRing(); - if (f != null) { - writer.writeMessage( - 103, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } -}; - - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.Trade.State = { - PB_ERROR_STATE: 0, - PREPARATION: 1, - TAKER_PUBLISHED_TAKER_FEE_TX: 2, - MAKER_SENT_PUBLISH_DEPOSIT_TX_REQUEST: 3, - MAKER_SAW_ARRIVED_PUBLISH_DEPOSIT_TX_REQUEST: 4, - MAKER_STORED_IN_MAILBOX_PUBLISH_DEPOSIT_TX_REQUEST: 5, - MAKER_SEND_FAILED_PUBLISH_DEPOSIT_TX_REQUEST: 6, - TAKER_RECEIVED_PUBLISH_DEPOSIT_TX_REQUEST: 7, - TAKER_PUBLISHED_DEPOSIT_TX: 8, - TAKER_SAW_DEPOSIT_TX_IN_NETWORK: 9, - TAKER_SENT_DEPOSIT_TX_PUBLISHED_MSG: 10, - TAKER_SAW_ARRIVED_DEPOSIT_TX_PUBLISHED_MSG: 11, - TAKER_STORED_IN_MAILBOX_DEPOSIT_TX_PUBLISHED_MSG: 12, - TAKER_SEND_FAILED_DEPOSIT_TX_PUBLISHED_MSG: 13, - MAKER_RECEIVED_DEPOSIT_TX_PUBLISHED_MSG: 14, - MAKER_SAW_DEPOSIT_TX_IN_NETWORK: 15, - DEPOSIT_CONFIRMED_IN_BLOCK_CHAIN: 16, - BUYER_CONFIRMED_IN_UI_FIAT_PAYMENT_INITIATED: 17, - BUYER_SENT_FIAT_PAYMENT_INITIATED_MSG: 18, - BUYER_SAW_ARRIVED_FIAT_PAYMENT_INITIATED_MSG: 19, - BUYER_STORED_IN_MAILBOX_FIAT_PAYMENT_INITIATED_MSG: 20, - BUYER_SEND_FAILED_FIAT_PAYMENT_INITIATED_MSG: 21, - SELLER_RECEIVED_FIAT_PAYMENT_INITIATED_MSG: 22, - SELLER_CONFIRMED_IN_UI_FIAT_PAYMENT_RECEIPT: 23, - SELLER_PUBLISHED_PAYOUT_TX: 24, - SELLER_SENT_PAYOUT_TX_PUBLISHED_MSG: 25, - SELLER_SAW_ARRIVED_PAYOUT_TX_PUBLISHED_MSG: 26, - SELLER_STORED_IN_MAILBOX_PAYOUT_TX_PUBLISHED_MSG: 27, - SELLER_SEND_FAILED_PAYOUT_TX_PUBLISHED_MSG: 28, - BUYER_RECEIVED_PAYOUT_TX_PUBLISHED_MSG: 29, - BUYER_SAW_PAYOUT_TX_IN_NETWORK: 30, - WITHDRAW_COMPLETED: 31 -}; - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.Trade.Phase = { - PB_ERROR_PHASE: 0, - INIT: 1, - TAKER_FEE_PUBLISHED: 2, - DEPOSIT_PUBLISHED: 3, - DEPOSIT_CONFIRMED: 4, - FIAT_SENT: 5, - FIAT_RECEIVED: 6, - PAYOUT_PUBLISHED: 7, - WITHDRAWN: 8 -}; - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.Trade.DisputeState = { - PB_ERROR_DISPUTE_STATE: 0, - NO_DISPUTE: 1, - DISPUTE_REQUESTED: 2, - DISPUTE_STARTED_BY_PEER: 3, - DISPUTE_CLOSED: 4, - MEDIATION_REQUESTED: 5, - MEDIATION_STARTED_BY_PEER: 6, - MEDIATION_CLOSED: 7, - REFUND_REQUESTED: 8, - REFUND_REQUEST_STARTED_BY_PEER: 9, - REFUND_REQUEST_CLOSED: 10 -}; - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.Trade.TradePeriodState = { - PB_ERROR_TRADE_PERIOD_STATE: 0, - FIRST_HALF: 1, - SECOND_HALF: 2, - TRADE_PERIOD_OVER: 3 -}; - -/** - * optional Offer offer = 1; - * @return {?proto.io.bisq.protobuffer.Offer} - */ -proto.io.bisq.protobuffer.Trade.prototype.getOffer = function() { - return /** @type{?proto.io.bisq.protobuffer.Offer} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Offer, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Offer|undefined} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this -*/ -proto.io.bisq.protobuffer.Trade.prototype.setOffer = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.clearOffer = function() { - return this.setOffer(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Trade.prototype.hasOffer = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional ProcessModel process_model = 2; - * @return {?proto.io.bisq.protobuffer.ProcessModel} - */ -proto.io.bisq.protobuffer.Trade.prototype.getProcessModel = function() { - return /** @type{?proto.io.bisq.protobuffer.ProcessModel} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ProcessModel, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.ProcessModel|undefined} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this -*/ -proto.io.bisq.protobuffer.Trade.prototype.setProcessModel = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.clearProcessModel = function() { - return this.setProcessModel(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Trade.prototype.hasProcessModel = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string taker_fee_tx_id = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.Trade.prototype.getTakerFeeTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setTakerFeeTxId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string payout_tx_id = 5; - * @return {string} - */ -proto.io.bisq.protobuffer.Trade.prototype.getPayoutTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setPayoutTxId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional int64 trade_amount_as_long = 6; - * @return {number} - */ -proto.io.bisq.protobuffer.Trade.prototype.getTradeAmountAsLong = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setTradeAmountAsLong = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional int64 tx_fee_as_long = 7; - * @return {number} - */ -proto.io.bisq.protobuffer.Trade.prototype.getTxFeeAsLong = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setTxFeeAsLong = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional int64 taker_fee_as_long = 8; - * @return {number} - */ -proto.io.bisq.protobuffer.Trade.prototype.getTakerFeeAsLong = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setTakerFeeAsLong = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional int64 take_offer_date = 9; - * @return {number} - */ -proto.io.bisq.protobuffer.Trade.prototype.getTakeOfferDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setTakeOfferDate = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); -}; - - -/** - * optional int64 trade_price = 10; - * @return {number} - */ -proto.io.bisq.protobuffer.Trade.prototype.getTradePrice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setTradePrice = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional State state = 11; - * @return {!proto.io.bisq.protobuffer.Trade.State} - */ -proto.io.bisq.protobuffer.Trade.prototype.getState = function() { - return /** @type {!proto.io.bisq.protobuffer.Trade.State} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.Trade.State} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setState = function(value) { - return jspb.Message.setProto3EnumField(this, 11, value); -}; - - -/** - * optional DisputeState dispute_state = 12; - * @return {!proto.io.bisq.protobuffer.Trade.DisputeState} - */ -proto.io.bisq.protobuffer.Trade.prototype.getDisputeState = function() { - return /** @type {!proto.io.bisq.protobuffer.Trade.DisputeState} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.Trade.DisputeState} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setDisputeState = function(value) { - return jspb.Message.setProto3EnumField(this, 12, value); -}; - - -/** - * optional TradePeriodState trade_period_state = 13; - * @return {!proto.io.bisq.protobuffer.Trade.TradePeriodState} - */ -proto.io.bisq.protobuffer.Trade.prototype.getTradePeriodState = function() { - return /** @type {!proto.io.bisq.protobuffer.Trade.TradePeriodState} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.Trade.TradePeriodState} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setTradePeriodState = function(value) { - return jspb.Message.setProto3EnumField(this, 13, value); -}; - - -/** - * optional Contract contract = 14; - * @return {?proto.io.bisq.protobuffer.Contract} - */ -proto.io.bisq.protobuffer.Trade.prototype.getContract = function() { - return /** @type{?proto.io.bisq.protobuffer.Contract} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Contract, 14)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Contract|undefined} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this -*/ -proto.io.bisq.protobuffer.Trade.prototype.setContract = function(value) { - return jspb.Message.setWrapperField(this, 14, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.clearContract = function() { - return this.setContract(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Trade.prototype.hasContract = function() { - return jspb.Message.getField(this, 14) != null; -}; - - -/** - * optional string contract_as_json = 15; - * @return {string} - */ -proto.io.bisq.protobuffer.Trade.prototype.getContractAsJson = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setContractAsJson = function(value) { - return jspb.Message.setProto3StringField(this, 15, value); -}; - - -/** - * optional bytes contract_hash = 16; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.Trade.prototype.getContractHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** - * optional bytes contract_hash = 16; - * This is a type-conversion wrapper around `getContractHash()` - * @return {string} - */ -proto.io.bisq.protobuffer.Trade.prototype.getContractHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getContractHash())); -}; - - -/** - * optional bytes contract_hash = 16; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getContractHash()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Trade.prototype.getContractHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getContractHash())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setContractHash = function(value) { - return jspb.Message.setProto3BytesField(this, 16, value); -}; - - -/** - * optional NodeAddress arbitrator_node_address = 17; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.Trade.prototype.getArbitratorNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 17)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this -*/ -proto.io.bisq.protobuffer.Trade.prototype.setArbitratorNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 17, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.clearArbitratorNodeAddress = function() { - return this.setArbitratorNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Trade.prototype.hasArbitratorNodeAddress = function() { - return jspb.Message.getField(this, 17) != null; -}; - - -/** - * optional NodeAddress mediator_node_address = 18; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.Trade.prototype.getMediatorNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 18)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this -*/ -proto.io.bisq.protobuffer.Trade.prototype.setMediatorNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 18, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.clearMediatorNodeAddress = function() { - return this.setMediatorNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Trade.prototype.hasMediatorNodeAddress = function() { - return jspb.Message.getField(this, 18) != null; -}; - - -/** - * optional bytes arbitrator_btc_pub_key = 19; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.Trade.prototype.getArbitratorBtcPubKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 19, "")); -}; - - -/** - * optional bytes arbitrator_btc_pub_key = 19; - * This is a type-conversion wrapper around `getArbitratorBtcPubKey()` - * @return {string} - */ -proto.io.bisq.protobuffer.Trade.prototype.getArbitratorBtcPubKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getArbitratorBtcPubKey())); -}; - - -/** - * optional bytes arbitrator_btc_pub_key = 19; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getArbitratorBtcPubKey()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Trade.prototype.getArbitratorBtcPubKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getArbitratorBtcPubKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setArbitratorBtcPubKey = function(value) { - return jspb.Message.setProto3BytesField(this, 19, value); -}; - - -/** - * optional string taker_payment_account_id = 20; - * @return {string} - */ -proto.io.bisq.protobuffer.Trade.prototype.getTakerPaymentAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setTakerPaymentAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 20, value); -}; - - -/** - * optional string error_message = 21; - * @return {string} - */ -proto.io.bisq.protobuffer.Trade.prototype.getErrorMessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setErrorMessage = function(value) { - return jspb.Message.setProto3StringField(this, 21, value); -}; - - -/** - * optional PubKeyRing arbitrator_pub_key_ring = 22; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.Trade.prototype.getArbitratorPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 22)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this -*/ -proto.io.bisq.protobuffer.Trade.prototype.setArbitratorPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 22, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.clearArbitratorPubKeyRing = function() { - return this.setArbitratorPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Trade.prototype.hasArbitratorPubKeyRing = function() { - return jspb.Message.getField(this, 22) != null; -}; - - -/** - * optional PubKeyRing mediator_pub_key_ring = 23; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.Trade.prototype.getMediatorPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 23)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this -*/ -proto.io.bisq.protobuffer.Trade.prototype.setMediatorPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 23, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.clearMediatorPubKeyRing = function() { - return this.setMediatorPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Trade.prototype.hasMediatorPubKeyRing = function() { - return jspb.Message.getField(this, 23) != null; -}; - - -/** - * optional string counter_currency_tx_id = 24; - * @return {string} - */ -proto.io.bisq.protobuffer.Trade.prototype.getCounterCurrencyTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setCounterCurrencyTxId = function(value) { - return jspb.Message.setProto3StringField(this, 24, value); -}; - - -/** - * repeated ChatMessage chat_message = 25; - * @return {!Array} - */ -proto.io.bisq.protobuffer.Trade.prototype.getChatMessageList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.ChatMessage, 25)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this -*/ -proto.io.bisq.protobuffer.Trade.prototype.setChatMessageList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 25, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.ChatMessage=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.ChatMessage} - */ -proto.io.bisq.protobuffer.Trade.prototype.addChatMessage = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 25, opt_value, proto.io.bisq.protobuffer.ChatMessage, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.clearChatMessageList = function() { - return this.setChatMessageList([]); -}; - - -/** - * optional MediationResultState mediation_result_state = 26; - * @return {!proto.io.bisq.protobuffer.MediationResultState} - */ -proto.io.bisq.protobuffer.Trade.prototype.getMediationResultState = function() { - return /** @type {!proto.io.bisq.protobuffer.MediationResultState} */ (jspb.Message.getFieldWithDefault(this, 26, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.MediationResultState} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setMediationResultState = function(value) { - return jspb.Message.setProto3EnumField(this, 26, value); -}; - - -/** - * optional int64 lock_time = 27; - * @return {number} - */ -proto.io.bisq.protobuffer.Trade.prototype.getLockTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 27, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setLockTime = function(value) { - return jspb.Message.setProto3IntField(this, 27, value); -}; - - -/** - * optional bytes delayed_payout_tx_bytes = 28; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.Trade.prototype.getDelayedPayoutTxBytes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 28, "")); -}; - - -/** - * optional bytes delayed_payout_tx_bytes = 28; - * This is a type-conversion wrapper around `getDelayedPayoutTxBytes()` - * @return {string} - */ -proto.io.bisq.protobuffer.Trade.prototype.getDelayedPayoutTxBytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getDelayedPayoutTxBytes())); -}; - - -/** - * optional bytes delayed_payout_tx_bytes = 28; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getDelayedPayoutTxBytes()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Trade.prototype.getDelayedPayoutTxBytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getDelayedPayoutTxBytes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setDelayedPayoutTxBytes = function(value) { - return jspb.Message.setProto3BytesField(this, 28, value); -}; - - -/** - * optional NodeAddress refund_agent_node_address = 29; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.Trade.prototype.getRefundAgentNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 29)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this -*/ -proto.io.bisq.protobuffer.Trade.prototype.setRefundAgentNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 29, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.clearRefundAgentNodeAddress = function() { - return this.setRefundAgentNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Trade.prototype.hasRefundAgentNodeAddress = function() { - return jspb.Message.getField(this, 29) != null; -}; - - -/** - * optional PubKeyRing refund_agent_pub_key_ring = 30; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.Trade.prototype.getRefundAgentPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 30)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this -*/ -proto.io.bisq.protobuffer.Trade.prototype.setRefundAgentPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 30, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.clearRefundAgentPubKeyRing = function() { - return this.setRefundAgentPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Trade.prototype.hasRefundAgentPubKeyRing = function() { - return jspb.Message.getField(this, 30) != null; -}; - - -/** - * optional RefundResultState refund_result_state = 31; - * @return {!proto.io.bisq.protobuffer.RefundResultState} - */ -proto.io.bisq.protobuffer.Trade.prototype.getRefundResultState = function() { - return /** @type {!proto.io.bisq.protobuffer.RefundResultState} */ (jspb.Message.getFieldWithDefault(this, 31, 0)); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.RefundResultState} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setRefundResultState = function(value) { - return jspb.Message.setProto3EnumField(this, 31, value); -}; - - -/** - * optional int64 last_refresh_request_date = 32; - * @return {number} - */ -proto.io.bisq.protobuffer.Trade.prototype.getLastRefreshRequestDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 32, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setLastRefreshRequestDate = function(value) { - return jspb.Message.setProto3IntField(this, 32, value); -}; - - -/** - * optional string counter_currency_extra_data = 33; - * @return {string} - */ -proto.io.bisq.protobuffer.Trade.prototype.getCounterCurrencyExtraData = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 33, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setCounterCurrencyExtraData = function(value) { - return jspb.Message.setProto3StringField(this, 33, value); -}; - - -/** - * optional string asset_tx_proof_result = 34; - * @return {string} - */ -proto.io.bisq.protobuffer.Trade.prototype.getAssetTxProofResult = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 34, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.setAssetTxProofResult = function(value) { - return jspb.Message.setProto3StringField(this, 34, value); -}; - - -/** - * optional string uid = 35; - * @return {string} - */ -proto.io.bisq.protobuffer.Trade.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 35, "")); -}; - - -/** - * @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, 35, value); -}; - - -/** - * optional NodeAddress maker_node_address = 100; - * @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, 100)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this -*/ -proto.io.bisq.protobuffer.Trade.prototype.setMakerNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 100, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.clearMakerNodeAddress = function() { - return this.setMakerNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Trade.prototype.hasMakerNodeAddress = function() { - return jspb.Message.getField(this, 100) != null; -}; - - -/** - * optional NodeAddress taker_node_address = 101; - * @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, 101)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this -*/ -proto.io.bisq.protobuffer.Trade.prototype.setTakerNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 101, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.clearTakerNodeAddress = function() { - return this.setTakerNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Trade.prototype.hasTakerNodeAddress = function() { - return jspb.Message.getField(this, 101) != null; -}; - - -/** - * optional PubKeyRing taker_pub_key_ring = 102; - * @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, 102)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this -*/ -proto.io.bisq.protobuffer.Trade.prototype.setTakerPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 102, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.clearTakerPubKeyRing = function() { - return this.setTakerPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Trade.prototype.hasTakerPubKeyRing = function() { - return jspb.Message.getField(this, 102) != null; -}; - - -/** - * optional PubKeyRing maker_pub_key_ring = 103; - * @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, 103)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.Trade} returns this -*/ -proto.io.bisq.protobuffer.Trade.prototype.setMakerPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 103, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Trade} returns this - */ -proto.io.bisq.protobuffer.Trade.prototype.clearMakerPubKeyRing = function() { - return this.setMakerPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Trade.prototype.hasMakerPubKeyRing = function() { - return jspb.Message.getField(this, 103) != 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.BuyerAsMakerTrade.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.BuyerAsMakerTrade.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.BuyerAsMakerTrade} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.BuyerAsMakerTrade.toObject = function(includeInstance, msg) { - var f, obj = { - trade: (f = msg.getTrade()) && proto.io.bisq.protobuffer.Trade.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.BuyerAsMakerTrade} - */ -proto.io.bisq.protobuffer.BuyerAsMakerTrade.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.BuyerAsMakerTrade; - return proto.io.bisq.protobuffer.BuyerAsMakerTrade.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.BuyerAsMakerTrade} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.BuyerAsMakerTrade} - */ -proto.io.bisq.protobuffer.BuyerAsMakerTrade.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.Trade; - reader.readMessage(value,proto.io.bisq.protobuffer.Trade.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.BuyerAsMakerTrade.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.BuyerAsMakerTrade.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.BuyerAsMakerTrade} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.BuyerAsMakerTrade.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTrade(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.Trade.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Trade trade = 1; - * @return {?proto.io.bisq.protobuffer.Trade} - */ -proto.io.bisq.protobuffer.BuyerAsMakerTrade.prototype.getTrade = function() { - return /** @type{?proto.io.bisq.protobuffer.Trade} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Trade, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Trade|undefined} value - * @return {!proto.io.bisq.protobuffer.BuyerAsMakerTrade} returns this -*/ -proto.io.bisq.protobuffer.BuyerAsMakerTrade.prototype.setTrade = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.BuyerAsMakerTrade} returns this - */ -proto.io.bisq.protobuffer.BuyerAsMakerTrade.prototype.clearTrade = function() { - return this.setTrade(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.BuyerAsMakerTrade.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.BuyerAsTakerTrade.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.BuyerAsTakerTrade.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.BuyerAsTakerTrade} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.BuyerAsTakerTrade.toObject = function(includeInstance, msg) { - var f, obj = { - trade: (f = msg.getTrade()) && proto.io.bisq.protobuffer.Trade.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.BuyerAsTakerTrade} - */ -proto.io.bisq.protobuffer.BuyerAsTakerTrade.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.BuyerAsTakerTrade; - return proto.io.bisq.protobuffer.BuyerAsTakerTrade.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.BuyerAsTakerTrade} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.BuyerAsTakerTrade} - */ -proto.io.bisq.protobuffer.BuyerAsTakerTrade.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.Trade; - reader.readMessage(value,proto.io.bisq.protobuffer.Trade.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.BuyerAsTakerTrade.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.BuyerAsTakerTrade.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.BuyerAsTakerTrade} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.BuyerAsTakerTrade.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTrade(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.Trade.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Trade trade = 1; - * @return {?proto.io.bisq.protobuffer.Trade} - */ -proto.io.bisq.protobuffer.BuyerAsTakerTrade.prototype.getTrade = function() { - return /** @type{?proto.io.bisq.protobuffer.Trade} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Trade, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Trade|undefined} value - * @return {!proto.io.bisq.protobuffer.BuyerAsTakerTrade} returns this -*/ -proto.io.bisq.protobuffer.BuyerAsTakerTrade.prototype.setTrade = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.BuyerAsTakerTrade} returns this - */ -proto.io.bisq.protobuffer.BuyerAsTakerTrade.prototype.clearTrade = function() { - return this.setTrade(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.BuyerAsTakerTrade.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.SellerAsMakerTrade.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SellerAsMakerTrade.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.SellerAsMakerTrade} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SellerAsMakerTrade.toObject = function(includeInstance, msg) { - var f, obj = { - trade: (f = msg.getTrade()) && proto.io.bisq.protobuffer.Trade.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.SellerAsMakerTrade} - */ -proto.io.bisq.protobuffer.SellerAsMakerTrade.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SellerAsMakerTrade; - return proto.io.bisq.protobuffer.SellerAsMakerTrade.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SellerAsMakerTrade} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SellerAsMakerTrade} - */ -proto.io.bisq.protobuffer.SellerAsMakerTrade.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.Trade; - reader.readMessage(value,proto.io.bisq.protobuffer.Trade.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.SellerAsMakerTrade.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SellerAsMakerTrade.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.SellerAsMakerTrade} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SellerAsMakerTrade.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTrade(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.Trade.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Trade trade = 1; - * @return {?proto.io.bisq.protobuffer.Trade} - */ -proto.io.bisq.protobuffer.SellerAsMakerTrade.prototype.getTrade = function() { - return /** @type{?proto.io.bisq.protobuffer.Trade} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Trade, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Trade|undefined} value - * @return {!proto.io.bisq.protobuffer.SellerAsMakerTrade} returns this -*/ -proto.io.bisq.protobuffer.SellerAsMakerTrade.prototype.setTrade = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.SellerAsMakerTrade} returns this - */ -proto.io.bisq.protobuffer.SellerAsMakerTrade.prototype.clearTrade = function() { - return this.setTrade(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.SellerAsMakerTrade.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.SellerAsTakerTrade.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.SellerAsTakerTrade.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.SellerAsTakerTrade} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SellerAsTakerTrade.toObject = function(includeInstance, msg) { - var f, obj = { - trade: (f = msg.getTrade()) && proto.io.bisq.protobuffer.Trade.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.SellerAsTakerTrade} - */ -proto.io.bisq.protobuffer.SellerAsTakerTrade.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.SellerAsTakerTrade; - return proto.io.bisq.protobuffer.SellerAsTakerTrade.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.SellerAsTakerTrade} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.SellerAsTakerTrade} - */ -proto.io.bisq.protobuffer.SellerAsTakerTrade.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.Trade; - reader.readMessage(value,proto.io.bisq.protobuffer.Trade.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.SellerAsTakerTrade.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.SellerAsTakerTrade.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.SellerAsTakerTrade} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.SellerAsTakerTrade.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTrade(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.Trade.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Trade trade = 1; - * @return {?proto.io.bisq.protobuffer.Trade} - */ -proto.io.bisq.protobuffer.SellerAsTakerTrade.prototype.getTrade = function() { - return /** @type{?proto.io.bisq.protobuffer.Trade} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Trade, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Trade|undefined} value - * @return {!proto.io.bisq.protobuffer.SellerAsTakerTrade} returns this -*/ -proto.io.bisq.protobuffer.SellerAsTakerTrade.prototype.setTrade = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.SellerAsTakerTrade} returns this - */ -proto.io.bisq.protobuffer.SellerAsTakerTrade.prototype.clearTrade = function() { - return this.setTrade(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.SellerAsTakerTrade.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.ArbitratorTrade.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.ArbitratorTrade.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.ArbitratorTrade} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ArbitratorTrade.toObject = function(includeInstance, msg) { - var f, obj = { - trade: (f = msg.getTrade()) && proto.io.bisq.protobuffer.Trade.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.ArbitratorTrade} - */ -proto.io.bisq.protobuffer.ArbitratorTrade.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.ArbitratorTrade; - return proto.io.bisq.protobuffer.ArbitratorTrade.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.ArbitratorTrade} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.ArbitratorTrade} - */ -proto.io.bisq.protobuffer.ArbitratorTrade.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.Trade; - reader.readMessage(value,proto.io.bisq.protobuffer.Trade.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.ArbitratorTrade.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.ArbitratorTrade.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.ArbitratorTrade} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ArbitratorTrade.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTrade(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.Trade.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Trade trade = 1; - * @return {?proto.io.bisq.protobuffer.Trade} - */ -proto.io.bisq.protobuffer.ArbitratorTrade.prototype.getTrade = function() { - return /** @type{?proto.io.bisq.protobuffer.Trade} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Trade, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Trade|undefined} value - * @return {!proto.io.bisq.protobuffer.ArbitratorTrade} returns this -*/ -proto.io.bisq.protobuffer.ArbitratorTrade.prototype.setTrade = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.ArbitratorTrade} returns this - */ -proto.io.bisq.protobuffer.ArbitratorTrade.prototype.clearTrade = function() { - return this.setTrade(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.ArbitratorTrade.prototype.hasTrade = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.ProcessModel.repeatedFields_ = [10]; - - - -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.ProcessModel.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.ProcessModel.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.ProcessModel} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ProcessModel.toObject = function(includeInstance, msg) { - var f, obj = { - offerId: jspb.Message.getFieldWithDefault(msg, 2, ""), - accountId: jspb.Message.getFieldWithDefault(msg, 3, ""), - pubKeyRing: (f = msg.getPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - takeOfferFeeTxId: jspb.Message.getFieldWithDefault(msg, 5, ""), - payoutTxSignature: msg.getPayoutTxSignature_asB64(), - rawTransactionInputsList: jspb.Message.toObjectList(msg.getRawTransactionInputsList(), - proto.io.bisq.protobuffer.RawTransactionInput.toObject, includeInstance), - changeOutputValue: jspb.Message.getFieldWithDefault(msg, 11, 0), - changeOutputAddress: jspb.Message.getFieldWithDefault(msg, 12, ""), - useSavingsWallet: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), - fundsNeededForTradeAsLong: jspb.Message.getFieldWithDefault(msg, 14, 0), - myMultiSigPubKey: msg.getMyMultiSigPubKey_asB64(), - paymentStartedMessageState: jspb.Message.getFieldWithDefault(msg, 17, ""), - mediatedPayoutTxSignature: msg.getMediatedPayoutTxSignature_asB64(), - buyerPayoutAmountFromMediation: jspb.Message.getFieldWithDefault(msg, 19, 0), - sellerPayoutAmountFromMediation: jspb.Message.getFieldWithDefault(msg, 20, 0), - makerSignature: jspb.Message.getFieldWithDefault(msg, 1001, ""), - backupArbitrator: (f = msg.getBackupArbitrator()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - maker: (f = msg.getMaker()) && proto.io.bisq.protobuffer.TradingPeer.toObject(includeInstance, f), - taker: (f = msg.getTaker()) && proto.io.bisq.protobuffer.TradingPeer.toObject(includeInstance, f), - arbitrator: (f = msg.getArbitrator()) && proto.io.bisq.protobuffer.TradingPeer.toObject(includeInstance, f), - tempTradingPeerNodeAddress: (f = msg.getTempTradingPeerNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - preparedMultisigHex: jspb.Message.getFieldWithDefault(msg, 1007, ""), - madeMultisigHex: jspb.Message.getFieldWithDefault(msg, 1008, ""), - multisigSetupComplete: jspb.Message.getBooleanFieldWithDefault(msg, 1009, false), - makerReadyToFundMultisig: jspb.Message.getBooleanFieldWithDefault(msg, 1010, false), - multisigDepositInitiated: jspb.Message.getBooleanFieldWithDefault(msg, 1011, 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.ProcessModel} - */ -proto.io.bisq.protobuffer.ProcessModel.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.ProcessModel; - return proto.io.bisq.protobuffer.ProcessModel.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.ProcessModel} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.ProcessModel} - */ -proto.io.bisq.protobuffer.ProcessModel.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setOfferId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setAccountId(value); - break; - case 4: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setPubKeyRing(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setTakeOfferFeeTxId(value); - break; - case 6: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPayoutTxSignature(value); - break; - case 10: - var value = new proto.io.bisq.protobuffer.RawTransactionInput; - reader.readMessage(value,proto.io.bisq.protobuffer.RawTransactionInput.deserializeBinaryFromReader); - msg.addRawTransactionInputs(value); - break; - case 11: - var value = /** @type {number} */ (reader.readInt64()); - msg.setChangeOutputValue(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setChangeOutputAddress(value); - break; - case 13: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUseSavingsWallet(value); - break; - case 14: - var value = /** @type {number} */ (reader.readInt64()); - msg.setFundsNeededForTradeAsLong(value); - break; - case 15: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setMyMultiSigPubKey(value); - break; - case 17: - var value = /** @type {string} */ (reader.readString()); - msg.setPaymentStartedMessageState(value); - break; - case 18: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setMediatedPayoutTxSignature(value); - break; - case 19: - var value = /** @type {number} */ (reader.readInt64()); - msg.setBuyerPayoutAmountFromMediation(value); - break; - case 20: - var value = /** @type {number} */ (reader.readInt64()); - msg.setSellerPayoutAmountFromMediation(value); - break; - case 1001: - var value = /** @type {string} */ (reader.readString()); - msg.setMakerSignature(value); - break; - case 1002: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setBackupArbitrator(value); - break; - case 1003: - var value = new proto.io.bisq.protobuffer.TradingPeer; - reader.readMessage(value,proto.io.bisq.protobuffer.TradingPeer.deserializeBinaryFromReader); - msg.setMaker(value); - break; - case 1004: - var value = new proto.io.bisq.protobuffer.TradingPeer; - reader.readMessage(value,proto.io.bisq.protobuffer.TradingPeer.deserializeBinaryFromReader); - msg.setTaker(value); - break; - case 1005: - var value = new proto.io.bisq.protobuffer.TradingPeer; - reader.readMessage(value,proto.io.bisq.protobuffer.TradingPeer.deserializeBinaryFromReader); - msg.setArbitrator(value); - break; - case 1006: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setTempTradingPeerNodeAddress(value); - break; - case 1007: - var value = /** @type {string} */ (reader.readString()); - msg.setPreparedMultisigHex(value); - break; - case 1008: - var value = /** @type {string} */ (reader.readString()); - msg.setMadeMultisigHex(value); - break; - case 1009: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setMultisigSetupComplete(value); - break; - case 1010: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setMakerReadyToFundMultisig(value); - break; - case 1011: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setMultisigDepositInitiated(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.ProcessModel.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.ProcessModel} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ProcessModel.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOfferId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getAccountId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPubKeyRing(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getTakeOfferFeeTxId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getPayoutTxSignature_asU8(); - if (f.length > 0) { - writer.writeBytes( - 6, - f - ); - } - f = message.getRawTransactionInputsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 10, - f, - proto.io.bisq.protobuffer.RawTransactionInput.serializeBinaryToWriter - ); - } - f = message.getChangeOutputValue(); - if (f !== 0) { - writer.writeInt64( - 11, - f - ); - } - f = message.getChangeOutputAddress(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getUseSavingsWallet(); - if (f) { - writer.writeBool( - 13, - f - ); - } - f = message.getFundsNeededForTradeAsLong(); - if (f !== 0) { - writer.writeInt64( - 14, - f - ); - } - f = message.getMyMultiSigPubKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 15, - f - ); - } - f = message.getPaymentStartedMessageState(); - if (f.length > 0) { - writer.writeString( - 17, - f - ); - } - f = message.getMediatedPayoutTxSignature_asU8(); - if (f.length > 0) { - writer.writeBytes( - 18, - f - ); - } - f = message.getBuyerPayoutAmountFromMediation(); - if (f !== 0) { - writer.writeInt64( - 19, - f - ); - } - f = message.getSellerPayoutAmountFromMediation(); - if (f !== 0) { - writer.writeInt64( - 20, - f - ); - } - f = message.getMakerSignature(); - if (f.length > 0) { - writer.writeString( - 1001, - f - ); - } - f = message.getBackupArbitrator(); - if (f != null) { - writer.writeMessage( - 1002, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getMaker(); - if (f != null) { - writer.writeMessage( - 1003, - f, - proto.io.bisq.protobuffer.TradingPeer.serializeBinaryToWriter - ); - } - f = message.getTaker(); - if (f != null) { - writer.writeMessage( - 1004, - f, - proto.io.bisq.protobuffer.TradingPeer.serializeBinaryToWriter - ); - } - f = message.getArbitrator(); - if (f != null) { - writer.writeMessage( - 1005, - f, - proto.io.bisq.protobuffer.TradingPeer.serializeBinaryToWriter - ); - } - f = message.getTempTradingPeerNodeAddress(); - if (f != null) { - writer.writeMessage( - 1006, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getPreparedMultisigHex(); - if (f.length > 0) { - writer.writeString( - 1007, - f - ); - } - f = message.getMadeMultisigHex(); - if (f.length > 0) { - writer.writeString( - 1008, - f - ); - } - f = message.getMultisigSetupComplete(); - if (f) { - writer.writeBool( - 1009, - f - ); - } - f = message.getMakerReadyToFundMultisig(); - if (f) { - writer.writeBool( - 1010, - f - ); - } - f = message.getMultisigDepositInitiated(); - if (f) { - writer.writeBool( - 1011, - f - ); - } -}; - - -/** - * optional string offer_id = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getOfferId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.setOfferId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string account_id = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.setAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional PubKeyRing pub_key_ring = 4; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 4)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this -*/ -proto.io.bisq.protobuffer.ProcessModel.prototype.setPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.clearPubKeyRing = function() { - return this.setPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.hasPubKeyRing = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string take_offer_fee_tx_id = 5; - * @return {string} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getTakeOfferFeeTxId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.setTakeOfferFeeTxId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional bytes payout_tx_signature = 6; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getPayoutTxSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * optional bytes payout_tx_signature = 6; - * This is a type-conversion wrapper around `getPayoutTxSignature()` - * @return {string} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getPayoutTxSignature_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPayoutTxSignature())); -}; - - -/** - * optional bytes payout_tx_signature = 6; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPayoutTxSignature()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getPayoutTxSignature_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPayoutTxSignature())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.setPayoutTxSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); -}; - - -/** - * repeated RawTransactionInput raw_transaction_inputs = 10; - * @return {!Array} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getRawTransactionInputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.RawTransactionInput, 10)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this -*/ -proto.io.bisq.protobuffer.ProcessModel.prototype.setRawTransactionInputsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 10, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.RawTransactionInput=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.RawTransactionInput} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.addRawTransactionInputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.io.bisq.protobuffer.RawTransactionInput, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.clearRawTransactionInputsList = function() { - return this.setRawTransactionInputsList([]); -}; - - -/** - * optional int64 change_output_value = 11; - * @return {number} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getChangeOutputValue = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.setChangeOutputValue = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * optional string change_output_address = 12; - * @return {string} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getChangeOutputAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.setChangeOutputAddress = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * optional bool use_savings_wallet = 13; - * @return {boolean} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getUseSavingsWallet = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.setUseSavingsWallet = function(value) { - return jspb.Message.setProto3BooleanField(this, 13, value); -}; - - -/** - * optional int64 funds_needed_for_trade_as_long = 14; - * @return {number} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getFundsNeededForTradeAsLong = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.setFundsNeededForTradeAsLong = function(value) { - return jspb.Message.setProto3IntField(this, 14, value); -}; - - -/** - * optional bytes my_multi_sig_pub_key = 15; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getMyMultiSigPubKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** - * optional bytes my_multi_sig_pub_key = 15; - * This is a type-conversion wrapper around `getMyMultiSigPubKey()` - * @return {string} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getMyMultiSigPubKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getMyMultiSigPubKey())); -}; - - -/** - * optional bytes my_multi_sig_pub_key = 15; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getMyMultiSigPubKey()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getMyMultiSigPubKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getMyMultiSigPubKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.setMyMultiSigPubKey = function(value) { - return jspb.Message.setProto3BytesField(this, 15, value); -}; - - -/** - * optional string payment_started_message_state = 17; - * @return {string} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getPaymentStartedMessageState = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.setPaymentStartedMessageState = function(value) { - return jspb.Message.setProto3StringField(this, 17, value); -}; - - -/** - * optional bytes mediated_payout_tx_signature = 18; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getMediatedPayoutTxSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 18, "")); -}; - - -/** - * optional bytes mediated_payout_tx_signature = 18; - * This is a type-conversion wrapper around `getMediatedPayoutTxSignature()` - * @return {string} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getMediatedPayoutTxSignature_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getMediatedPayoutTxSignature())); -}; - - -/** - * optional bytes mediated_payout_tx_signature = 18; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getMediatedPayoutTxSignature()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getMediatedPayoutTxSignature_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getMediatedPayoutTxSignature())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.setMediatedPayoutTxSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 18, value); -}; - - -/** - * optional int64 buyer_payout_amount_from_mediation = 19; - * @return {number} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getBuyerPayoutAmountFromMediation = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.setBuyerPayoutAmountFromMediation = function(value) { - return jspb.Message.setProto3IntField(this, 19, value); -}; - - -/** - * optional int64 seller_payout_amount_from_mediation = 20; - * @return {number} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getSellerPayoutAmountFromMediation = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.setSellerPayoutAmountFromMediation = function(value) { - return jspb.Message.setProto3IntField(this, 20, value); -}; - - -/** - * optional string maker_signature = 1001; - * @return {string} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getMakerSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1001, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.setMakerSignature = function(value) { - return jspb.Message.setProto3StringField(this, 1001, value); -}; - - -/** - * optional NodeAddress backup_arbitrator = 1002; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getBackupArbitrator = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 1002)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this -*/ -proto.io.bisq.protobuffer.ProcessModel.prototype.setBackupArbitrator = function(value) { - return jspb.Message.setWrapperField(this, 1002, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.clearBackupArbitrator = function() { - return this.setBackupArbitrator(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.hasBackupArbitrator = function() { - return jspb.Message.getField(this, 1002) != null; -}; - - -/** - * optional TradingPeer maker = 1003; - * @return {?proto.io.bisq.protobuffer.TradingPeer} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getMaker = function() { - return /** @type{?proto.io.bisq.protobuffer.TradingPeer} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TradingPeer, 1003)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.TradingPeer|undefined} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this -*/ -proto.io.bisq.protobuffer.ProcessModel.prototype.setMaker = function(value) { - return jspb.Message.setWrapperField(this, 1003, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.clearMaker = function() { - return this.setMaker(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.hasMaker = function() { - return jspb.Message.getField(this, 1003) != null; -}; - - -/** - * optional TradingPeer taker = 1004; - * @return {?proto.io.bisq.protobuffer.TradingPeer} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getTaker = function() { - return /** @type{?proto.io.bisq.protobuffer.TradingPeer} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TradingPeer, 1004)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.TradingPeer|undefined} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this -*/ -proto.io.bisq.protobuffer.ProcessModel.prototype.setTaker = function(value) { - return jspb.Message.setWrapperField(this, 1004, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.clearTaker = function() { - return this.setTaker(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.hasTaker = function() { - return jspb.Message.getField(this, 1004) != null; -}; - - -/** - * optional TradingPeer arbitrator = 1005; - * @return {?proto.io.bisq.protobuffer.TradingPeer} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getArbitrator = function() { - return /** @type{?proto.io.bisq.protobuffer.TradingPeer} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TradingPeer, 1005)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.TradingPeer|undefined} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this -*/ -proto.io.bisq.protobuffer.ProcessModel.prototype.setArbitrator = function(value) { - return jspb.Message.setWrapperField(this, 1005, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.clearArbitrator = function() { - return this.setArbitrator(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.hasArbitrator = function() { - return jspb.Message.getField(this, 1005) != null; -}; - - -/** - * optional NodeAddress temp_trading_peer_node_address = 1006; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getTempTradingPeerNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 1006)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this -*/ -proto.io.bisq.protobuffer.ProcessModel.prototype.setTempTradingPeerNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 1006, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.clearTempTradingPeerNodeAddress = function() { - return this.setTempTradingPeerNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.hasTempTradingPeerNodeAddress = function() { - return jspb.Message.getField(this, 1006) != null; -}; - - -/** - * optional string prepared_multisig_hex = 1007; - * @return {string} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getPreparedMultisigHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1007, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.setPreparedMultisigHex = function(value) { - return jspb.Message.setProto3StringField(this, 1007, value); -}; - - -/** - * optional string made_multisig_hex = 1008; - * @return {string} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getMadeMultisigHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1008, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.setMadeMultisigHex = function(value) { - return jspb.Message.setProto3StringField(this, 1008, value); -}; - - -/** - * optional bool multisig_setup_complete = 1009; - * @return {boolean} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getMultisigSetupComplete = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1009, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.setMultisigSetupComplete = function(value) { - return jspb.Message.setProto3BooleanField(this, 1009, value); -}; - - -/** - * optional bool maker_ready_to_fund_multisig = 1010; - * @return {boolean} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getMakerReadyToFundMultisig = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1010, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.setMakerReadyToFundMultisig = function(value) { - return jspb.Message.setProto3BooleanField(this, 1010, value); -}; - - -/** - * optional bool multisig_deposit_initiated = 1011; - * @return {boolean} - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.getMultisigDepositInitiated = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1011, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this - */ -proto.io.bisq.protobuffer.ProcessModel.prototype.setMultisigDepositInitiated = function(value) { - return jspb.Message.setProto3BooleanField(this, 1011, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.TradingPeer.repeatedFields_ = [12,1004]; - - - -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.TradingPeer.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.TradingPeer.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.TradingPeer} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.TradingPeer.toObject = function(includeInstance, msg) { - var f, obj = { - accountId: jspb.Message.getFieldWithDefault(msg, 1, ""), - paymentAccountId: jspb.Message.getFieldWithDefault(msg, 2, ""), - paymentMethodId: jspb.Message.getFieldWithDefault(msg, 3, ""), - paymentAccountPayloadHash: msg.getPaymentAccountPayloadHash_asB64(), - paymentAccountPayload: (f = msg.getPaymentAccountPayload()) && proto.io.bisq.protobuffer.PaymentAccountPayload.toObject(includeInstance, f), - payoutAddressString: jspb.Message.getFieldWithDefault(msg, 6, ""), - contractAsJson: jspb.Message.getFieldWithDefault(msg, 7, ""), - contractSignature: jspb.Message.getFieldWithDefault(msg, 8, ""), - signature: msg.getSignature_asB64(), - pubKeyRing: (f = msg.getPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), - multiSigPubKey: msg.getMultiSigPubKey_asB64(), - rawTransactionInputsList: jspb.Message.toObjectList(msg.getRawTransactionInputsList(), - proto.io.bisq.protobuffer.RawTransactionInput.toObject, includeInstance), - changeOutputValue: jspb.Message.getFieldWithDefault(msg, 13, 0), - changeOutputAddress: jspb.Message.getFieldWithDefault(msg, 14, ""), - accountAgeWitnessNonce: msg.getAccountAgeWitnessNonce_asB64(), - accountAgeWitnessSignature: msg.getAccountAgeWitnessSignature_asB64(), - currentDate: jspb.Message.getFieldWithDefault(msg, 17, 0), - mediatedPayoutTxSignature: msg.getMediatedPayoutTxSignature_asB64(), - reserveTxHash: jspb.Message.getFieldWithDefault(msg, 1001, ""), - reserveTxHex: jspb.Message.getFieldWithDefault(msg, 1002, ""), - reserveTxKey: jspb.Message.getFieldWithDefault(msg, 1003, ""), - reserveTxKeyImagesList: (f = jspb.Message.getRepeatedField(msg, 1004)) == null ? undefined : f, - preparedMultisigHex: jspb.Message.getFieldWithDefault(msg, 1005, ""), - madeMultisigHex: jspb.Message.getFieldWithDefault(msg, 1006, ""), - signedPayoutTxHex: jspb.Message.getFieldWithDefault(msg, 1007, ""), - depositTxHash: jspb.Message.getFieldWithDefault(msg, 1008, ""), - depositTxHex: jspb.Message.getFieldWithDefault(msg, 1009, ""), - depositTxKey: jspb.Message.getFieldWithDefault(msg, 1010, "") - }; - - 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.TradingPeer} - */ -proto.io.bisq.protobuffer.TradingPeer.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.TradingPeer; - return proto.io.bisq.protobuffer.TradingPeer.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.TradingPeer} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.TradingPeer} - */ -proto.io.bisq.protobuffer.TradingPeer.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.setAccountId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPaymentAccountId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setPaymentMethodId(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPaymentAccountPayloadHash(value); - break; - case 5: - var value = new proto.io.bisq.protobuffer.PaymentAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccountPayload.deserializeBinaryFromReader); - msg.setPaymentAccountPayload(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setPayoutAddressString(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setContractAsJson(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setContractSignature(value); - break; - case 9: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSignature(value); - break; - case 10: - var value = new proto.io.bisq.protobuffer.PubKeyRing; - reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); - msg.setPubKeyRing(value); - break; - case 11: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setMultiSigPubKey(value); - break; - case 12: - var value = new proto.io.bisq.protobuffer.RawTransactionInput; - reader.readMessage(value,proto.io.bisq.protobuffer.RawTransactionInput.deserializeBinaryFromReader); - msg.addRawTransactionInputs(value); - break; - case 13: - var value = /** @type {number} */ (reader.readInt64()); - msg.setChangeOutputValue(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setChangeOutputAddress(value); - break; - case 15: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setAccountAgeWitnessNonce(value); - break; - case 16: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setAccountAgeWitnessSignature(value); - break; - case 17: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCurrentDate(value); - break; - case 18: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setMediatedPayoutTxSignature(value); - break; - case 1001: - var value = /** @type {string} */ (reader.readString()); - msg.setReserveTxHash(value); - break; - case 1002: - var value = /** @type {string} */ (reader.readString()); - msg.setReserveTxHex(value); - break; - case 1003: - var value = /** @type {string} */ (reader.readString()); - msg.setReserveTxKey(value); - break; - case 1004: - var value = /** @type {string} */ (reader.readString()); - msg.addReserveTxKeyImages(value); - break; - case 1005: - var value = /** @type {string} */ (reader.readString()); - msg.setPreparedMultisigHex(value); - break; - case 1006: - var value = /** @type {string} */ (reader.readString()); - msg.setMadeMultisigHex(value); - break; - case 1007: - var value = /** @type {string} */ (reader.readString()); - msg.setSignedPayoutTxHex(value); - break; - case 1008: - var value = /** @type {string} */ (reader.readString()); - msg.setDepositTxHash(value); - break; - case 1009: - var value = /** @type {string} */ (reader.readString()); - msg.setDepositTxHex(value); - break; - case 1010: - var value = /** @type {string} */ (reader.readString()); - msg.setDepositTxKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.TradingPeer.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.TradingPeer} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.TradingPeer.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccountId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPaymentAccountId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getPaymentMethodId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPaymentAccountPayloadHash_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getPaymentAccountPayload(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.io.bisq.protobuffer.PaymentAccountPayload.serializeBinaryToWriter - ); - } - f = message.getPayoutAddressString(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getContractAsJson(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getContractSignature(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getSignature_asU8(); - if (f.length > 0) { - writer.writeBytes( - 9, - f - ); - } - f = message.getPubKeyRing(); - if (f != null) { - writer.writeMessage( - 10, - f, - proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter - ); - } - f = message.getMultiSigPubKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 11, - f - ); - } - f = message.getRawTransactionInputsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 12, - f, - proto.io.bisq.protobuffer.RawTransactionInput.serializeBinaryToWriter - ); - } - f = message.getChangeOutputValue(); - if (f !== 0) { - writer.writeInt64( - 13, - f - ); - } - f = message.getChangeOutputAddress(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getAccountAgeWitnessNonce_asU8(); - if (f.length > 0) { - writer.writeBytes( - 15, - f - ); - } - f = message.getAccountAgeWitnessSignature_asU8(); - if (f.length > 0) { - writer.writeBytes( - 16, - f - ); - } - f = message.getCurrentDate(); - if (f !== 0) { - writer.writeInt64( - 17, - f - ); - } - f = message.getMediatedPayoutTxSignature_asU8(); - if (f.length > 0) { - writer.writeBytes( - 18, - f - ); - } - f = message.getReserveTxHash(); - if (f.length > 0) { - writer.writeString( - 1001, - f - ); - } - f = message.getReserveTxHex(); - if (f.length > 0) { - writer.writeString( - 1002, - f - ); - } - f = message.getReserveTxKey(); - if (f.length > 0) { - writer.writeString( - 1003, - f - ); - } - f = message.getReserveTxKeyImagesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1004, - f - ); - } - f = message.getPreparedMultisigHex(); - if (f.length > 0) { - writer.writeString( - 1005, - f - ); - } - f = message.getMadeMultisigHex(); - if (f.length > 0) { - writer.writeString( - 1006, - f - ); - } - f = message.getSignedPayoutTxHex(); - if (f.length > 0) { - writer.writeString( - 1007, - f - ); - } - f = message.getDepositTxHash(); - if (f.length > 0) { - writer.writeString( - 1008, - f - ); - } - f = message.getDepositTxHex(); - if (f.length > 0) { - writer.writeString( - 1009, - f - ); - } - f = message.getDepositTxKey(); - if (f.length > 0) { - writer.writeString( - 1010, - f - ); - } -}; - - -/** - * optional string account_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string payment_account_id = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getPaymentAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setPaymentAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string payment_method_id = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getPaymentMethodId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setPaymentMethodId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional bytes payment_account_payload_hash = 4; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getPaymentAccountPayloadHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes payment_account_payload_hash = 4; - * This is a type-conversion wrapper around `getPaymentAccountPayloadHash()` - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getPaymentAccountPayloadHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPaymentAccountPayloadHash())); -}; - - -/** - * optional bytes payment_account_payload_hash = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPaymentAccountPayloadHash()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getPaymentAccountPayloadHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPaymentAccountPayloadHash())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setPaymentAccountPayloadHash = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * optional PaymentAccountPayload payment_account_payload = 5; - * @return {?proto.io.bisq.protobuffer.PaymentAccountPayload} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getPaymentAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.PaymentAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PaymentAccountPayload, 5)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PaymentAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this -*/ -proto.io.bisq.protobuffer.TradingPeer.prototype.setPaymentAccountPayload = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.clearPaymentAccountPayload = function() { - return this.setPaymentAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.hasPaymentAccountPayload = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional string payout_address_string = 6; - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getPayoutAddressString = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setPayoutAddressString = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string contract_as_json = 7; - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getContractAsJson = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setContractAsJson = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string contract_signature = 8; - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getContractSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setContractSignature = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional bytes signature = 9; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * optional bytes signature = 9; - * This is a type-conversion wrapper around `getSignature()` - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getSignature_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSignature())); -}; - - -/** - * optional bytes signature = 9; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSignature()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getSignature_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSignature())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 9, value); -}; - - -/** - * optional PubKeyRing pub_key_ring = 10; - * @return {?proto.io.bisq.protobuffer.PubKeyRing} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getPubKeyRing = function() { - return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 10)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PubKeyRing|undefined} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this -*/ -proto.io.bisq.protobuffer.TradingPeer.prototype.setPubKeyRing = function(value) { - return jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.clearPubKeyRing = function() { - return this.setPubKeyRing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.hasPubKeyRing = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional bytes multi_sig_pub_key = 11; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getMultiSigPubKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * optional bytes multi_sig_pub_key = 11; - * This is a type-conversion wrapper around `getMultiSigPubKey()` - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getMultiSigPubKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getMultiSigPubKey())); -}; - - -/** - * optional bytes multi_sig_pub_key = 11; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getMultiSigPubKey()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getMultiSigPubKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getMultiSigPubKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setMultiSigPubKey = function(value) { - return jspb.Message.setProto3BytesField(this, 11, value); -}; - - -/** - * repeated RawTransactionInput raw_transaction_inputs = 12; - * @return {!Array} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getRawTransactionInputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.RawTransactionInput, 12)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this -*/ -proto.io.bisq.protobuffer.TradingPeer.prototype.setRawTransactionInputsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 12, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.RawTransactionInput=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.RawTransactionInput} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.addRawTransactionInputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.io.bisq.protobuffer.RawTransactionInput, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.clearRawTransactionInputsList = function() { - return this.setRawTransactionInputsList([]); -}; - - -/** - * optional int64 change_output_value = 13; - * @return {number} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getChangeOutputValue = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setChangeOutputValue = function(value) { - return jspb.Message.setProto3IntField(this, 13, value); -}; - - -/** - * optional string change_output_address = 14; - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getChangeOutputAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setChangeOutputAddress = function(value) { - return jspb.Message.setProto3StringField(this, 14, value); -}; - - -/** - * optional bytes account_age_witness_nonce = 15; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getAccountAgeWitnessNonce = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** - * optional bytes account_age_witness_nonce = 15; - * This is a type-conversion wrapper around `getAccountAgeWitnessNonce()` - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getAccountAgeWitnessNonce_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getAccountAgeWitnessNonce())); -}; - - -/** - * optional bytes account_age_witness_nonce = 15; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getAccountAgeWitnessNonce()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getAccountAgeWitnessNonce_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getAccountAgeWitnessNonce())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setAccountAgeWitnessNonce = function(value) { - return jspb.Message.setProto3BytesField(this, 15, value); -}; - - -/** - * optional bytes account_age_witness_signature = 16; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getAccountAgeWitnessSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** - * optional bytes account_age_witness_signature = 16; - * This is a type-conversion wrapper around `getAccountAgeWitnessSignature()` - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getAccountAgeWitnessSignature_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getAccountAgeWitnessSignature())); -}; - - -/** - * optional bytes account_age_witness_signature = 16; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getAccountAgeWitnessSignature()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getAccountAgeWitnessSignature_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getAccountAgeWitnessSignature())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setAccountAgeWitnessSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 16, value); -}; - - -/** - * optional int64 current_date = 17; - * @return {number} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getCurrentDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setCurrentDate = function(value) { - return jspb.Message.setProto3IntField(this, 17, value); -}; - - -/** - * optional bytes mediated_payout_tx_signature = 18; - * @return {!(string|Uint8Array)} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getMediatedPayoutTxSignature = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 18, "")); -}; - - -/** - * optional bytes mediated_payout_tx_signature = 18; - * This is a type-conversion wrapper around `getMediatedPayoutTxSignature()` - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getMediatedPayoutTxSignature_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getMediatedPayoutTxSignature())); -}; - - -/** - * optional bytes mediated_payout_tx_signature = 18; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getMediatedPayoutTxSignature()` - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getMediatedPayoutTxSignature_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getMediatedPayoutTxSignature())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setMediatedPayoutTxSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 18, value); -}; - - -/** - * optional string reserve_tx_hash = 1001; - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getReserveTxHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1001, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setReserveTxHash = function(value) { - return jspb.Message.setProto3StringField(this, 1001, value); -}; - - -/** - * optional string reserve_tx_hex = 1002; - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getReserveTxHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1002, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setReserveTxHex = function(value) { - return jspb.Message.setProto3StringField(this, 1002, value); -}; - - -/** - * optional string reserve_tx_key = 1003; - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getReserveTxKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1003, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setReserveTxKey = function(value) { - return jspb.Message.setProto3StringField(this, 1003, value); -}; - - -/** - * repeated string reserve_tx_key_images = 1004; - * @return {!Array} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getReserveTxKeyImagesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1004)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setReserveTxKeyImagesList = function(value) { - return jspb.Message.setField(this, 1004, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.addReserveTxKeyImages = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1004, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.clearReserveTxKeyImagesList = function() { - return this.setReserveTxKeyImagesList([]); -}; - - -/** - * optional string prepared_multisig_hex = 1005; - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getPreparedMultisigHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1005, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setPreparedMultisigHex = function(value) { - return jspb.Message.setProto3StringField(this, 1005, value); -}; - - -/** - * optional string made_multisig_hex = 1006; - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getMadeMultisigHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1006, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setMadeMultisigHex = function(value) { - return jspb.Message.setProto3StringField(this, 1006, value); -}; - - -/** - * optional string signed_payout_tx_hex = 1007; - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getSignedPayoutTxHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1007, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setSignedPayoutTxHex = function(value) { - return jspb.Message.setProto3StringField(this, 1007, value); -}; - - -/** - * optional string deposit_tx_hash = 1008; - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getDepositTxHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1008, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setDepositTxHash = function(value) { - return jspb.Message.setProto3StringField(this, 1008, value); -}; - - -/** - * optional string deposit_tx_hex = 1009; - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getDepositTxHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1009, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setDepositTxHex = function(value) { - return jspb.Message.setProto3StringField(this, 1009, value); -}; - - -/** - * optional string deposit_tx_key = 1010; - * @return {string} - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.getDepositTxKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1010, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradingPeer} returns this - */ -proto.io.bisq.protobuffer.TradingPeer.prototype.setDepositTxKey = function(value) { - return jspb.Message.setProto3StringField(this, 1010, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.ArbitrationDisputeList.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.ArbitrationDisputeList.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.ArbitrationDisputeList.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.ArbitrationDisputeList} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ArbitrationDisputeList.toObject = function(includeInstance, msg) { - var f, obj = { - disputeList: jspb.Message.toObjectList(msg.getDisputeList(), - proto.io.bisq.protobuffer.Dispute.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.ArbitrationDisputeList} - */ -proto.io.bisq.protobuffer.ArbitrationDisputeList.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.ArbitrationDisputeList; - return proto.io.bisq.protobuffer.ArbitrationDisputeList.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.ArbitrationDisputeList} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.ArbitrationDisputeList} - */ -proto.io.bisq.protobuffer.ArbitrationDisputeList.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.Dispute; - reader.readMessage(value,proto.io.bisq.protobuffer.Dispute.deserializeBinaryFromReader); - msg.addDispute(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.ArbitrationDisputeList.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.ArbitrationDisputeList.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.ArbitrationDisputeList} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.ArbitrationDisputeList.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDisputeList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.io.bisq.protobuffer.Dispute.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Dispute dispute = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.ArbitrationDisputeList.prototype.getDisputeList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.Dispute, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.ArbitrationDisputeList} returns this -*/ -proto.io.bisq.protobuffer.ArbitrationDisputeList.prototype.setDisputeList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.Dispute=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Dispute} - */ -proto.io.bisq.protobuffer.ArbitrationDisputeList.prototype.addDispute = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.Dispute, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.ArbitrationDisputeList} returns this - */ -proto.io.bisq.protobuffer.ArbitrationDisputeList.prototype.clearDisputeList = function() { - return this.setDisputeList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.MediationDisputeList.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.MediationDisputeList.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.MediationDisputeList.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.MediationDisputeList} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MediationDisputeList.toObject = function(includeInstance, msg) { - var f, obj = { - disputeList: jspb.Message.toObjectList(msg.getDisputeList(), - proto.io.bisq.protobuffer.Dispute.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.MediationDisputeList} - */ -proto.io.bisq.protobuffer.MediationDisputeList.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.MediationDisputeList; - return proto.io.bisq.protobuffer.MediationDisputeList.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.MediationDisputeList} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.MediationDisputeList} - */ -proto.io.bisq.protobuffer.MediationDisputeList.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.Dispute; - reader.readMessage(value,proto.io.bisq.protobuffer.Dispute.deserializeBinaryFromReader); - msg.addDispute(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.MediationDisputeList.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.MediationDisputeList.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.MediationDisputeList} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MediationDisputeList.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDisputeList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.io.bisq.protobuffer.Dispute.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Dispute dispute = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.MediationDisputeList.prototype.getDisputeList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.Dispute, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.MediationDisputeList} returns this -*/ -proto.io.bisq.protobuffer.MediationDisputeList.prototype.setDisputeList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.Dispute=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Dispute} - */ -proto.io.bisq.protobuffer.MediationDisputeList.prototype.addDispute = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.Dispute, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.MediationDisputeList} returns this - */ -proto.io.bisq.protobuffer.MediationDisputeList.prototype.clearDisputeList = function() { - return this.setDisputeList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.RefundDisputeList.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.RefundDisputeList.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.RefundDisputeList.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.RefundDisputeList} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RefundDisputeList.toObject = function(includeInstance, msg) { - var f, obj = { - disputeList: jspb.Message.toObjectList(msg.getDisputeList(), - proto.io.bisq.protobuffer.Dispute.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.RefundDisputeList} - */ -proto.io.bisq.protobuffer.RefundDisputeList.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.RefundDisputeList; - return proto.io.bisq.protobuffer.RefundDisputeList.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.RefundDisputeList} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.RefundDisputeList} - */ -proto.io.bisq.protobuffer.RefundDisputeList.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.Dispute; - reader.readMessage(value,proto.io.bisq.protobuffer.Dispute.deserializeBinaryFromReader); - msg.addDispute(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.RefundDisputeList.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.RefundDisputeList.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.RefundDisputeList} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.RefundDisputeList.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDisputeList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.io.bisq.protobuffer.Dispute.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Dispute dispute = 1; - * @return {!Array} - */ -proto.io.bisq.protobuffer.RefundDisputeList.prototype.getDisputeList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.Dispute, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.RefundDisputeList} returns this -*/ -proto.io.bisq.protobuffer.RefundDisputeList.prototype.setDisputeList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.Dispute=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Dispute} - */ -proto.io.bisq.protobuffer.RefundDisputeList.prototype.addDispute = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.Dispute, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.RefundDisputeList} returns this - */ -proto.io.bisq.protobuffer.RefundDisputeList.prototype.clearDisputeList = function() { - return this.setDisputeList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.PreferencesPayload.repeatedFields_ = [3,4,27,32,53]; - - - -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.PreferencesPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PreferencesPayload.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.PreferencesPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PreferencesPayload.toObject = function(includeInstance, msg) { - var f, obj = { - userLanguage: jspb.Message.getFieldWithDefault(msg, 1, ""), - userCountry: (f = msg.getUserCountry()) && proto.io.bisq.protobuffer.Country.toObject(includeInstance, f), - fiatCurrenciesList: jspb.Message.toObjectList(msg.getFiatCurrenciesList(), - proto.io.bisq.protobuffer.TradeCurrency.toObject, includeInstance), - cryptoCurrenciesList: jspb.Message.toObjectList(msg.getCryptoCurrenciesList(), - proto.io.bisq.protobuffer.TradeCurrency.toObject, includeInstance), - blockChainExplorerMainNet: (f = msg.getBlockChainExplorerMainNet()) && proto.io.bisq.protobuffer.BlockChainExplorer.toObject(includeInstance, f), - blockChainExplorerTestNet: (f = msg.getBlockChainExplorerTestNet()) && proto.io.bisq.protobuffer.BlockChainExplorer.toObject(includeInstance, f), - backupDirectory: jspb.Message.getFieldWithDefault(msg, 7, ""), - autoSelectArbitrators: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - dontShowAgainMapMap: (f = msg.getDontShowAgainMapMap()) ? f.toObject(includeInstance, undefined) : [], - tacAccepted: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), - useTorForBitcoinJ: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), - showOwnOffersInOfferBook: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), - preferredTradeCurrency: (f = msg.getPreferredTradeCurrency()) && proto.io.bisq.protobuffer.TradeCurrency.toObject(includeInstance, f), - withdrawalTxFeeInVbytes: jspb.Message.getFieldWithDefault(msg, 14, 0), - useCustomWithdrawalTxFee: jspb.Message.getBooleanFieldWithDefault(msg, 15, false), - maxPriceDistanceInPercent: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0), - offerBookChartScreenCurrencyCode: jspb.Message.getFieldWithDefault(msg, 17, ""), - tradeChartsScreenCurrencyCode: jspb.Message.getFieldWithDefault(msg, 18, ""), - buyScreenCurrencyCode: jspb.Message.getFieldWithDefault(msg, 19, ""), - sellScreenCurrencyCode: jspb.Message.getFieldWithDefault(msg, 20, ""), - tradeStatisticsTickUnitIndex: jspb.Message.getFieldWithDefault(msg, 21, 0), - resyncSpvRequested: jspb.Message.getBooleanFieldWithDefault(msg, 22, false), - sortMarketCurrenciesNumerically: jspb.Message.getBooleanFieldWithDefault(msg, 23, false), - usePercentageBasedPrice: jspb.Message.getBooleanFieldWithDefault(msg, 24, false), - peerTagMapMap: (f = msg.getPeerTagMapMap()) ? f.toObject(includeInstance, undefined) : [], - bitcoinNodes: jspb.Message.getFieldWithDefault(msg, 26, ""), - ignoreTradersListList: (f = jspb.Message.getRepeatedField(msg, 27)) == null ? undefined : f, - directoryChooserPath: jspb.Message.getFieldWithDefault(msg, 28, ""), - buyerSecurityDepositAsLong: jspb.Message.getFieldWithDefault(msg, 29, 0), - useAnimations: jspb.Message.getBooleanFieldWithDefault(msg, 30, false), - selectedpaymentAccountForCreateoffer: (f = msg.getSelectedpaymentAccountForCreateoffer()) && proto.io.bisq.protobuffer.PaymentAccount.toObject(includeInstance, f), - bridgeAddressesList: (f = jspb.Message.getRepeatedField(msg, 32)) == null ? undefined : f, - bridgeOptionOrdinal: jspb.Message.getFieldWithDefault(msg, 33, 0), - torTransportOrdinal: jspb.Message.getFieldWithDefault(msg, 34, 0), - customBridges: jspb.Message.getFieldWithDefault(msg, 35, ""), - bitcoinNodesOptionOrdinal: jspb.Message.getFieldWithDefault(msg, 36, 0), - referralId: jspb.Message.getFieldWithDefault(msg, 37, ""), - phoneKeyAndToken: jspb.Message.getFieldWithDefault(msg, 38, ""), - useSoundForMobileNotifications: jspb.Message.getBooleanFieldWithDefault(msg, 39, false), - useTradeNotifications: jspb.Message.getBooleanFieldWithDefault(msg, 40, false), - useMarketNotifications: jspb.Message.getBooleanFieldWithDefault(msg, 41, false), - usePriceNotifications: jspb.Message.getBooleanFieldWithDefault(msg, 42, false), - useStandbyMode: jspb.Message.getBooleanFieldWithDefault(msg, 43, false), - rpcUser: jspb.Message.getFieldWithDefault(msg, 44, ""), - rpcPw: jspb.Message.getFieldWithDefault(msg, 45, ""), - takeOfferSelectedPaymentAccountId: jspb.Message.getFieldWithDefault(msg, 46, ""), - buyerSecurityDepositAsPercent: jspb.Message.getFloatingPointFieldWithDefault(msg, 47, 0.0), - ignoreDustThreshold: jspb.Message.getFieldWithDefault(msg, 48, 0), - buyerSecurityDepositAsPercentForCrypto: jspb.Message.getFloatingPointFieldWithDefault(msg, 49, 0.0), - blockNotifyPort: jspb.Message.getFieldWithDefault(msg, 50, 0), - cssTheme: jspb.Message.getFieldWithDefault(msg, 51, 0), - tacAcceptedV120: jspb.Message.getBooleanFieldWithDefault(msg, 52, false), - autoConfirmSettingsList: jspb.Message.toObjectList(msg.getAutoConfirmSettingsList(), - proto.io.bisq.protobuffer.AutoConfirmSettings.toObject, includeInstance), - hideNonAccountPaymentMethods: jspb.Message.getBooleanFieldWithDefault(msg, 54, false), - showOffersMatchingMyAccounts: jspb.Message.getBooleanFieldWithDefault(msg, 55, false), - denyApiTaker: jspb.Message.getBooleanFieldWithDefault(msg, 56, false), - notifyOnPreRelease: jspb.Message.getBooleanFieldWithDefault(msg, 57, 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.PreferencesPayload} - */ -proto.io.bisq.protobuffer.PreferencesPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PreferencesPayload; - return proto.io.bisq.protobuffer.PreferencesPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PreferencesPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} - */ -proto.io.bisq.protobuffer.PreferencesPayload.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.setUserLanguage(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.Country; - reader.readMessage(value,proto.io.bisq.protobuffer.Country.deserializeBinaryFromReader); - msg.setUserCountry(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.TradeCurrency; - reader.readMessage(value,proto.io.bisq.protobuffer.TradeCurrency.deserializeBinaryFromReader); - msg.addFiatCurrencies(value); - break; - case 4: - var value = new proto.io.bisq.protobuffer.TradeCurrency; - reader.readMessage(value,proto.io.bisq.protobuffer.TradeCurrency.deserializeBinaryFromReader); - msg.addCryptoCurrencies(value); - break; - case 5: - var value = new proto.io.bisq.protobuffer.BlockChainExplorer; - reader.readMessage(value,proto.io.bisq.protobuffer.BlockChainExplorer.deserializeBinaryFromReader); - msg.setBlockChainExplorerMainNet(value); - break; - case 6: - var value = new proto.io.bisq.protobuffer.BlockChainExplorer; - reader.readMessage(value,proto.io.bisq.protobuffer.BlockChainExplorer.deserializeBinaryFromReader); - msg.setBlockChainExplorerTestNet(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setBackupDirectory(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAutoSelectArbitrators(value); - break; - case 9: - var value = msg.getDontShowAgainMapMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBool, null, "", false); - }); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setTacAccepted(value); - break; - case 11: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUseTorForBitcoinJ(value); - break; - case 12: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setShowOwnOffersInOfferBook(value); - break; - case 13: - var value = new proto.io.bisq.protobuffer.TradeCurrency; - reader.readMessage(value,proto.io.bisq.protobuffer.TradeCurrency.deserializeBinaryFromReader); - msg.setPreferredTradeCurrency(value); - break; - case 14: - var value = /** @type {number} */ (reader.readInt64()); - msg.setWithdrawalTxFeeInVbytes(value); - break; - case 15: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUseCustomWithdrawalTxFee(value); - break; - case 16: - var value = /** @type {number} */ (reader.readDouble()); - msg.setMaxPriceDistanceInPercent(value); - break; - case 17: - var value = /** @type {string} */ (reader.readString()); - msg.setOfferBookChartScreenCurrencyCode(value); - break; - case 18: - var value = /** @type {string} */ (reader.readString()); - msg.setTradeChartsScreenCurrencyCode(value); - break; - case 19: - var value = /** @type {string} */ (reader.readString()); - msg.setBuyScreenCurrencyCode(value); - break; - case 20: - var value = /** @type {string} */ (reader.readString()); - msg.setSellScreenCurrencyCode(value); - break; - case 21: - var value = /** @type {number} */ (reader.readInt32()); - msg.setTradeStatisticsTickUnitIndex(value); - break; - case 22: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setResyncSpvRequested(value); - break; - case 23: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSortMarketCurrenciesNumerically(value); - break; - case 24: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUsePercentageBasedPrice(value); - break; - case 25: - var value = msg.getPeerTagMapMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 26: - var value = /** @type {string} */ (reader.readString()); - msg.setBitcoinNodes(value); - break; - case 27: - var value = /** @type {string} */ (reader.readString()); - msg.addIgnoreTradersList(value); - break; - case 28: - var value = /** @type {string} */ (reader.readString()); - msg.setDirectoryChooserPath(value); - break; - case 29: - var value = /** @type {number} */ (reader.readInt64()); - msg.setBuyerSecurityDepositAsLong(value); - break; - case 30: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUseAnimations(value); - break; - case 31: - var value = new proto.io.bisq.protobuffer.PaymentAccount; - reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccount.deserializeBinaryFromReader); - msg.setSelectedpaymentAccountForCreateoffer(value); - break; - case 32: - var value = /** @type {string} */ (reader.readString()); - msg.addBridgeAddresses(value); - break; - case 33: - var value = /** @type {number} */ (reader.readInt32()); - msg.setBridgeOptionOrdinal(value); - break; - case 34: - var value = /** @type {number} */ (reader.readInt32()); - msg.setTorTransportOrdinal(value); - break; - case 35: - var value = /** @type {string} */ (reader.readString()); - msg.setCustomBridges(value); - break; - case 36: - var value = /** @type {number} */ (reader.readInt32()); - msg.setBitcoinNodesOptionOrdinal(value); - break; - case 37: - var value = /** @type {string} */ (reader.readString()); - msg.setReferralId(value); - break; - case 38: - var value = /** @type {string} */ (reader.readString()); - msg.setPhoneKeyAndToken(value); - break; - case 39: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUseSoundForMobileNotifications(value); - break; - case 40: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUseTradeNotifications(value); - break; - case 41: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUseMarketNotifications(value); - break; - case 42: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUsePriceNotifications(value); - break; - case 43: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUseStandbyMode(value); - break; - case 44: - var value = /** @type {string} */ (reader.readString()); - msg.setRpcUser(value); - break; - case 45: - var value = /** @type {string} */ (reader.readString()); - msg.setRpcPw(value); - break; - case 46: - var value = /** @type {string} */ (reader.readString()); - msg.setTakeOfferSelectedPaymentAccountId(value); - break; - case 47: - var value = /** @type {number} */ (reader.readDouble()); - msg.setBuyerSecurityDepositAsPercent(value); - break; - case 48: - var value = /** @type {number} */ (reader.readInt32()); - msg.setIgnoreDustThreshold(value); - break; - case 49: - var value = /** @type {number} */ (reader.readDouble()); - msg.setBuyerSecurityDepositAsPercentForCrypto(value); - break; - case 50: - var value = /** @type {number} */ (reader.readInt32()); - msg.setBlockNotifyPort(value); - break; - case 51: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCssTheme(value); - break; - case 52: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setTacAcceptedV120(value); - break; - case 53: - var value = new proto.io.bisq.protobuffer.AutoConfirmSettings; - reader.readMessage(value,proto.io.bisq.protobuffer.AutoConfirmSettings.deserializeBinaryFromReader); - msg.addAutoConfirmSettings(value); - break; - case 54: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHideNonAccountPaymentMethods(value); - break; - case 55: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setShowOffersMatchingMyAccounts(value); - break; - case 56: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDenyApiTaker(value); - break; - case 57: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setNotifyOnPreRelease(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PreferencesPayload.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.PreferencesPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PreferencesPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserLanguage(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserCountry(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.Country.serializeBinaryToWriter - ); - } - f = message.getFiatCurrenciesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.io.bisq.protobuffer.TradeCurrency.serializeBinaryToWriter - ); - } - f = message.getCryptoCurrenciesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.io.bisq.protobuffer.TradeCurrency.serializeBinaryToWriter - ); - } - f = message.getBlockChainExplorerMainNet(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.io.bisq.protobuffer.BlockChainExplorer.serializeBinaryToWriter - ); - } - f = message.getBlockChainExplorerTestNet(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.io.bisq.protobuffer.BlockChainExplorer.serializeBinaryToWriter - ); - } - f = message.getBackupDirectory(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getAutoSelectArbitrators(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getDontShowAgainMapMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeBool); - } - f = message.getTacAccepted(); - if (f) { - writer.writeBool( - 10, - f - ); - } - f = message.getUseTorForBitcoinJ(); - if (f) { - writer.writeBool( - 11, - f - ); - } - f = message.getShowOwnOffersInOfferBook(); - if (f) { - writer.writeBool( - 12, - f - ); - } - f = message.getPreferredTradeCurrency(); - if (f != null) { - writer.writeMessage( - 13, - f, - proto.io.bisq.protobuffer.TradeCurrency.serializeBinaryToWriter - ); - } - f = message.getWithdrawalTxFeeInVbytes(); - if (f !== 0) { - writer.writeInt64( - 14, - f - ); - } - f = message.getUseCustomWithdrawalTxFee(); - if (f) { - writer.writeBool( - 15, - f - ); - } - f = message.getMaxPriceDistanceInPercent(); - if (f !== 0.0) { - writer.writeDouble( - 16, - f - ); - } - f = message.getOfferBookChartScreenCurrencyCode(); - if (f.length > 0) { - writer.writeString( - 17, - f - ); - } - f = message.getTradeChartsScreenCurrencyCode(); - if (f.length > 0) { - writer.writeString( - 18, - f - ); - } - f = message.getBuyScreenCurrencyCode(); - if (f.length > 0) { - writer.writeString( - 19, - f - ); - } - f = message.getSellScreenCurrencyCode(); - if (f.length > 0) { - writer.writeString( - 20, - f - ); - } - f = message.getTradeStatisticsTickUnitIndex(); - if (f !== 0) { - writer.writeInt32( - 21, - f - ); - } - f = message.getResyncSpvRequested(); - if (f) { - writer.writeBool( - 22, - f - ); - } - f = message.getSortMarketCurrenciesNumerically(); - if (f) { - writer.writeBool( - 23, - f - ); - } - f = message.getUsePercentageBasedPrice(); - if (f) { - writer.writeBool( - 24, - f - ); - } - f = message.getPeerTagMapMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(25, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getBitcoinNodes(); - if (f.length > 0) { - writer.writeString( - 26, - f - ); - } - f = message.getIgnoreTradersListList(); - if (f.length > 0) { - writer.writeRepeatedString( - 27, - f - ); - } - f = message.getDirectoryChooserPath(); - if (f.length > 0) { - writer.writeString( - 28, - f - ); - } - f = message.getBuyerSecurityDepositAsLong(); - if (f !== 0) { - writer.writeInt64( - 29, - f - ); - } - f = message.getUseAnimations(); - if (f) { - writer.writeBool( - 30, - f - ); - } - f = message.getSelectedpaymentAccountForCreateoffer(); - if (f != null) { - writer.writeMessage( - 31, - f, - proto.io.bisq.protobuffer.PaymentAccount.serializeBinaryToWriter - ); - } - f = message.getBridgeAddressesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 32, - f - ); - } - f = message.getBridgeOptionOrdinal(); - if (f !== 0) { - writer.writeInt32( - 33, - f - ); - } - f = message.getTorTransportOrdinal(); - if (f !== 0) { - writer.writeInt32( - 34, - f - ); - } - f = message.getCustomBridges(); - if (f.length > 0) { - writer.writeString( - 35, - f - ); - } - f = message.getBitcoinNodesOptionOrdinal(); - if (f !== 0) { - writer.writeInt32( - 36, - f - ); - } - f = message.getReferralId(); - if (f.length > 0) { - writer.writeString( - 37, - f - ); - } - f = message.getPhoneKeyAndToken(); - if (f.length > 0) { - writer.writeString( - 38, - f - ); - } - f = message.getUseSoundForMobileNotifications(); - if (f) { - writer.writeBool( - 39, - f - ); - } - f = message.getUseTradeNotifications(); - if (f) { - writer.writeBool( - 40, - f - ); - } - f = message.getUseMarketNotifications(); - if (f) { - writer.writeBool( - 41, - f - ); - } - f = message.getUsePriceNotifications(); - if (f) { - writer.writeBool( - 42, - f - ); - } - f = message.getUseStandbyMode(); - if (f) { - writer.writeBool( - 43, - f - ); - } - f = message.getRpcUser(); - if (f.length > 0) { - writer.writeString( - 44, - f - ); - } - f = message.getRpcPw(); - if (f.length > 0) { - writer.writeString( - 45, - f - ); - } - f = message.getTakeOfferSelectedPaymentAccountId(); - if (f.length > 0) { - writer.writeString( - 46, - f - ); - } - f = message.getBuyerSecurityDepositAsPercent(); - if (f !== 0.0) { - writer.writeDouble( - 47, - f - ); - } - f = message.getIgnoreDustThreshold(); - if (f !== 0) { - writer.writeInt32( - 48, - f - ); - } - f = message.getBuyerSecurityDepositAsPercentForCrypto(); - if (f !== 0.0) { - writer.writeDouble( - 49, - f - ); - } - f = message.getBlockNotifyPort(); - if (f !== 0) { - writer.writeInt32( - 50, - f - ); - } - f = message.getCssTheme(); - if (f !== 0) { - writer.writeInt32( - 51, - f - ); - } - f = message.getTacAcceptedV120(); - if (f) { - writer.writeBool( - 52, - f - ); - } - f = message.getAutoConfirmSettingsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 53, - f, - proto.io.bisq.protobuffer.AutoConfirmSettings.serializeBinaryToWriter - ); - } - f = message.getHideNonAccountPaymentMethods(); - if (f) { - writer.writeBool( - 54, - f - ); - } - f = message.getShowOffersMatchingMyAccounts(); - if (f) { - writer.writeBool( - 55, - f - ); - } - f = message.getDenyApiTaker(); - if (f) { - writer.writeBool( - 56, - f - ); - } - f = message.getNotifyOnPreRelease(); - if (f) { - writer.writeBool( - 57, - f - ); - } -}; - - -/** - * optional string user_language = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUserLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setUserLanguage = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Country user_country = 2; - * @return {?proto.io.bisq.protobuffer.Country} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUserCountry = function() { - return /** @type{?proto.io.bisq.protobuffer.Country} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Country, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Country|undefined} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this -*/ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setUserCountry = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.clearUserCountry = function() { - return this.setUserCountry(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.hasUserCountry = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * repeated TradeCurrency fiat_currencies = 3; - * @return {!Array} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getFiatCurrenciesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.TradeCurrency, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this -*/ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setFiatCurrenciesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.TradeCurrency=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.TradeCurrency} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.addFiatCurrencies = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.io.bisq.protobuffer.TradeCurrency, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.clearFiatCurrenciesList = function() { - return this.setFiatCurrenciesList([]); -}; - - -/** - * repeated TradeCurrency crypto_currencies = 4; - * @return {!Array} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getCryptoCurrenciesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.TradeCurrency, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this -*/ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setCryptoCurrenciesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.TradeCurrency=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.TradeCurrency} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.addCryptoCurrencies = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.io.bisq.protobuffer.TradeCurrency, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.clearCryptoCurrenciesList = function() { - return this.setCryptoCurrenciesList([]); -}; - - -/** - * optional BlockChainExplorer block_chain_explorer_main_net = 5; - * @return {?proto.io.bisq.protobuffer.BlockChainExplorer} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBlockChainExplorerMainNet = function() { - return /** @type{?proto.io.bisq.protobuffer.BlockChainExplorer} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.BlockChainExplorer, 5)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.BlockChainExplorer|undefined} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this -*/ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setBlockChainExplorerMainNet = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.clearBlockChainExplorerMainNet = function() { - return this.setBlockChainExplorerMainNet(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.hasBlockChainExplorerMainNet = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional BlockChainExplorer block_chain_explorer_test_net = 6; - * @return {?proto.io.bisq.protobuffer.BlockChainExplorer} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBlockChainExplorerTestNet = function() { - return /** @type{?proto.io.bisq.protobuffer.BlockChainExplorer} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.BlockChainExplorer, 6)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.BlockChainExplorer|undefined} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this -*/ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setBlockChainExplorerTestNet = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.clearBlockChainExplorerTestNet = function() { - return this.setBlockChainExplorerTestNet(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.hasBlockChainExplorerTestNet = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional string backup_directory = 7; - * @return {string} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBackupDirectory = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setBackupDirectory = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional bool auto_select_arbitrators = 8; - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getAutoSelectArbitrators = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setAutoSelectArbitrators = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); -}; - - -/** - * map dont_show_again_map = 9; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getDontShowAgainMapMap = 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.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.clearDontShowAgainMapMap = function() { - this.getDontShowAgainMapMap().clear(); - return this;}; - - -/** - * optional bool tac_accepted = 10; - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getTacAccepted = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setTacAccepted = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); -}; - - -/** - * optional bool use_tor_for_bitcoin_j = 11; - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUseTorForBitcoinJ = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setUseTorForBitcoinJ = function(value) { - return jspb.Message.setProto3BooleanField(this, 11, value); -}; - - -/** - * optional bool show_own_offers_in_offer_book = 12; - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getShowOwnOffersInOfferBook = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setShowOwnOffersInOfferBook = function(value) { - return jspb.Message.setProto3BooleanField(this, 12, value); -}; - - -/** - * optional TradeCurrency preferred_trade_currency = 13; - * @return {?proto.io.bisq.protobuffer.TradeCurrency} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getPreferredTradeCurrency = function() { - return /** @type{?proto.io.bisq.protobuffer.TradeCurrency} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TradeCurrency, 13)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.TradeCurrency|undefined} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this -*/ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setPreferredTradeCurrency = function(value) { - return jspb.Message.setWrapperField(this, 13, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.clearPreferredTradeCurrency = function() { - return this.setPreferredTradeCurrency(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.hasPreferredTradeCurrency = function() { - return jspb.Message.getField(this, 13) != null; -}; - - -/** - * optional int64 withdrawal_tx_fee_in_vbytes = 14; - * @return {number} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getWithdrawalTxFeeInVbytes = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setWithdrawalTxFeeInVbytes = function(value) { - return jspb.Message.setProto3IntField(this, 14, value); -}; - - -/** - * optional bool use_custom_withdrawal_tx_fee = 15; - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUseCustomWithdrawalTxFee = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setUseCustomWithdrawalTxFee = function(value) { - return jspb.Message.setProto3BooleanField(this, 15, value); -}; - - -/** - * optional double max_price_distance_in_percent = 16; - * @return {number} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getMaxPriceDistanceInPercent = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 16, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setMaxPriceDistanceInPercent = function(value) { - return jspb.Message.setProto3FloatField(this, 16, value); -}; - - -/** - * optional string offer_book_chart_screen_currency_code = 17; - * @return {string} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getOfferBookChartScreenCurrencyCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setOfferBookChartScreenCurrencyCode = function(value) { - return jspb.Message.setProto3StringField(this, 17, value); -}; - - -/** - * optional string trade_charts_screen_currency_code = 18; - * @return {string} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getTradeChartsScreenCurrencyCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setTradeChartsScreenCurrencyCode = function(value) { - return jspb.Message.setProto3StringField(this, 18, value); -}; - - -/** - * optional string buy_screen_currency_code = 19; - * @return {string} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBuyScreenCurrencyCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setBuyScreenCurrencyCode = function(value) { - return jspb.Message.setProto3StringField(this, 19, value); -}; - - -/** - * optional string sell_screen_currency_code = 20; - * @return {string} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getSellScreenCurrencyCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setSellScreenCurrencyCode = function(value) { - return jspb.Message.setProto3StringField(this, 20, value); -}; - - -/** - * optional int32 trade_statistics_tick_unit_index = 21; - * @return {number} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getTradeStatisticsTickUnitIndex = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setTradeStatisticsTickUnitIndex = function(value) { - return jspb.Message.setProto3IntField(this, 21, value); -}; - - -/** - * optional bool resync_Spv_requested = 22; - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getResyncSpvRequested = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 22, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setResyncSpvRequested = function(value) { - return jspb.Message.setProto3BooleanField(this, 22, value); -}; - - -/** - * optional bool sort_market_currencies_numerically = 23; - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getSortMarketCurrenciesNumerically = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 23, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setSortMarketCurrenciesNumerically = function(value) { - return jspb.Message.setProto3BooleanField(this, 23, value); -}; - - -/** - * optional bool use_percentage_based_price = 24; - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUsePercentageBasedPrice = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 24, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setUsePercentageBasedPrice = function(value) { - return jspb.Message.setProto3BooleanField(this, 24, value); -}; - - -/** - * map peer_tag_map = 25; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getPeerTagMapMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 25, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.clearPeerTagMapMap = function() { - this.getPeerTagMapMap().clear(); - return this;}; - - -/** - * optional string bitcoin_nodes = 26; - * @return {string} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBitcoinNodes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setBitcoinNodes = function(value) { - return jspb.Message.setProto3StringField(this, 26, value); -}; - - -/** - * repeated string ignore_traders_list = 27; - * @return {!Array} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getIgnoreTradersListList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 27)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setIgnoreTradersListList = function(value) { - return jspb.Message.setField(this, 27, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.addIgnoreTradersList = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 27, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.clearIgnoreTradersListList = function() { - return this.setIgnoreTradersListList([]); -}; - - -/** - * optional string directory_chooser_path = 28; - * @return {string} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getDirectoryChooserPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 28, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setDirectoryChooserPath = function(value) { - return jspb.Message.setProto3StringField(this, 28, value); -}; - - -/** - * optional int64 buyer_security_deposit_as_long = 29; - * @return {number} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBuyerSecurityDepositAsLong = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 29, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setBuyerSecurityDepositAsLong = function(value) { - return jspb.Message.setProto3IntField(this, 29, value); -}; - - -/** - * optional bool use_animations = 30; - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUseAnimations = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 30, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setUseAnimations = function(value) { - return jspb.Message.setProto3BooleanField(this, 30, value); -}; - - -/** - * optional PaymentAccount selectedPayment_account_for_createOffer = 31; - * @return {?proto.io.bisq.protobuffer.PaymentAccount} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getSelectedpaymentAccountForCreateoffer = function() { - return /** @type{?proto.io.bisq.protobuffer.PaymentAccount} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PaymentAccount, 31)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PaymentAccount|undefined} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this -*/ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setSelectedpaymentAccountForCreateoffer = function(value) { - return jspb.Message.setWrapperField(this, 31, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.clearSelectedpaymentAccountForCreateoffer = function() { - return this.setSelectedpaymentAccountForCreateoffer(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.hasSelectedpaymentAccountForCreateoffer = function() { - return jspb.Message.getField(this, 31) != null; -}; - - -/** - * repeated string bridge_addresses = 32; - * @return {!Array} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBridgeAddressesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 32)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setBridgeAddressesList = function(value) { - return jspb.Message.setField(this, 32, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.addBridgeAddresses = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 32, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.clearBridgeAddressesList = function() { - return this.setBridgeAddressesList([]); -}; - - -/** - * optional int32 bridge_option_ordinal = 33; - * @return {number} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBridgeOptionOrdinal = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 33, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setBridgeOptionOrdinal = function(value) { - return jspb.Message.setProto3IntField(this, 33, value); -}; - - -/** - * optional int32 tor_transport_ordinal = 34; - * @return {number} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getTorTransportOrdinal = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 34, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setTorTransportOrdinal = function(value) { - return jspb.Message.setProto3IntField(this, 34, value); -}; - - -/** - * optional string custom_bridges = 35; - * @return {string} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getCustomBridges = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 35, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setCustomBridges = function(value) { - return jspb.Message.setProto3StringField(this, 35, value); -}; - - -/** - * optional int32 bitcoin_nodes_option_ordinal = 36; - * @return {number} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBitcoinNodesOptionOrdinal = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 36, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setBitcoinNodesOptionOrdinal = function(value) { - return jspb.Message.setProto3IntField(this, 36, value); -}; - - -/** - * optional string referral_id = 37; - * @return {string} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getReferralId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 37, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setReferralId = function(value) { - return jspb.Message.setProto3StringField(this, 37, value); -}; - - -/** - * optional string phone_key_and_token = 38; - * @return {string} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getPhoneKeyAndToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 38, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setPhoneKeyAndToken = function(value) { - return jspb.Message.setProto3StringField(this, 38, value); -}; - - -/** - * optional bool use_sound_for_mobile_notifications = 39; - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUseSoundForMobileNotifications = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 39, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setUseSoundForMobileNotifications = function(value) { - return jspb.Message.setProto3BooleanField(this, 39, value); -}; - - -/** - * optional bool use_trade_notifications = 40; - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUseTradeNotifications = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 40, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setUseTradeNotifications = function(value) { - return jspb.Message.setProto3BooleanField(this, 40, value); -}; - - -/** - * optional bool use_market_notifications = 41; - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUseMarketNotifications = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 41, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setUseMarketNotifications = function(value) { - return jspb.Message.setProto3BooleanField(this, 41, value); -}; - - -/** - * optional bool use_price_notifications = 42; - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUsePriceNotifications = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 42, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setUsePriceNotifications = function(value) { - return jspb.Message.setProto3BooleanField(this, 42, value); -}; - - -/** - * optional bool use_standby_mode = 43; - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUseStandbyMode = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 43, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setUseStandbyMode = function(value) { - return jspb.Message.setProto3BooleanField(this, 43, value); -}; - - -/** - * optional string rpc_user = 44; - * @return {string} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getRpcUser = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 44, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setRpcUser = function(value) { - return jspb.Message.setProto3StringField(this, 44, value); -}; - - -/** - * optional string rpc_pw = 45; - * @return {string} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getRpcPw = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 45, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setRpcPw = function(value) { - return jspb.Message.setProto3StringField(this, 45, value); -}; - - -/** - * optional string take_offer_selected_payment_account_id = 46; - * @return {string} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getTakeOfferSelectedPaymentAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 46, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setTakeOfferSelectedPaymentAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 46, value); -}; - - -/** - * optional double buyer_security_deposit_as_percent = 47; - * @return {number} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBuyerSecurityDepositAsPercent = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 47, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setBuyerSecurityDepositAsPercent = function(value) { - return jspb.Message.setProto3FloatField(this, 47, value); -}; - - -/** - * optional int32 ignore_dust_threshold = 48; - * @return {number} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getIgnoreDustThreshold = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 48, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setIgnoreDustThreshold = function(value) { - return jspb.Message.setProto3IntField(this, 48, value); -}; - - -/** - * optional double buyer_security_deposit_as_percent_for_crypto = 49; - * @return {number} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBuyerSecurityDepositAsPercentForCrypto = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 49, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setBuyerSecurityDepositAsPercentForCrypto = function(value) { - return jspb.Message.setProto3FloatField(this, 49, value); -}; - - -/** - * optional int32 block_notify_port = 50; - * @return {number} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBlockNotifyPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 50, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setBlockNotifyPort = function(value) { - return jspb.Message.setProto3IntField(this, 50, value); -}; - - -/** - * optional int32 css_theme = 51; - * @return {number} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getCssTheme = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 51, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setCssTheme = function(value) { - return jspb.Message.setProto3IntField(this, 51, value); -}; - - -/** - * optional bool tac_accepted_v120 = 52; - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getTacAcceptedV120 = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 52, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setTacAcceptedV120 = function(value) { - return jspb.Message.setProto3BooleanField(this, 52, value); -}; - - -/** - * repeated AutoConfirmSettings auto_confirm_settings = 53; - * @return {!Array} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getAutoConfirmSettingsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.AutoConfirmSettings, 53)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this -*/ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.setAutoConfirmSettingsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 53, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.AutoConfirmSettings=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.AutoConfirmSettings} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.addAutoConfirmSettings = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 53, opt_value, proto.io.bisq.protobuffer.AutoConfirmSettings, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.clearAutoConfirmSettingsList = function() { - return this.setAutoConfirmSettingsList([]); -}; - - -/** - * optional bool hide_non_account_payment_methods = 54; - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getHideNonAccountPaymentMethods = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 54, 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, 54, value); -}; - - -/** - * optional bool show_offers_matching_my_accounts = 55; - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getShowOffersMatchingMyAccounts = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 55, 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, 55, value); -}; - - -/** - * optional bool deny_api_taker = 56; - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getDenyApiTaker = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 56, 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, 56, value); -}; - - -/** - * optional bool notify_on_pre_release = 57; - * @return {boolean} - */ -proto.io.bisq.protobuffer.PreferencesPayload.prototype.getNotifyOnPreRelease = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 57, 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, 57, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.AutoConfirmSettings.repeatedFields_ = [4]; - - - -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.AutoConfirmSettings.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.AutoConfirmSettings.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.AutoConfirmSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AutoConfirmSettings.toObject = function(includeInstance, msg) { - var f, obj = { - enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - requiredConfirmations: jspb.Message.getFieldWithDefault(msg, 2, 0), - tradeLimit: jspb.Message.getFieldWithDefault(msg, 3, 0), - serviceAddressesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, - currencyCode: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - 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.AutoConfirmSettings} - */ -proto.io.bisq.protobuffer.AutoConfirmSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.AutoConfirmSettings; - return proto.io.bisq.protobuffer.AutoConfirmSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.AutoConfirmSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.AutoConfirmSettings} - */ -proto.io.bisq.protobuffer.AutoConfirmSettings.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.setEnabled(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setRequiredConfirmations(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTradeLimit(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addServiceAddresses(value); - break; - case 5: - 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.AutoConfirmSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.AutoConfirmSettings.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.AutoConfirmSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.AutoConfirmSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEnabled(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getRequiredConfirmations(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getTradeLimit(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getServiceAddressesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } - f = message.getCurrencyCode(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional bool enabled = 1; - * @return {boolean} - */ -proto.io.bisq.protobuffer.AutoConfirmSettings.prototype.getEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.AutoConfirmSettings} returns this - */ -proto.io.bisq.protobuffer.AutoConfirmSettings.prototype.setEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional int32 required_confirmations = 2; - * @return {number} - */ -proto.io.bisq.protobuffer.AutoConfirmSettings.prototype.getRequiredConfirmations = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.AutoConfirmSettings} returns this - */ -proto.io.bisq.protobuffer.AutoConfirmSettings.prototype.setRequiredConfirmations = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional int64 trade_limit = 3; - * @return {number} - */ -proto.io.bisq.protobuffer.AutoConfirmSettings.prototype.getTradeLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.AutoConfirmSettings} returns this - */ -proto.io.bisq.protobuffer.AutoConfirmSettings.prototype.setTradeLimit = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated string service_addresses = 4; - * @return {!Array} - */ -proto.io.bisq.protobuffer.AutoConfirmSettings.prototype.getServiceAddressesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.AutoConfirmSettings} returns this - */ -proto.io.bisq.protobuffer.AutoConfirmSettings.prototype.setServiceAddressesList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.AutoConfirmSettings} returns this - */ -proto.io.bisq.protobuffer.AutoConfirmSettings.prototype.addServiceAddresses = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.AutoConfirmSettings} returns this - */ -proto.io.bisq.protobuffer.AutoConfirmSettings.prototype.clearServiceAddressesList = function() { - return this.setServiceAddressesList([]); -}; - - -/** - * optional string currency_code = 5; - * @return {string} - */ -proto.io.bisq.protobuffer.AutoConfirmSettings.prototype.getCurrencyCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.AutoConfirmSettings} returns this - */ -proto.io.bisq.protobuffer.AutoConfirmSettings.prototype.setCurrencyCode = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.UserPayload.repeatedFields_ = [2,4,8,9,13,14]; - - - -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.UserPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.UserPayload.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.UserPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.UserPayload.toObject = function(includeInstance, msg) { - var f, obj = { - accountId: jspb.Message.getFieldWithDefault(msg, 1, ""), - paymentAccountsList: jspb.Message.toObjectList(msg.getPaymentAccountsList(), - proto.io.bisq.protobuffer.PaymentAccount.toObject, includeInstance), - currentPaymentAccount: (f = msg.getCurrentPaymentAccount()) && proto.io.bisq.protobuffer.PaymentAccount.toObject(includeInstance, f), - acceptedLanguageLocaleCodesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, - developersAlert: (f = msg.getDevelopersAlert()) && proto.io.bisq.protobuffer.Alert.toObject(includeInstance, f), - displayedAlert: (f = msg.getDisplayedAlert()) && proto.io.bisq.protobuffer.Alert.toObject(includeInstance, f), - developersFilter: (f = msg.getDevelopersFilter()) && proto.io.bisq.protobuffer.Filter.toObject(includeInstance, f), - acceptedArbitratorsList: jspb.Message.toObjectList(msg.getAcceptedArbitratorsList(), - proto.io.bisq.protobuffer.Arbitrator.toObject, includeInstance), - acceptedMediatorsList: jspb.Message.toObjectList(msg.getAcceptedMediatorsList(), - proto.io.bisq.protobuffer.Mediator.toObject, includeInstance), - registeredArbitrator: (f = msg.getRegisteredArbitrator()) && proto.io.bisq.protobuffer.Arbitrator.toObject(includeInstance, f), - registeredMediator: (f = msg.getRegisteredMediator()) && proto.io.bisq.protobuffer.Mediator.toObject(includeInstance, f), - priceAlertFilter: (f = msg.getPriceAlertFilter()) && proto.io.bisq.protobuffer.PriceAlertFilter.toObject(includeInstance, f), - marketAlertFiltersList: jspb.Message.toObjectList(msg.getMarketAlertFiltersList(), - 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), - cookieMap: (f = msg.getCookieMap()) ? 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.UserPayload} - */ -proto.io.bisq.protobuffer.UserPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.UserPayload; - return proto.io.bisq.protobuffer.UserPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.UserPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.UserPayload} - */ -proto.io.bisq.protobuffer.UserPayload.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.setAccountId(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.PaymentAccount; - reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccount.deserializeBinaryFromReader); - msg.addPaymentAccounts(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.PaymentAccount; - reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccount.deserializeBinaryFromReader); - msg.setCurrentPaymentAccount(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addAcceptedLanguageLocaleCodes(value); - break; - case 5: - var value = new proto.io.bisq.protobuffer.Alert; - reader.readMessage(value,proto.io.bisq.protobuffer.Alert.deserializeBinaryFromReader); - msg.setDevelopersAlert(value); - break; - case 6: - var value = new proto.io.bisq.protobuffer.Alert; - reader.readMessage(value,proto.io.bisq.protobuffer.Alert.deserializeBinaryFromReader); - msg.setDisplayedAlert(value); - break; - case 7: - var value = new proto.io.bisq.protobuffer.Filter; - reader.readMessage(value,proto.io.bisq.protobuffer.Filter.deserializeBinaryFromReader); - msg.setDevelopersFilter(value); - break; - case 8: - var value = new proto.io.bisq.protobuffer.Arbitrator; - reader.readMessage(value,proto.io.bisq.protobuffer.Arbitrator.deserializeBinaryFromReader); - msg.addAcceptedArbitrators(value); - break; - case 9: - var value = new proto.io.bisq.protobuffer.Mediator; - reader.readMessage(value,proto.io.bisq.protobuffer.Mediator.deserializeBinaryFromReader); - msg.addAcceptedMediators(value); - break; - case 10: - var value = new proto.io.bisq.protobuffer.Arbitrator; - reader.readMessage(value,proto.io.bisq.protobuffer.Arbitrator.deserializeBinaryFromReader); - msg.setRegisteredArbitrator(value); - break; - case 11: - var value = new proto.io.bisq.protobuffer.Mediator; - reader.readMessage(value,proto.io.bisq.protobuffer.Mediator.deserializeBinaryFromReader); - msg.setRegisteredMediator(value); - break; - case 12: - var value = new proto.io.bisq.protobuffer.PriceAlertFilter; - reader.readMessage(value,proto.io.bisq.protobuffer.PriceAlertFilter.deserializeBinaryFromReader); - msg.setPriceAlertFilter(value); - break; - case 13: - var value = new proto.io.bisq.protobuffer.MarketAlertFilter; - reader.readMessage(value,proto.io.bisq.protobuffer.MarketAlertFilter.deserializeBinaryFromReader); - msg.addMarketAlertFilters(value); - break; - case 14: - var value = new proto.io.bisq.protobuffer.RefundAgent; - reader.readMessage(value,proto.io.bisq.protobuffer.RefundAgent.deserializeBinaryFromReader); - msg.addAcceptedRefundAgents(value); - break; - case 15: - var value = new proto.io.bisq.protobuffer.RefundAgent; - 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; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.UserPayload.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.UserPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.UserPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccountId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPaymentAccountsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.io.bisq.protobuffer.PaymentAccount.serializeBinaryToWriter - ); - } - f = message.getCurrentPaymentAccount(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.PaymentAccount.serializeBinaryToWriter - ); - } - f = message.getAcceptedLanguageLocaleCodesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } - f = message.getDevelopersAlert(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.io.bisq.protobuffer.Alert.serializeBinaryToWriter - ); - } - f = message.getDisplayedAlert(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.io.bisq.protobuffer.Alert.serializeBinaryToWriter - ); - } - f = message.getDevelopersFilter(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.io.bisq.protobuffer.Filter.serializeBinaryToWriter - ); - } - f = message.getAcceptedArbitratorsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 8, - f, - proto.io.bisq.protobuffer.Arbitrator.serializeBinaryToWriter - ); - } - f = message.getAcceptedMediatorsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 9, - f, - proto.io.bisq.protobuffer.Mediator.serializeBinaryToWriter - ); - } - f = message.getRegisteredArbitrator(); - if (f != null) { - writer.writeMessage( - 10, - f, - proto.io.bisq.protobuffer.Arbitrator.serializeBinaryToWriter - ); - } - f = message.getRegisteredMediator(); - if (f != null) { - writer.writeMessage( - 11, - f, - proto.io.bisq.protobuffer.Mediator.serializeBinaryToWriter - ); - } - f = message.getPriceAlertFilter(); - if (f != null) { - writer.writeMessage( - 12, - f, - proto.io.bisq.protobuffer.PriceAlertFilter.serializeBinaryToWriter - ); - } - f = message.getMarketAlertFiltersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 13, - f, - proto.io.bisq.protobuffer.MarketAlertFilter.serializeBinaryToWriter - ); - } - f = message.getAcceptedRefundAgentsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 14, - f, - proto.io.bisq.protobuffer.RefundAgent.serializeBinaryToWriter - ); - } - f = message.getRegisteredRefundAgent(); - if (f != null) { - writer.writeMessage( - 15, - f, - 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); - } -}; - - -/** - * optional string account_id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.getAccountId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this - */ -proto.io.bisq.protobuffer.UserPayload.prototype.setAccountId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated PaymentAccount payment_accounts = 2; - * @return {!Array} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.getPaymentAccountsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.PaymentAccount, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this -*/ -proto.io.bisq.protobuffer.UserPayload.prototype.setPaymentAccountsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.PaymentAccount=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.PaymentAccount} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.addPaymentAccounts = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.io.bisq.protobuffer.PaymentAccount, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this - */ -proto.io.bisq.protobuffer.UserPayload.prototype.clearPaymentAccountsList = function() { - return this.setPaymentAccountsList([]); -}; - - -/** - * optional PaymentAccount current_payment_account = 3; - * @return {?proto.io.bisq.protobuffer.PaymentAccount} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.getCurrentPaymentAccount = function() { - return /** @type{?proto.io.bisq.protobuffer.PaymentAccount} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PaymentAccount, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PaymentAccount|undefined} value - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this -*/ -proto.io.bisq.protobuffer.UserPayload.prototype.setCurrentPaymentAccount = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this - */ -proto.io.bisq.protobuffer.UserPayload.prototype.clearCurrentPaymentAccount = function() { - return this.setCurrentPaymentAccount(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.hasCurrentPaymentAccount = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * repeated string accepted_language_locale_codes = 4; - * @return {!Array} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.getAcceptedLanguageLocaleCodesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this - */ -proto.io.bisq.protobuffer.UserPayload.prototype.setAcceptedLanguageLocaleCodesList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this - */ -proto.io.bisq.protobuffer.UserPayload.prototype.addAcceptedLanguageLocaleCodes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this - */ -proto.io.bisq.protobuffer.UserPayload.prototype.clearAcceptedLanguageLocaleCodesList = function() { - return this.setAcceptedLanguageLocaleCodesList([]); -}; - - -/** - * optional Alert developers_alert = 5; - * @return {?proto.io.bisq.protobuffer.Alert} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.getDevelopersAlert = function() { - return /** @type{?proto.io.bisq.protobuffer.Alert} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Alert, 5)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Alert|undefined} value - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this -*/ -proto.io.bisq.protobuffer.UserPayload.prototype.setDevelopersAlert = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this - */ -proto.io.bisq.protobuffer.UserPayload.prototype.clearDevelopersAlert = function() { - return this.setDevelopersAlert(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.hasDevelopersAlert = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional Alert displayed_alert = 6; - * @return {?proto.io.bisq.protobuffer.Alert} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.getDisplayedAlert = function() { - return /** @type{?proto.io.bisq.protobuffer.Alert} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Alert, 6)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Alert|undefined} value - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this -*/ -proto.io.bisq.protobuffer.UserPayload.prototype.setDisplayedAlert = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this - */ -proto.io.bisq.protobuffer.UserPayload.prototype.clearDisplayedAlert = function() { - return this.setDisplayedAlert(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.hasDisplayedAlert = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional Filter developers_filter = 7; - * @return {?proto.io.bisq.protobuffer.Filter} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.getDevelopersFilter = function() { - return /** @type{?proto.io.bisq.protobuffer.Filter} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Filter, 7)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Filter|undefined} value - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this -*/ -proto.io.bisq.protobuffer.UserPayload.prototype.setDevelopersFilter = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this - */ -proto.io.bisq.protobuffer.UserPayload.prototype.clearDevelopersFilter = function() { - return this.setDevelopersFilter(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.hasDevelopersFilter = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * repeated Arbitrator accepted_arbitrators = 8; - * @return {!Array} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.getAcceptedArbitratorsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.Arbitrator, 8)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this -*/ -proto.io.bisq.protobuffer.UserPayload.prototype.setAcceptedArbitratorsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 8, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.Arbitrator=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Arbitrator} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.addAcceptedArbitrators = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.io.bisq.protobuffer.Arbitrator, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this - */ -proto.io.bisq.protobuffer.UserPayload.prototype.clearAcceptedArbitratorsList = function() { - return this.setAcceptedArbitratorsList([]); -}; - - -/** - * repeated Mediator accepted_mediators = 9; - * @return {!Array} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.getAcceptedMediatorsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.Mediator, 9)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this -*/ -proto.io.bisq.protobuffer.UserPayload.prototype.setAcceptedMediatorsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 9, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.Mediator=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.Mediator} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.addAcceptedMediators = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.io.bisq.protobuffer.Mediator, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this - */ -proto.io.bisq.protobuffer.UserPayload.prototype.clearAcceptedMediatorsList = function() { - return this.setAcceptedMediatorsList([]); -}; - - -/** - * optional Arbitrator registered_arbitrator = 10; - * @return {?proto.io.bisq.protobuffer.Arbitrator} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.getRegisteredArbitrator = function() { - return /** @type{?proto.io.bisq.protobuffer.Arbitrator} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Arbitrator, 10)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Arbitrator|undefined} value - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this -*/ -proto.io.bisq.protobuffer.UserPayload.prototype.setRegisteredArbitrator = function(value) { - return jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this - */ -proto.io.bisq.protobuffer.UserPayload.prototype.clearRegisteredArbitrator = function() { - return this.setRegisteredArbitrator(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.hasRegisteredArbitrator = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional Mediator registered_mediator = 11; - * @return {?proto.io.bisq.protobuffer.Mediator} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.getRegisteredMediator = function() { - return /** @type{?proto.io.bisq.protobuffer.Mediator} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Mediator, 11)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Mediator|undefined} value - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this -*/ -proto.io.bisq.protobuffer.UserPayload.prototype.setRegisteredMediator = function(value) { - return jspb.Message.setWrapperField(this, 11, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this - */ -proto.io.bisq.protobuffer.UserPayload.prototype.clearRegisteredMediator = function() { - return this.setRegisteredMediator(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.hasRegisteredMediator = function() { - return jspb.Message.getField(this, 11) != null; -}; - - -/** - * optional PriceAlertFilter price_alert_filter = 12; - * @return {?proto.io.bisq.protobuffer.PriceAlertFilter} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.getPriceAlertFilter = function() { - return /** @type{?proto.io.bisq.protobuffer.PriceAlertFilter} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PriceAlertFilter, 12)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PriceAlertFilter|undefined} value - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this -*/ -proto.io.bisq.protobuffer.UserPayload.prototype.setPriceAlertFilter = function(value) { - return jspb.Message.setWrapperField(this, 12, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this - */ -proto.io.bisq.protobuffer.UserPayload.prototype.clearPriceAlertFilter = function() { - return this.setPriceAlertFilter(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.hasPriceAlertFilter = function() { - return jspb.Message.getField(this, 12) != null; -}; - - -/** - * repeated MarketAlertFilter market_alert_filters = 13; - * @return {!Array} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.getMarketAlertFiltersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.MarketAlertFilter, 13)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this -*/ -proto.io.bisq.protobuffer.UserPayload.prototype.setMarketAlertFiltersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 13, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.MarketAlertFilter=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.MarketAlertFilter} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.addMarketAlertFilters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.io.bisq.protobuffer.MarketAlertFilter, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this - */ -proto.io.bisq.protobuffer.UserPayload.prototype.clearMarketAlertFiltersList = function() { - return this.setMarketAlertFiltersList([]); -}; - - -/** - * repeated RefundAgent accepted_refund_agents = 14; - * @return {!Array} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.getAcceptedRefundAgentsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.RefundAgent, 14)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this -*/ -proto.io.bisq.protobuffer.UserPayload.prototype.setAcceptedRefundAgentsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 14, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.RefundAgent=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.RefundAgent} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.addAcceptedRefundAgents = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.io.bisq.protobuffer.RefundAgent, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this - */ -proto.io.bisq.protobuffer.UserPayload.prototype.clearAcceptedRefundAgentsList = function() { - return this.setAcceptedRefundAgentsList([]); -}; - - -/** - * optional RefundAgent registered_refund_agent = 15; - * @return {?proto.io.bisq.protobuffer.RefundAgent} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.getRegisteredRefundAgent = function() { - return /** @type{?proto.io.bisq.protobuffer.RefundAgent} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.RefundAgent, 15)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.RefundAgent|undefined} value - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this -*/ -proto.io.bisq.protobuffer.UserPayload.prototype.setRegisteredRefundAgent = function(value) { - return jspb.Message.setWrapperField(this, 15, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.UserPayload} returns this - */ -proto.io.bisq.protobuffer.UserPayload.prototype.clearRegisteredRefundAgent = function() { - return this.setRegisteredRefundAgent(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.UserPayload.prototype.hasRegisteredRefundAgent = function() { - return jspb.Message.getField(this, 15) != null; -}; - - -/** - * 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;}; - - - - - -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.BlockChainExplorer.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.BlockChainExplorer.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.BlockChainExplorer} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.BlockChainExplorer.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - txUrl: jspb.Message.getFieldWithDefault(msg, 2, ""), - addressUrl: 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.BlockChainExplorer} - */ -proto.io.bisq.protobuffer.BlockChainExplorer.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.BlockChainExplorer; - return proto.io.bisq.protobuffer.BlockChainExplorer.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.BlockChainExplorer} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.BlockChainExplorer} - */ -proto.io.bisq.protobuffer.BlockChainExplorer.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.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTxUrl(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setAddressUrl(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.BlockChainExplorer.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.BlockChainExplorer.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.BlockChainExplorer} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.BlockChainExplorer.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTxUrl(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getAddressUrl(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.BlockChainExplorer.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.BlockChainExplorer} returns this - */ -proto.io.bisq.protobuffer.BlockChainExplorer.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string tx_url = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.BlockChainExplorer.prototype.getTxUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.BlockChainExplorer} returns this - */ -proto.io.bisq.protobuffer.BlockChainExplorer.prototype.setTxUrl = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string address_url = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.BlockChainExplorer.prototype.getAddressUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.BlockChainExplorer} returns this - */ -proto.io.bisq.protobuffer.BlockChainExplorer.prototype.setAddressUrl = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.PaymentAccount.repeatedFields_ = [5]; - - - -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.PaymentAccount.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PaymentAccount.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.PaymentAccount} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PaymentAccount.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - creationDate: jspb.Message.getFieldWithDefault(msg, 2, "0"), - paymentMethod: (f = msg.getPaymentMethod()) && proto.io.bisq.protobuffer.PaymentMethod.toObject(includeInstance, f), - accountName: jspb.Message.getFieldWithDefault(msg, 4, ""), - tradeCurrenciesList: jspb.Message.toObjectList(msg.getTradeCurrenciesList(), - proto.io.bisq.protobuffer.TradeCurrency.toObject, includeInstance), - selectedTradeCurrency: (f = msg.getSelectedTradeCurrency()) && proto.io.bisq.protobuffer.TradeCurrency.toObject(includeInstance, f), - paymentAccountPayload: (f = msg.getPaymentAccountPayload()) && proto.io.bisq.protobuffer.PaymentAccountPayload.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.PaymentAccount} - */ -proto.io.bisq.protobuffer.PaymentAccount.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PaymentAccount; - return proto.io.bisq.protobuffer.PaymentAccount.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PaymentAccount} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PaymentAccount} - */ -proto.io.bisq.protobuffer.PaymentAccount.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.readInt64String()); - msg.setCreationDate(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.PaymentMethod; - reader.readMessage(value,proto.io.bisq.protobuffer.PaymentMethod.deserializeBinaryFromReader); - msg.setPaymentMethod(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setAccountName(value); - break; - case 5: - var value = new proto.io.bisq.protobuffer.TradeCurrency; - reader.readMessage(value,proto.io.bisq.protobuffer.TradeCurrency.deserializeBinaryFromReader); - msg.addTradeCurrencies(value); - break; - case 6: - var value = new proto.io.bisq.protobuffer.TradeCurrency; - reader.readMessage(value,proto.io.bisq.protobuffer.TradeCurrency.deserializeBinaryFromReader); - msg.setSelectedTradeCurrency(value); - break; - case 7: - var value = new proto.io.bisq.protobuffer.PaymentAccountPayload; - reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccountPayload.deserializeBinaryFromReader); - msg.setPaymentAccountPayload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PaymentAccount.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PaymentAccount.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.PaymentAccount} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PaymentAccount.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreationDate(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 2, - f - ); - } - f = message.getPaymentMethod(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.PaymentMethod.serializeBinaryToWriter - ); - } - f = message.getAccountName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getTradeCurrenciesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.io.bisq.protobuffer.TradeCurrency.serializeBinaryToWriter - ); - } - f = message.getSelectedTradeCurrency(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.io.bisq.protobuffer.TradeCurrency.serializeBinaryToWriter - ); - } - f = message.getPaymentAccountPayload(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.io.bisq.protobuffer.PaymentAccountPayload.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.PaymentAccount.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PaymentAccount} returns this - */ -proto.io.bisq.protobuffer.PaymentAccount.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int64 creation_date = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.PaymentAccount.prototype.getCreationDate = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PaymentAccount} returns this - */ -proto.io.bisq.protobuffer.PaymentAccount.prototype.setCreationDate = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional PaymentMethod payment_method = 3; - * @return {?proto.io.bisq.protobuffer.PaymentMethod} - */ -proto.io.bisq.protobuffer.PaymentAccount.prototype.getPaymentMethod = function() { - return /** @type{?proto.io.bisq.protobuffer.PaymentMethod} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PaymentMethod, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PaymentMethod|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccount} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccount.prototype.setPaymentMethod = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PaymentAccount} returns this - */ -proto.io.bisq.protobuffer.PaymentAccount.prototype.clearPaymentMethod = function() { - return this.setPaymentMethod(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccount.prototype.hasPaymentMethod = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string account_name = 4; - * @return {string} - */ -proto.io.bisq.protobuffer.PaymentAccount.prototype.getAccountName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PaymentAccount} returns this - */ -proto.io.bisq.protobuffer.PaymentAccount.prototype.setAccountName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * repeated TradeCurrency trade_currencies = 5; - * @return {!Array} - */ -proto.io.bisq.protobuffer.PaymentAccount.prototype.getTradeCurrenciesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.TradeCurrency, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.PaymentAccount} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccount.prototype.setTradeCurrenciesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.TradeCurrency=} opt_value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.TradeCurrency} - */ -proto.io.bisq.protobuffer.PaymentAccount.prototype.addTradeCurrencies = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.io.bisq.protobuffer.TradeCurrency, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.PaymentAccount} returns this - */ -proto.io.bisq.protobuffer.PaymentAccount.prototype.clearTradeCurrenciesList = function() { - return this.setTradeCurrenciesList([]); -}; - - -/** - * optional TradeCurrency selected_trade_currency = 6; - * @return {?proto.io.bisq.protobuffer.TradeCurrency} - */ -proto.io.bisq.protobuffer.PaymentAccount.prototype.getSelectedTradeCurrency = function() { - return /** @type{?proto.io.bisq.protobuffer.TradeCurrency} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TradeCurrency, 6)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.TradeCurrency|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccount} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccount.prototype.setSelectedTradeCurrency = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PaymentAccount} returns this - */ -proto.io.bisq.protobuffer.PaymentAccount.prototype.clearSelectedTradeCurrency = function() { - return this.setSelectedTradeCurrency(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccount.prototype.hasSelectedTradeCurrency = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional PaymentAccountPayload payment_account_payload = 7; - * @return {?proto.io.bisq.protobuffer.PaymentAccountPayload} - */ -proto.io.bisq.protobuffer.PaymentAccount.prototype.getPaymentAccountPayload = function() { - return /** @type{?proto.io.bisq.protobuffer.PaymentAccountPayload} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PaymentAccountPayload, 7)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PaymentAccountPayload|undefined} value - * @return {!proto.io.bisq.protobuffer.PaymentAccount} returns this -*/ -proto.io.bisq.protobuffer.PaymentAccount.prototype.setPaymentAccountPayload = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.PaymentAccount} returns this - */ -proto.io.bisq.protobuffer.PaymentAccount.prototype.clearPaymentAccountPayload = function() { - return this.setPaymentAccountPayload(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.PaymentAccount.prototype.hasPaymentAccountPayload = function() { - return jspb.Message.getField(this, 7) != 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.PaymentMethod.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PaymentMethod.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.PaymentMethod} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PaymentMethod.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - maxTradePeriod: jspb.Message.getFieldWithDefault(msg, 2, "0"), - maxTradeLimit: jspb.Message.getFieldWithDefault(msg, 3, "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.PaymentMethod} - */ -proto.io.bisq.protobuffer.PaymentMethod.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PaymentMethod; - return proto.io.bisq.protobuffer.PaymentMethod.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PaymentMethod} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PaymentMethod} - */ -proto.io.bisq.protobuffer.PaymentMethod.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.readInt64String()); - msg.setMaxTradePeriod(value); - break; - case 3: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setMaxTradeLimit(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PaymentMethod.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PaymentMethod.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.PaymentMethod} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PaymentMethod.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMaxTradePeriod(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 2, - f - ); - } - f = message.getMaxTradeLimit(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 3, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.PaymentMethod.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PaymentMethod} returns this - */ -proto.io.bisq.protobuffer.PaymentMethod.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int64 max_trade_period = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.PaymentMethod.prototype.getMaxTradePeriod = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PaymentMethod} returns this - */ -proto.io.bisq.protobuffer.PaymentMethod.prototype.setMaxTradePeriod = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional int64 max_trade_limit = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.PaymentMethod.prototype.getMaxTradeLimit = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PaymentMethod} returns this - */ -proto.io.bisq.protobuffer.PaymentMethod.prototype.setMaxTradeLimit = function(value) { - return jspb.Message.setProto3StringIntField(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.Currency.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.Currency.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.Currency} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Currency.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.Currency} - */ -proto.io.bisq.protobuffer.Currency.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.Currency; - return proto.io.bisq.protobuffer.Currency.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.Currency} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.Currency} - */ -proto.io.bisq.protobuffer.Currency.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.Currency.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.Currency.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.Currency} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Currency.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCurrencyCode(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string currency_code = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.Currency.prototype.getCurrencyCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Currency} returns this - */ -proto.io.bisq.protobuffer.Currency.prototype.setCurrencyCode = 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 - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.io.bisq.protobuffer.TradeCurrency.oneofGroups_ = [[3,4]]; - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.TradeCurrency.MessageCase = { - MESSAGE_NOT_SET: 0, - CRYPTO_CURRENCY: 3, - FIAT_CURRENCY: 4 -}; - -/** - * @return {proto.io.bisq.protobuffer.TradeCurrency.MessageCase} - */ -proto.io.bisq.protobuffer.TradeCurrency.prototype.getMessageCase = function() { - return /** @type {proto.io.bisq.protobuffer.TradeCurrency.MessageCase} */(jspb.Message.computeOneofCase(this, proto.io.bisq.protobuffer.TradeCurrency.oneofGroups_[0])); -}; - - - -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.TradeCurrency.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.TradeCurrency.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.TradeCurrency} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.TradeCurrency.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - cryptoCurrency: (f = msg.getCryptoCurrency()) && proto.io.bisq.protobuffer.CryptoCurrency.toObject(includeInstance, f), - fiatCurrency: (f = msg.getFiatCurrency()) && proto.io.bisq.protobuffer.FiatCurrency.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.TradeCurrency} - */ -proto.io.bisq.protobuffer.TradeCurrency.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.TradeCurrency; - return proto.io.bisq.protobuffer.TradeCurrency.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.TradeCurrency} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.TradeCurrency} - */ -proto.io.bisq.protobuffer.TradeCurrency.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.setCode(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.CryptoCurrency; - reader.readMessage(value,proto.io.bisq.protobuffer.CryptoCurrency.deserializeBinaryFromReader); - msg.setCryptoCurrency(value); - break; - case 4: - var value = new proto.io.bisq.protobuffer.FiatCurrency; - reader.readMessage(value,proto.io.bisq.protobuffer.FiatCurrency.deserializeBinaryFromReader); - msg.setFiatCurrency(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.TradeCurrency.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.TradeCurrency.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.TradeCurrency} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.TradeCurrency.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getCryptoCurrency(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.CryptoCurrency.serializeBinaryToWriter - ); - } - f = message.getFiatCurrency(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.io.bisq.protobuffer.FiatCurrency.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string code = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.TradeCurrency.prototype.getCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradeCurrency} returns this - */ -proto.io.bisq.protobuffer.TradeCurrency.prototype.setCode = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.TradeCurrency.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.TradeCurrency} returns this - */ -proto.io.bisq.protobuffer.TradeCurrency.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional CryptoCurrency crypto_currency = 3; - * @return {?proto.io.bisq.protobuffer.CryptoCurrency} - */ -proto.io.bisq.protobuffer.TradeCurrency.prototype.getCryptoCurrency = function() { - return /** @type{?proto.io.bisq.protobuffer.CryptoCurrency} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.CryptoCurrency, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.CryptoCurrency|undefined} value - * @return {!proto.io.bisq.protobuffer.TradeCurrency} returns this -*/ -proto.io.bisq.protobuffer.TradeCurrency.prototype.setCryptoCurrency = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.io.bisq.protobuffer.TradeCurrency.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.TradeCurrency} returns this - */ -proto.io.bisq.protobuffer.TradeCurrency.prototype.clearCryptoCurrency = function() { - return this.setCryptoCurrency(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.TradeCurrency.prototype.hasCryptoCurrency = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional FiatCurrency fiat_currency = 4; - * @return {?proto.io.bisq.protobuffer.FiatCurrency} - */ -proto.io.bisq.protobuffer.TradeCurrency.prototype.getFiatCurrency = function() { - return /** @type{?proto.io.bisq.protobuffer.FiatCurrency} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.FiatCurrency, 4)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.FiatCurrency|undefined} value - * @return {!proto.io.bisq.protobuffer.TradeCurrency} returns this -*/ -proto.io.bisq.protobuffer.TradeCurrency.prototype.setFiatCurrency = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.io.bisq.protobuffer.TradeCurrency.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.TradeCurrency} returns this - */ -proto.io.bisq.protobuffer.TradeCurrency.prototype.clearFiatCurrency = function() { - return this.setFiatCurrency(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.TradeCurrency.prototype.hasFiatCurrency = function() { - return jspb.Message.getField(this, 4) != 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.CryptoCurrency.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.CryptoCurrency.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.CryptoCurrency} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CryptoCurrency.toObject = function(includeInstance, msg) { - var f, obj = { - isAsset: 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.CryptoCurrency} - */ -proto.io.bisq.protobuffer.CryptoCurrency.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.CryptoCurrency; - return proto.io.bisq.protobuffer.CryptoCurrency.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.CryptoCurrency} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.CryptoCurrency} - */ -proto.io.bisq.protobuffer.CryptoCurrency.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.setIsAsset(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.CryptoCurrency.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.CryptoCurrency.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.CryptoCurrency} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.CryptoCurrency.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIsAsset(); - if (f) { - writer.writeBool( - 1, - f - ); - } -}; - - -/** - * optional bool is_asset = 1; - * @return {boolean} - */ -proto.io.bisq.protobuffer.CryptoCurrency.prototype.getIsAsset = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.CryptoCurrency} returns this - */ -proto.io.bisq.protobuffer.CryptoCurrency.prototype.setIsAsset = 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.FiatCurrency.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.FiatCurrency.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.FiatCurrency} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.FiatCurrency.toObject = function(includeInstance, msg) { - var f, obj = { - currency: (f = msg.getCurrency()) && proto.io.bisq.protobuffer.Currency.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.FiatCurrency} - */ -proto.io.bisq.protobuffer.FiatCurrency.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.FiatCurrency; - return proto.io.bisq.protobuffer.FiatCurrency.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.FiatCurrency} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.FiatCurrency} - */ -proto.io.bisq.protobuffer.FiatCurrency.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.Currency; - reader.readMessage(value,proto.io.bisq.protobuffer.Currency.deserializeBinaryFromReader); - msg.setCurrency(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.FiatCurrency.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.FiatCurrency.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.FiatCurrency} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.FiatCurrency.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCurrency(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.Currency.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Currency currency = 1; - * @return {?proto.io.bisq.protobuffer.Currency} - */ -proto.io.bisq.protobuffer.FiatCurrency.prototype.getCurrency = function() { - return /** @type{?proto.io.bisq.protobuffer.Currency} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Currency, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Currency|undefined} value - * @return {!proto.io.bisq.protobuffer.FiatCurrency} returns this -*/ -proto.io.bisq.protobuffer.FiatCurrency.prototype.setCurrency = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.FiatCurrency} returns this - */ -proto.io.bisq.protobuffer.FiatCurrency.prototype.clearCurrency = function() { - return this.setCurrency(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.FiatCurrency.prototype.hasCurrency = 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.Country.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.Country.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.Country} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Country.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - region: (f = msg.getRegion()) && proto.io.bisq.protobuffer.Region.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.Country} - */ -proto.io.bisq.protobuffer.Country.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.Country; - return proto.io.bisq.protobuffer.Country.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.Country} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.Country} - */ -proto.io.bisq.protobuffer.Country.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.setCode(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = new proto.io.bisq.protobuffer.Region; - reader.readMessage(value,proto.io.bisq.protobuffer.Region.deserializeBinaryFromReader); - msg.setRegion(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Country.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.Country.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.Country} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Country.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getRegion(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.io.bisq.protobuffer.Region.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string code = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.Country.prototype.getCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Country} returns this - */ -proto.io.bisq.protobuffer.Country.prototype.setCode = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.Country.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Country} returns this - */ -proto.io.bisq.protobuffer.Country.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional Region region = 3; - * @return {?proto.io.bisq.protobuffer.Region} - */ -proto.io.bisq.protobuffer.Country.prototype.getRegion = function() { - return /** @type{?proto.io.bisq.protobuffer.Region} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Region, 3)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.Region|undefined} value - * @return {!proto.io.bisq.protobuffer.Country} returns this -*/ -proto.io.bisq.protobuffer.Country.prototype.setRegion = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.Country} returns this - */ -proto.io.bisq.protobuffer.Country.prototype.clearRegion = function() { - return this.setRegion(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.Country.prototype.hasRegion = function() { - return jspb.Message.getField(this, 3) != 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.Region.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.Region.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.Region} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Region.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: 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.Region} - */ -proto.io.bisq.protobuffer.Region.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.Region; - return proto.io.bisq.protobuffer.Region.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.Region} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.Region} - */ -proto.io.bisq.protobuffer.Region.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.setCode(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.Region.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.Region.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.Region} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.Region.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string code = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.Region.prototype.getCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Region} returns this - */ -proto.io.bisq.protobuffer.Region.prototype.setCode = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.Region.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.Region} returns this - */ -proto.io.bisq.protobuffer.Region.prototype.setName = 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.PriceAlertFilter.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.PriceAlertFilter.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.PriceAlertFilter} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PriceAlertFilter.toObject = function(includeInstance, msg) { - var f, obj = { - currencycode: jspb.Message.getFieldWithDefault(msg, 1, ""), - high: jspb.Message.getFieldWithDefault(msg, 2, 0), - low: jspb.Message.getFieldWithDefault(msg, 3, 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.PriceAlertFilter} - */ -proto.io.bisq.protobuffer.PriceAlertFilter.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.PriceAlertFilter; - return proto.io.bisq.protobuffer.PriceAlertFilter.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.PriceAlertFilter} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.PriceAlertFilter} - */ -proto.io.bisq.protobuffer.PriceAlertFilter.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; - case 2: - var value = /** @type {number} */ (reader.readInt64()); - msg.setHigh(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setLow(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.PriceAlertFilter.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.PriceAlertFilter.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.PriceAlertFilter} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.PriceAlertFilter.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCurrencycode(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHigh(); - if (f !== 0) { - writer.writeInt64( - 2, - f - ); - } - f = message.getLow(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } -}; - - -/** - * optional string currencyCode = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.PriceAlertFilter.prototype.getCurrencycode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.PriceAlertFilter} returns this - */ -proto.io.bisq.protobuffer.PriceAlertFilter.prototype.setCurrencycode = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int64 high = 2; - * @return {number} - */ -proto.io.bisq.protobuffer.PriceAlertFilter.prototype.getHigh = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.PriceAlertFilter} returns this - */ -proto.io.bisq.protobuffer.PriceAlertFilter.prototype.setHigh = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional int64 low = 3; - * @return {number} - */ -proto.io.bisq.protobuffer.PriceAlertFilter.prototype.getLow = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.PriceAlertFilter} returns this - */ -proto.io.bisq.protobuffer.PriceAlertFilter.prototype.setLow = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.io.bisq.protobuffer.MarketAlertFilter.repeatedFields_ = [4]; - - - -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.MarketAlertFilter.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.MarketAlertFilter.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.MarketAlertFilter} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MarketAlertFilter.toObject = function(includeInstance, msg) { - var f, obj = { - paymentAccount: (f = msg.getPaymentAccount()) && proto.io.bisq.protobuffer.PaymentAccount.toObject(includeInstance, f), - triggerValue: jspb.Message.getFieldWithDefault(msg, 2, 0), - isBuyOffer: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - alertIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : 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.MarketAlertFilter} - */ -proto.io.bisq.protobuffer.MarketAlertFilter.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.MarketAlertFilter; - return proto.io.bisq.protobuffer.MarketAlertFilter.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.MarketAlertFilter} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.MarketAlertFilter} - */ -proto.io.bisq.protobuffer.MarketAlertFilter.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.PaymentAccount; - reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccount.deserializeBinaryFromReader); - msg.setPaymentAccount(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setTriggerValue(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsBuyOffer(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addAlertIds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.MarketAlertFilter.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.MarketAlertFilter.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.MarketAlertFilter} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MarketAlertFilter.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPaymentAccount(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.io.bisq.protobuffer.PaymentAccount.serializeBinaryToWriter - ); - } - f = message.getTriggerValue(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getIsBuyOffer(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getAlertIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } -}; - - -/** - * optional PaymentAccount payment_account = 1; - * @return {?proto.io.bisq.protobuffer.PaymentAccount} - */ -proto.io.bisq.protobuffer.MarketAlertFilter.prototype.getPaymentAccount = function() { - return /** @type{?proto.io.bisq.protobuffer.PaymentAccount} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PaymentAccount, 1)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.PaymentAccount|undefined} value - * @return {!proto.io.bisq.protobuffer.MarketAlertFilter} returns this -*/ -proto.io.bisq.protobuffer.MarketAlertFilter.prototype.setPaymentAccount = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.MarketAlertFilter} returns this - */ -proto.io.bisq.protobuffer.MarketAlertFilter.prototype.clearPaymentAccount = function() { - return this.setPaymentAccount(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.MarketAlertFilter.prototype.hasPaymentAccount = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional int32 trigger_value = 2; - * @return {number} - */ -proto.io.bisq.protobuffer.MarketAlertFilter.prototype.getTriggerValue = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.io.bisq.protobuffer.MarketAlertFilter} returns this - */ -proto.io.bisq.protobuffer.MarketAlertFilter.prototype.setTriggerValue = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional bool is_buy_offer = 3; - * @return {boolean} - */ -proto.io.bisq.protobuffer.MarketAlertFilter.prototype.getIsBuyOffer = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.io.bisq.protobuffer.MarketAlertFilter} returns this - */ -proto.io.bisq.protobuffer.MarketAlertFilter.prototype.setIsBuyOffer = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * repeated string alert_ids = 4; - * @return {!Array} - */ -proto.io.bisq.protobuffer.MarketAlertFilter.prototype.getAlertIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.io.bisq.protobuffer.MarketAlertFilter} returns this - */ -proto.io.bisq.protobuffer.MarketAlertFilter.prototype.setAlertIdsList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.io.bisq.protobuffer.MarketAlertFilter} returns this - */ -proto.io.bisq.protobuffer.MarketAlertFilter.prototype.addAlertIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.io.bisq.protobuffer.MarketAlertFilter} returns this - */ -proto.io.bisq.protobuffer.MarketAlertFilter.prototype.clearAlertIdsList = function() { - return this.setAlertIdsList([]); -}; - - - - - -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.MockMailboxPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.MockMailboxPayload.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.MockMailboxPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MockMailboxPayload.toObject = function(includeInstance, msg) { - var f, obj = { - message: jspb.Message.getFieldWithDefault(msg, 1, ""), - senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), - uid: 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.MockMailboxPayload} - */ -proto.io.bisq.protobuffer.MockMailboxPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.MockMailboxPayload; - return proto.io.bisq.protobuffer.MockMailboxPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.MockMailboxPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.MockMailboxPayload} - */ -proto.io.bisq.protobuffer.MockMailboxPayload.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.setMessage(value); - break; - case 2: - var value = new proto.io.bisq.protobuffer.NodeAddress; - reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); - msg.setSenderNodeAddress(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.MockMailboxPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.MockMailboxPayload.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.MockMailboxPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MockMailboxPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMessage(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSenderNodeAddress(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string message = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.MockMailboxPayload.prototype.getMessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.MockMailboxPayload} returns this - */ -proto.io.bisq.protobuffer.MockMailboxPayload.prototype.setMessage = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional NodeAddress sender_node_address = 2; - * @return {?proto.io.bisq.protobuffer.NodeAddress} - */ -proto.io.bisq.protobuffer.MockMailboxPayload.prototype.getSenderNodeAddress = function() { - return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( - jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 2)); -}; - - -/** - * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value - * @return {!proto.io.bisq.protobuffer.MockMailboxPayload} returns this -*/ -proto.io.bisq.protobuffer.MockMailboxPayload.prototype.setSenderNodeAddress = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.io.bisq.protobuffer.MockMailboxPayload} returns this - */ -proto.io.bisq.protobuffer.MockMailboxPayload.prototype.clearSenderNodeAddress = function() { - return this.setSenderNodeAddress(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.io.bisq.protobuffer.MockMailboxPayload.prototype.hasSenderNodeAddress = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string uid = 3; - * @return {string} - */ -proto.io.bisq.protobuffer.MockMailboxPayload.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.MockMailboxPayload} returns this - */ -proto.io.bisq.protobuffer.MockMailboxPayload.prototype.setUid = 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.MockPayload.prototype.toObject = function(opt_includeInstance) { - return proto.io.bisq.protobuffer.MockPayload.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.MockPayload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MockPayload.toObject = function(includeInstance, msg) { - var f, obj = { - messageVersion: jspb.Message.getFieldWithDefault(msg, 1, ""), - message: 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.MockPayload} - */ -proto.io.bisq.protobuffer.MockPayload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.io.bisq.protobuffer.MockPayload; - return proto.io.bisq.protobuffer.MockPayload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.io.bisq.protobuffer.MockPayload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.io.bisq.protobuffer.MockPayload} - */ -proto.io.bisq.protobuffer.MockPayload.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.setMessageVersion(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setMessage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.io.bisq.protobuffer.MockPayload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.io.bisq.protobuffer.MockPayload.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.MockPayload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.io.bisq.protobuffer.MockPayload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMessageVersion(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMessage(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string message_version = 1; - * @return {string} - */ -proto.io.bisq.protobuffer.MockPayload.prototype.getMessageVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.MockPayload} returns this - */ -proto.io.bisq.protobuffer.MockPayload.prototype.setMessageVersion = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string message = 2; - * @return {string} - */ -proto.io.bisq.protobuffer.MockPayload.prototype.getMessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.io.bisq.protobuffer.MockPayload} returns this - */ -proto.io.bisq.protobuffer.MockPayload.prototype.setMessage = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.SupportType = { - ARBITRATION: 0, - MEDIATION: 1, - TRADE: 2, - REFUND: 3 -}; - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.AvailabilityResult = { - PB_ERROR: 0, - UNKNOWN_FAILURE: 1, - AVAILABLE: 2, - OFFER_TAKEN: 3, - PRICE_OUT_OF_TOLERANCE: 4, - MARKET_PRICE_NOT_AVAILABLE: 5, - NO_ARBITRATORS: 6, - NO_MEDIATORS: 7, - 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, - MAKER_DENIED_TAKER: 14 -}; - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.MediationResultState = { - PB_ERROR_MEDIATION_RESULT: 0, - UNDEFINED_MEDIATION_RESULT: 1, - MEDIATION_RESULT_ACCEPTED: 2, - MEDIATION_RESULT_REJECTED: 3, - SIG_MSG_SENT: 4, - SIG_MSG_ARRIVED: 5, - SIG_MSG_IN_MAILBOX: 6, - SIG_MSG_SEND_FAILED: 7, - RECEIVED_SIG_MSG: 8, - PAYOUT_TX_PUBLISHED: 9, - PAYOUT_TX_PUBLISHED_MSG_SENT: 10, - PAYOUT_TX_PUBLISHED_MSG_ARRIVED: 11, - PAYOUT_TX_PUBLISHED_MSG_IN_MAILBOX: 12, - PAYOUT_TX_PUBLISHED_MSG_SEND_FAILED: 13, - RECEIVED_PAYOUT_TX_PUBLISHED_MSG: 14, - PAYOUT_TX_SEEN_IN_NETWORK: 15 -}; - -/** - * @enum {number} - */ -proto.io.bisq.protobuffer.RefundResultState = { - PB_ERROR_REFUND_RESULT: 0, - UNDEFINED_REFUND_RESULT: 1 -}; - -goog.object.extend(exports, proto.io.bisq.protobuffer);