diff --git a/.project b/.project new file mode 100644 index 00000000..c499d373 --- /dev/null +++ b/.project @@ -0,0 +1,22 @@ + + + haveno-ui-poc + + + + + + org.eclipse.ui.externaltools.ExternalToolBuilder + full,incremental, + + + LaunchConfigHandle + <project>/.externalToolBuilders/org.eclipse.wst.validation.validationbuilder.launch + + + + + + org.eclipse.wst.jsdt.core.jsNature + + diff --git a/README.md b/README.md index b87cb004..8645cb65 100644 --- a/README.md +++ b/README.md @@ -1,46 +1,16 @@ -# Getting Started with Create React App +# Haveno UI Proof of Concept -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). +A proof of concept to fetch and render data from Haveno's daemon in ReactJS. -## Available Scripts +This application is a basic [create-react-app](https://github.com/facebook/create-react-app) with typescript using [grpc-web](https://github.com/grpc/grpc-web) and a proxy ([envoy](https://www.envoyproxy.io/)) for Haveno's gRPC daemon. -In the project directory, you can run: +# How to Run in a Browser -### `npm start` - -Runs the app in the development mode.\ -Open [http://localhost:3000](http://localhost:3000) to view it in the browser. - -The page will reload if you make edits.\ -You will also see any lint errors in the console. - -### `npm test` - -Launches the test runner in the interactive watch mode.\ -See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. - -### `npm run build` - -Builds the app for production to the `build` folder.\ -It correctly bundles React in production mode and optimizes the build for the best performance. - -The build is minified and the filenames include the hashes.\ -Your app is ready to be deployed! - -See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. - -### `npm run eject` - -**Note: this is a one-way operation. Once you `eject`, you can’t go back!** - -If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. - -Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. - -You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. - -## Learn More - -You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). - -To learn React, check out the [React documentation](https://reactjs.org/). +1. [Run a local Haveno test network](https://github.com/woodser/haveno#running-a-local-haveno-test-network) except replace `./bisq-desktop` with `./bisq-daemon` when starting the arbitrator, Alice, and Bob. +2. `git clone https://github.com/haveno-dex/haveno-ui-poc` +3. `./bin/build_protobuf.sh` +4. Start envoy with the config in ./config/envoy.yaml
+ Example: `docker run --rm -it -v ~/git/haveno-ui-poc/config/envoy.yaml:/envoy.yaml -p 8080:8080 envoyproxy/envoy-dev:8a2143613d43d17d1eb35a24b4a4a4c432215606 -c /envoy.yaml` +5. `npm install` +6. `npm start` to open http://localhost:3000 in a browser +7. Confirm that the Haveno daemon version is displayed (1.3.9). \ No newline at end of file diff --git a/bin/build_protobuf.sh b/bin/build_protobuf.sh new file mode 100755 index 00000000..a0d9b52d --- /dev/null +++ b/bin/build_protobuf.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +cd ./config || exit 1 +protoc -I=./ *.proto --js_out=import_style=commonjs:./ --grpc-web_out=import_style=commonjs,mode=grpcwebtext:./ || exit 1 +cd ../ +mv ./config/grpc_grpc_web_pb.js ./src || exit 1 +mv ./config/grpc_pb.js ./src || exit 1 +mv ./config/pb_pb.js ./src || exit 1 \ No newline at end of file diff --git a/config/envoy.yaml b/config/envoy.yaml new file mode 100644 index 00000000..1d91375a --- /dev/null +++ b/config/envoy.yaml @@ -0,0 +1,55 @@ +admin: + access_log_path: /tmp/admin_access.log + address: + socket_address: { address: 0.0.0.0, port_value: 9901 } + +static_resources: + listeners: + - name: listener_0 + address: + socket_address: { address: 0.0.0.0, port_value: 8080 } + filter_chains: + - filters: + - name: envoy.filters.network.http_connection_manager + typed_config: + "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager + codec_type: auto + stat_prefix: ingress_http + route_config: + name: local_route + virtual_hosts: + - name: local_service + domains: ["*"] + routes: + - match: { prefix: "/" } + route: + cluster: haveno_service + timeout: 0s + max_stream_duration: + grpc_timeout_header_max: 0s + cors: + allow_origin_string_match: + - prefix: "*" + allow_methods: GET, PUT, DELETE, POST, OPTIONS + allow_headers: password,keep-alive,user-agent,cache-control,content-type,content-transfer-encoding,custom-header-1,x-accept-content-transfer-encoding,x-accept-response-streaming,x-user-agent,x-grpc-web,grpc-timeout + max_age: "1728000" + expose_headers: custom-header-1,grpc-status,grpc-message + http_filters: + - name: envoy.filters.http.grpc_web + - name: envoy.filters.http.cors + - name: envoy.filters.http.router + clusters: + - name: haveno_service + connect_timeout: 0.25s + type: logical_dns + http2_protocol_options: {} + lb_policy: round_robin + load_assignment: + cluster_name: cluster_0 + endpoints: + - lb_endpoints: + - endpoint: + address: + socket_address: + address: host.docker.internal + port_value: 9999 \ No newline at end of file diff --git a/config/grpc.proto b/config/grpc.proto new file mode 100644 index 00000000..49f47e15 --- /dev/null +++ b/config/grpc.proto @@ -0,0 +1,253 @@ +/* + * 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 disputeAgentType = 1; + string registrationKey = 2; +} + +message RegisterDisputeAgentReply { +} + +/////////////////////////////////////////////////////////////////////////////////////////// +// Offers +/////////////////////////////////////////////////////////////////////////////////////////// + +service Offers { + rpc GetOffers (GetOffersRequest) returns (GetOffersReply) { + } + rpc CreateOffer (CreateOfferRequest) returns (CreateOfferReply) { + } +} + +message GetOffersRequest { + string direction = 1; + string currencyCode = 2; +} + +message GetOffersReply { + repeated OfferInfo offers = 1; +} + +message CreateOfferRequest { + string currencyCode = 1; + string direction = 2; + string price = 3; + bool useMarketBasedPrice = 4; + double marketPriceMargin = 5; + uint64 amount = 6; + uint64 minAmount = 7; + double buyerSecurityDeposit = 8; + string paymentAccountId = 9; +} + +message CreateOfferReply { + OfferInfo offer = 1; +} + +message OfferInfo { + string id = 1; + string direction = 2; + uint64 price = 3; + bool useMarketBasedPrice = 4; + double marketPriceMargin = 5; + uint64 amount = 6; + uint64 minAmount = 7; + uint64 volume = 8; + uint64 minVolume = 9; + uint64 buyerSecurityDeposit = 10; + string paymentAccountId = 11; // only used when creating offer + string paymentMethodId = 12; + string paymentMethodShortName = 13; + string baseCurrencyCode = 14; + string counterCurrencyCode = 15; + uint64 date = 16; +} + +/////////////////////////////////////////////////////////////////////////////////////////// +// PaymentAccounts +/////////////////////////////////////////////////////////////////////////////////////////// + +service PaymentAccounts { + rpc CreatePaymentAccount (CreatePaymentAccountRequest) returns (CreatePaymentAccountReply) { + } + rpc GetPaymentAccounts (GetPaymentAccountsRequest) returns (GetPaymentAccountsReply) { + } +} + +message CreatePaymentAccountRequest { + string paymentMethodId = 1; + string accountName = 2; + string accountNumber = 3; + // TODO Support all currencies. Maybe add a repeated and if only one is used its a singletonList. + string currencyCode = 4; +} + +message CreatePaymentAccountReply { +} + +message GetPaymentAccountsRequest { +} + +message GetPaymentAccountsReply { + repeated PaymentAccount paymentAccounts = 1; +} + +/////////////////////////////////////////////////////////////////////////////////////////// +// Price +/////////////////////////////////////////////////////////////////////////////////////////// + +service Price { + rpc GetMarketPrice (MarketPriceRequest) returns (MarketPriceReply) { + } +} + +message MarketPriceRequest { + string currencyCode = 1; +} + +message MarketPriceReply { + double price = 1; +} + +/////////////////////////////////////////////////////////////////////////////////////////// +// GetTradeStatistics +/////////////////////////////////////////////////////////////////////////////////////////// + +service GetTradeStatistics { + rpc GetTradeStatistics (GetTradeStatisticsRequest) returns (GetTradeStatisticsReply) { + } +} + +message GetTradeStatisticsRequest { +} + +message GetTradeStatisticsReply { + repeated TradeStatistics2 TradeStatistics = 1; +} + +/////////////////////////////////////////////////////////////////////////////////////////// +// Wallets +/////////////////////////////////////////////////////////////////////////////////////////// + +service Wallets { + rpc GetBalance (GetBalanceRequest) returns (GetBalanceReply) { + } + rpc GetAddressBalance (GetAddressBalanceRequest) returns (GetAddressBalanceReply) { + } + 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 GetBalanceRequest { +} + +message GetBalanceReply { + uint64 balance = 1; +} + +message GetAddressBalanceRequest { + string address = 1; +} + +message GetAddressBalanceReply { + AddressBalanceInfo addressBalanceInfo = 1; +} + +message GetFundingAddressesRequest { +} + +message GetFundingAddressesReply { + repeated AddressBalanceInfo addressBalanceInfo = 1; +} + +message SetWalletPasswordRequest { + string password = 1; + string newPassword = 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 AddressBalanceInfo { + string address = 1; + int64 balance = 2; + int64 numConfirmations = 3; +} + +/////////////////////////////////////////////////////////////////////////////////////////// +// 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 new file mode 100644 index 00000000..0b62e437 --- /dev/null +++ b/config/pb.proto @@ -0,0 +1,2260 @@ +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; + + GetBlocksRequest get_blocks_request = 28; + GetBlocksResponse get_blocks_response = 29; + NewBlockBroadcastMessage new_block_broadcast_message = 30; + + AddPersistableNetworkPayloadMessage add_persistable_network_payload_message = 31; + AckMessage ack_message = 32; + RepublishGovernanceDataRequest republish_governance_data_request = 33; + NewDaoStateHashMessage new_dao_state_hash_message = 34; + GetDaoStateHashesRequest get_dao_state_hashes_request = 35; + GetDaoStateHashesResponse get_dao_state_hashes_response = 36; + NewProposalStateHashMessage new_proposal_state_hash_message = 37; + GetProposalStateHashesRequest get_proposal_state_hashes_request = 38; + GetProposalStateHashesResponse get_proposal_state_hashes_response = 39; + NewBlindVoteStateHashMessage new_blind_vote_state_hash_message = 40; + GetBlindVoteStateHashesRequest get_blind_vote_state_hashes_request = 41; + GetBlindVoteStateHashesResponse get_blind_vote_state_hashes_response = 42; + + BundleOfEnvelopes bundle_of_envelopes = 43; + MediatedPayoutTxSignatureMessage mediated_payout_tx_signature_message = 44; + MediatedPayoutTxPublishedMessage mediated_payout_tx_published_message = 45; + + DelayedPayoutTxSignatureRequest delayed_payout_tx_signature_request = 46; + DelayedPayoutTxSignatureResponse delayed_payout_tx_signature_response = 47; + DepositTxAndDelayedPayoutTxMessage deposit_tx_and_delayed_payout_tx_message = 48; + PeerPublishedDelayedPayoutTxMessage peer_published_delayed_payout_tx_message = 49; + + RefreshTradeStateRequest refresh_trade_state_request = 50 [deprecated = true]; + TraderSignedWitnessMessage trader_signed_witness_message = 51 [deprecated = true]; + + InitTradeRequest init_trade_request = 1001; + MakerReadyToFundMultisigRequest maker_ready_to_fund_multisig_request = 1002; + MakerReadyToFundMultisigResponse maker_ready_to_fund_multisig_response = 1003; + InitMultisigMessage init_multisig_message = 1004; + UpdateMultisigRequest update_multisig_request = 1005; + UpdateMultisigResponse update_multisig_response = 1006; + ArbitratorPayoutTxRequest arbitrator_payout_tx_request = 1007; + ArbitratorPayoutTxResponse arbitrator_payout_tx_response = 1008; + } +} + +/////////////////////////////////////////////////////////////////////////////////////////// +// 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; +} + +// offer + +message OfferAvailabilityRequest { + string offer_id = 1; + PubKeyRing pub_key_ring = 2; + int64 takers_trade_price = 3; + repeated int32 supported_capabilities = 4; + string uid = 5; +} + +message OfferAvailabilityResponse { + string offer_id = 1; + AvailabilityResult availability_result = 2; + repeated int32 supported_capabilities = 3; + string uid = 4; + NodeAddress arbitrator = 5; + NodeAddress mediator = 6; + NodeAddress refund_agent = 7; +} + +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; + bool is_currency_for_taker_fee_btc = 7; + repeated RawTransactionInput raw_transaction_inputs = 8; + int64 change_output_value = 9; + string change_output_address = 10; + bytes taker_multi_sig_pub_key = 11; + string taker_payout_address_string = 12; + PubKeyRing taker_pub_key_ring = 13; + PaymentAccountPayload taker_payment_account_payload = 14; + string taker_account_id = 15; + string taker_fee_tx_id = 16; + repeated NodeAddress accepted_arbitrator_node_addresses = 17; + repeated NodeAddress accepted_mediator_node_addresses = 18; + NodeAddress arbitrator_node_address = 19; + NodeAddress mediator_node_address = 20; + string uid = 21; + bytes account_age_witness_signature_of_offer_id = 22; + int64 current_date = 23; + repeated NodeAddress accepted_refund_agent_node_addresses = 24; + NodeAddress refund_agent_node_address = 25; +} + +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 tx_fee = 6; + int64 trade_fee = 7; + string payout_address_string = 8; + PaymentAccountPayload payment_account_payload = 9; + string account_id = 10; + string trade_fee_tx_id = 11; + string uid = 12; + bytes account_age_witness_signature_of_offer_id = 13; + int64 current_date = 14; + NodeAddress maker_node_address = 15; + NodeAddress taker_node_address = 16; + NodeAddress arbitrator_node_address = 17; +} + +message MakerReadyToFundMultisigRequest { + string trade_id = 1; + NodeAddress sender_node_address = 2; + PubKeyRing pub_key_ring = 3; + string uid = 4; +} + +message MakerReadyToFundMultisigResponse { + string trade_id = 1; + string uid = 2; + bool is_maker_ready_to_fund_multisig = 3; + string maker_contract_as_json = 4; + string maker_contract_signature = 5; + string maker_payout_address_string = 6; + PaymentAccountPayload maker_payment_account_payload = 7; + string maker_account_id = 8; + int64 current_date = 9; +} + +message InitMultisigMessage { + 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 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; +} + +message DelayedPayoutTxSignatureResponse { + string uid = 1; + string trade_id = 2; + NodeAddress sender_node_address = 3; + bytes delayed_payout_tx_signature = 4; +} + +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; + PubKeyRing pub_key_ring = 4; + reserved 5; // WAS: bytes deposit_tx = 5; + string trade_fee_tx_id = 6; + string deposit_tx_id = 7; +} + +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; +} + +// DAO + +message GetBlocksRequest { + int32 from_block_height = 1; + int32 nonce = 2; + NodeAddress sender_node_address = 3; + repeated int32 supported_capabilities = 4; +} + +message GetBlocksResponse { + // Because of the way how PB implements inheritance we need to use the super class as type + repeated BaseBlock raw_blocks = 1; + int32 request_nonce = 2; +} + +message NewBlockBroadcastMessage { + // Because of the way how PB implements inheritance we need to use the super class as type + BaseBlock raw_block = 1; +} + +message RepublishGovernanceDataRequest { +} + +message NewDaoStateHashMessage { + DaoStateHash state_hash = 1; +} + +message NewProposalStateHashMessage { + ProposalStateHash state_hash = 1; +} + +message NewBlindVoteStateHashMessage { + BlindVoteStateHash state_hash = 1; +} + +message GetDaoStateHashesRequest { + int32 height = 1; + int32 nonce = 2; +} + +message GetProposalStateHashesRequest { + int32 height = 1; + int32 nonce = 2; +} + +message GetBlindVoteStateHashesRequest { + int32 height = 1; + int32 nonce = 2; +} + +message GetDaoStateHashesResponse { + repeated DaoStateHash state_hashes = 1; + int32 request_nonce = 2; +} + +message GetProposalStateHashesResponse { + repeated ProposalStateHash state_hashes = 1; + int32 request_nonce = 2; +} + +message GetBlindVoteStateHashesResponse { + repeated BlindVoteStateHash state_hashes = 1; + int32 request_nonce = 2; +} + +/////////////////////////////////////////////////////////////////////////////////////////// +// 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; + + // not used anymore from v0.6 on. But leave it for receiving TradeStatistics objects from older + // versions and convert it to TradeStatistics2 objects. + TradeStatistics trade_statistics = 5 [deprecated = true]; + + MailboxStoragePayload mailbox_storage_payload = 6; + OfferPayload offer_payload = 7; + TempProposalPayload temp_proposal_payload = 8; + RefundAgent refund_agent = 9; + } +} + +message PersistableNetworkPayload { + oneof message { + AccountAgeWitness account_age_witness = 1; + TradeStatistics2 trade_statistics2 = 2; + ProposalPayload proposal_payload = 3; + BlindVotePayload blind_vote_payload = 4; + SignedWitness signed_witness = 5; + } +} + +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; +} + +// 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; +} + +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 banned_node_address = 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; + bool disable_dao = 14; + string disable_dao_below_version = 15; + string disable_trade_below_version = 16; + repeated string mediators = 17; + repeated string refundAgents = 18; + repeated string bannedSignerPubKeys = 19; + repeated string btc_fee_receiver_addresses = 20; + int64 creation_date = 21; + string signer_pub_key_as_hex = 22; + repeated string bannedPrivilegedDevPubKeys = 23; + bool disable_auto_conf = 24; +} + +// not used anymore from v0.6 on. But leave it for receiving TradeStatistics objects from older +// versions and convert it to TradeStatistics2 objects. +message TradeStatistics { + string base_currency = 1; + string counter_currency = 2; + OfferPayload.Direction direction = 3; + int64 trade_price = 4; + int64 trade_amount = 5; + int64 trade_date = 6; + string payment_method_id = 7; + int64 offer_date = 8; + bool offer_use_market_based_price = 9; + double offer_market_price_margin = 10; + int64 offer_amount = 11; + int64 offer_min_amount = 12; + string offer_id = 13; + string deposit_tx_id = 14; // Old - string deposit_tx_id = 14; + bytes signature_pub_key_bytes = 15; + map extra_data = 16; +} + +message TradeStatistics2 { + string base_currency = 1; + string counter_currency = 2; + OfferPayload.Direction direction = 3; + int64 trade_price = 4; + int64 trade_amount = 5; + int64 trade_date = 6; + string payment_method_id = 7; + int64 offer_date = 8; + bool offer_use_market_based_price = 9; + double offer_market_price_margin = 10; + int64 offer_amount = 11; + int64 offer_min_amount = 12; + string offer_id = 13; + reserved 14; // Old - string deposit_tx_id = 14; + bytes hash = 15; + map extra_data = 16; + string maker_deposit_tx_id = 1000; + string taker_deposit_tx_id = 1001; +} + +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; + repeated NodeAddress arbitrator_node_addresses = 13 [deprecated = true]; // not used anymore but still required as old clients check for nonNull + repeated NodeAddress mediator_node_addresses = 14 [deprecated = true]; // not used anymore but still required as old clients check for nonNull + string payment_method_id = 15; + string maker_payment_account_id = 16; + string offer_fee_payment_tx_id = 17; + string country_code = 18; + repeated string accepted_country_codes = 19; + string bank_id = 20; + repeated string accepted_bank_ids = 21; + string version_nr = 22; + int64 block_height_at_offer_creation = 23; + int64 tx_fee = 24; + int64 maker_fee = 25; + bool is_currency_for_maker_fee_btc = 26; + int64 buyer_security_deposit = 27; + int64 seller_security_deposit = 28; + int64 max_trade_limit = 29; + int64 max_trade_period = 30; + bool use_auto_close = 31; + bool use_re_open_after_auto_close = 32; + int64 lower_close_price = 33; + int64 upper_close_price = 34; + bool is_private_offer = 35; + string hash_of_challenge = 36; + map extra_data = 37; + int32 protocol_version = 38; +} + +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 { + string trade_id = 1; + string id = 2; + int32 trader_id = 3; + bool dispute_opener_is_buyer = 4; + bool dispute_opener_is_maker = 5; + int64 opening_date = 6; + PubKeyRing trader_pub_key_ring = 7; + int64 trade_date = 8; + Contract contract = 9; + bytes contract_hash = 10; + bytes deposit_tx_serialized = 11; + bytes payout_tx_serialized = 12; + string deposit_tx_id = 13; + string payout_tx_id = 14; + string contract_as_json = 15; + string maker_contract_signature = 16; + string taker_contract_signature = 17; + PubKeyRing agent_pub_key_ring = 18; + bool is_support_ticket = 19; + repeated ChatMessage chat_message = 20; + bool is_closed = 21; + DisputeResult dispute_result = 22; + string dispute_payout_tx_id = 23; + SupportType support_type = 24; + string mediators_dispute_result = 25; + string delayed_payout_tx_id = 26; + string donation_address_of_delayed_payout_tx = 27; + bool is_opener = 28; +} + +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; + reserved 10; // was 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; + PaymentAccountPayload maker_payment_account_payload = 9; + PaymentAccountPayload taker_payment_account_payload = 10; + PubKeyRing maker_pub_key_ring = 11; + PubKeyRing taker_pub_key_ring = 12; + NodeAddress buyer_node_address = 13; + NodeAddress seller_node_address = 14; + string maker_payout_address_string = 15; + string taker_payout_address_string = 16; + NodeAddress arbitrator_node_address = 17; + int64 lock_time = 18; +} + +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; +} + +/////////////////////////////////////////////////////////////////////////////////////////// +// 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; + } + 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 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 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 PromptPayAccountPayload { + string prompt_pay_id = 1; +} + +message AdvancedCashAccountPayload { + string account_nr = 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; + + // deprecated + // BsqState bsq_state = 12; // not used but as other non-dao data have a higher index number we leave it to make clear that we cannot change following indexes + + AccountAgeWitnessStore account_age_witness_store = 13; + TradeStatistics2Store trade_statistics2_store = 14; + + // PersistableNetworkPayloadList persistable_network_payload_list = 15; // long deprecated & migration away from it is already done + + ProposalStore proposal_store = 16; + TempProposalStore temp_proposal_store = 17; + BlindVoteStore blind_vote_store = 18; + MyProposalList my_proposal_list = 19; + BallotList ballot_list = 20; + MyVoteList my_vote_list = 21; + MyBlindVoteList my_blind_vote_list = 22; + // MeritList merit_list = 23; // was not used here, but its class used to implement PersistableEnvelope via its super + DaoStateStore dao_state_store = 24; + MyReputationList my_reputation_list = 25; + MyProofOfBurnList my_proof_of_burn_list = 26; + UnconfirmedBsqChangeOutputList unconfirmed_bsq_change_output_list = 27; + SignedWitnessStore signed_witness_store = 28; + MediationDisputeList mediation_dispute_list = 29; + RefundDisputeList refund_dispute_list = 30; + + XmrAddressEntryList xmr_address_entry_list = 31; + } +} + +/////////////////////////////////////////////////////////////////////////////////////////// +// 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 +message TradeStatistics2Store { + repeated TradeStatistics2 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; +} + +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 account_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 OpenOffer { + enum State { + PB_ERROR = 0; + AVAILABLE = 1; + RESERVED = 2; + CLOSED = 3; + CANCELED = 4; + DEACTIVATED = 5; + } + + Offer offer = 1; + State state = 2; + NodeAddress arbitrator_node_address = 3; + NodeAddress mediator_node_address = 4; + NodeAddress refund_agent_node_address = 5; +} + +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; + } +} + +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; + bool is_currency_for_taker_fee_btc = 10; + int64 trade_price = 11; + State state = 13; + DisputeState dispute_state = 14; + TradePeriodState trade_period_state = 15; + Contract contract = 16; + string contract_as_json = 17; + bytes contract_hash = 18; + string taker_contract_signature = 19; + string maker_contract_signature = 20; + NodeAddress arbitrator_node_address = 21; + NodeAddress mediator_node_address = 22; + bytes arbitrator_btc_pub_key = 23; + string taker_payment_account_id = 24; + string error_message = 25; + PubKeyRing arbitrator_pub_key_ring = 26; + PubKeyRing mediator_pub_key_ring = 27; + string counter_currency_tx_id = 28; + repeated ChatMessage chat_message = 29; + MediationResultState mediation_result_state = 30; + int64 lock_time = 31; + bytes delayed_payout_tx_bytes = 32; + NodeAddress refund_agent_node_address = 33; + PubKeyRing refund_agent_pub_key_ring = 34; + RefundResultState refund_result_state = 35; + int64 last_refresh_request_date = 36 [deprecated = true]; + string counter_currency_extra_data = 37; + string asset_tx_proof_result = 38; // name of AssetTxProofResult enum + + NodeAddress taker_node_address = 1000; // TODO (woodser): re-order? need to reset trades + PubKeyRing taker_pub_key_ring = 1001; + string taker_deposit_tx_id = 1002; + NodeAddress maker_node_address = 1003; + PubKeyRing maker_pub_key_ring = 1004; + string maker_deposit_tx_id = 1005; +} + +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; + + TradingPeer maker = 1001; + TradingPeer taker = 1002; + TradingPeer arbitrator = 1003; + NodeAddress temp_trading_peer_node_address = 1004; + string prepared_multisig_hex = 1005; + string made_multisig_hex = 1006; + bool multisig_setup_complete = 1007; + bool maker_ready_to_fund_multisig = 1008; + bool multisig_deposit_initiated = 1009; + string taker_prepared_deposit_tx_id = 1010; + string maker_prepared_deposit_tx_id = 1011; +} + +message TradingPeer { + string account_id = 1; + PaymentAccountPayload payment_account_payload = 2; + string payout_address_string = 3; + string contract_as_json = 4; + string contract_signature = 5; + bytes signature = 6; // TODO (woodser): remove unused fields? this was buyer-signed payout tx as bytes + PubKeyRing pub_key_ring = 7; + bytes multi_sig_pub_key = 8; + repeated RawTransactionInput raw_transaction_inputs = 9; + int64 change_output_value = 10; + string change_output_address = 11; + bytes account_age_witness_nonce = 12; + bytes account_age_witness_signature = 13; + int64 current_date = 14; + bytes mediated_payout_tx_signature = 15; + + string prepared_multisig_hex = 1001; + string made_multisig_hex = 1002; + string signed_payout_tx_hex = 1003; +} + +/////////////////////////////////////////////////////////////////////////////////////////// +// 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; + BlockChainExplorer bsq_block_chain_explorer = 7; + string backup_directory = 8; + bool auto_select_arbitrators = 9; + map dont_show_again_map = 10; + bool tac_accepted = 11; + bool use_tor_for_bitcoin_j = 12; + bool show_own_offers_in_offer_book = 13; + TradeCurrency preferred_trade_currency = 14; + int64 withdrawal_tx_fee_in_bytes = 15; + bool use_custom_withdrawal_tx_fee = 16; + double max_price_distance_in_percent = 17; + string offer_book_chart_screen_currency_code = 18; + string trade_charts_screen_currency_code = 19; + string buy_screen_currency_code = 20; + string sell_screen_currency_code = 21; + int32 trade_statistics_tick_unit_index = 22; + bool resync_Spv_requested = 23; + bool sort_market_currencies_numerically = 24; + bool use_percentage_based_price = 25; + map peer_tag_map = 26; + string bitcoin_nodes = 27; + repeated string ignore_traders_list = 28; + string directory_chooser_path = 29; + int64 buyer_security_deposit_as_long = 30 [deprecated = true]; // Superseded by buyerSecurityDepositAsPercent + bool use_animations = 31; + PaymentAccount selectedPayment_account_for_createOffer = 32; + bool pay_fee_in_Btc = 33; + repeated string bridge_addresses = 34; + int32 bridge_option_ordinal = 35; + int32 tor_transport_ordinal = 36; + string custom_bridges = 37; + int32 bitcoin_nodes_option_ordinal = 38; + string referral_id = 39; + string phone_key_and_token = 40; + bool use_sound_for_mobile_notifications = 41; + bool use_trade_notifications = 42; + bool use_market_notifications = 43; + bool use_price_notifications = 44; + bool use_standby_mode = 45; + bool is_dao_full_node = 46; + string rpc_user = 47; + string rpc_pw = 48; + string take_offer_selected_payment_account_id = 49; + double buyer_security_deposit_as_percent = 50; + int32 ignore_dust_threshold = 51; + double buyer_security_deposit_as_percent_for_crypto = 52; + int32 block_notify_port = 53; + int32 css_theme = 54; + bool tac_accepted_v120 = 55; + repeated AutoConfirmSettings auto_confirm_settings = 56; +} + +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; +} + +/////////////////////////////////////////////////////////////////////////////////////////// +// DAO +/////////////////////////////////////////////////////////////////////////////////////////// + +// blockchain + +message BaseBlock { + int32 height = 1; + int64 time = 2; + string hash = 3; + string previous_block_hash = 4; + oneof message { + RawBlock raw_block = 5; + Block block = 6; + } +} + +message RawBlock { + // Because of the way how PB implements inheritance we need to use the super class as type + repeated BaseTx raw_txs = 1; +} + +message Block { + // Because of the way how PB implements inheritance we need to use the super class as type + repeated BaseTx txs = 1; +} + +message BaseTx { + string tx_version = 1; + string id = 2; + int32 block_height = 3; + string block_hash = 4; + int64 time = 5; + repeated TxInput tx_inputs = 6; + oneof message { + RawTx raw_tx = 7; + Tx tx = 8; + } +} + +message RawTx { + // Because of the way how PB implements inheritance we need to use the super class as type + repeated BaseTxOutput raw_tx_outputs = 1; +} + +message Tx { + // Because of the way how PB implements inheritance we need to use the super class as type + repeated BaseTxOutput tx_outputs = 1; + TxType txType = 2; + int64 burnt_bsq = 3; +} + +enum TxType { + PB_ERROR_TX_TYPE = 0; + UNDEFINED_TX_TYPE = 1; + UNVERIFIED = 2; + INVALID = 3; + GENESIS = 4; + TRANSFER_BSQ = 5; + PAY_TRADE_FEE = 6; + PROPOSAL = 7; + COMPENSATION_REQUEST = 8; + REIMBURSEMENT_REQUEST = 9; + BLIND_VOTE = 10; + VOTE_REVEAL = 11; + LOCKUP = 12; + UNLOCK = 13; + ASSET_LISTING_FEE = 14; + PROOF_OF_BURN = 15; + IRREGULAR = 16; +} + +message TxInput { + string connected_tx_output_tx_id = 1; + int32 connected_tx_output_index = 2; + string pub_key = 3; +} + +message BaseTxOutput { + int32 index = 1; + int64 value = 2; + string tx_id = 3; + PubKeyScript pub_key_script = 4; + string address = 5; + bytes op_return_data = 6; + int32 block_height = 7; + oneof message { + RawTxOutput raw_tx_output = 8; + TxOutput tx_output = 9; + } +} + +message UnconfirmedTxOutput { + int32 index = 1; + int64 value = 2; + string tx_id = 3; +} + +message RawTxOutput { +} + +message TxOutput { + TxOutputType tx_output_type = 1; + int32 lock_time = 2; + int32 unlock_block_height = 3; +} + +enum TxOutputType { + PB_ERROR_TX_OUTPUT_TYPE = 0; + UNDEFINED_OUTPUT = 1; + GENESIS_OUTPUT = 2; + BSQ_OUTPUT = 3; + BTC_OUTPUT = 4; + PROPOSAL_OP_RETURN_OUTPUT = 5; + COMP_REQ_OP_RETURN_OUTPUT = 6; + REIMBURSEMENT_OP_RETURN_OUTPUT = 7; + CONFISCATE_BOND_OP_RETURN_OUTPUT = 8; + ISSUANCE_CANDIDATE_OUTPUT = 9; + BLIND_VOTE_LOCK_STAKE_OUTPUT = 10; + BLIND_VOTE_OP_RETURN_OUTPUT = 11; + VOTE_REVEAL_UNLOCK_STAKE_OUTPUT = 12; + VOTE_REVEAL_OP_RETURN_OUTPUT = 13; + ASSET_LISTING_FEE_OP_RETURN_OUTPUT = 14; + PROOF_OF_BURN_OP_RETURN_OUTPUT = 15; + LOCKUP_OUTPUT = 16; + LOCKUP_OP_RETURN_OUTPUT = 17; + UNLOCK_OUTPUT = 18; + INVALID_OUTPUT = 19; +} + +message SpentInfo { + int64 block_height = 1; + string tx_id = 2; + int32 input_index = 3; +} + +enum ScriptType { + PB_ERROR_SCRIPT_TYPES = 0; + PUB_KEY = 1; + PUB_KEY_HASH = 2; + SCRIPT_HASH = 3; + MULTISIG = 4; + NULL_DATA = 5; + WITNESS_V0_KEYHASH = 6; + WITNESS_V0_SCRIPTHASH = 7; + NONSTANDARD = 8; +} + +message PubKeyScript { + int32 req_sigs = 1; + ScriptType script_type = 2; + repeated string addresses = 3; + string asm = 4; + string hex = 5; +} + +// dao data + +message DaoPhase { + int32 phase_ordinal = 1; + int32 duration = 2; +} + +message Cycle { + int32 height_of_first_lock = 1; + repeated DaoPhase dao_phase = 2; +} + +message DaoState { + int32 chain_height = 1; + // Because of the way how PB implements inheritance we need to use the super class as type + repeated BaseBlock blocks = 2; + repeated Cycle cycles = 3; + // Because of the way how PB implements inheritance we need to use the super class as type + map unspent_tx_output_map = 4; + map issuance_map = 5; + repeated string confiscated_lockup_tx_list = 6; + map spent_info_map = 7; + repeated ParamChange param_change_list = 8; + repeated EvaluatedProposal evaluated_proposal_list = 9; + repeated DecryptedBallotsWithMerits decrypted_ballots_with_merits_list = 10; +} + +message Issuance { + string tx_id = 1; + int32 chain_height = 2; + int64 amount = 3; + string pub_key = 4; + string issuance_type = 5; +} + +message Proposal { + string name = 1; + string link = 2; + uint32 version = 3; + int64 creation_date = 4; + string tx_id = 5; + oneof message { + CompensationProposal compensation_proposal = 6; + ReimbursementProposal reimbursement_proposal = 7; + ChangeParamProposal change_param_proposal = 8; + RoleProposal role_proposal = 9; + ConfiscateBondProposal confiscate_bond_proposal = 10; + GenericProposal generic_proposal = 11; + RemoveAssetProposal remove_asset_proposal = 12; + } + // We leave some index space here in case we add more subclasses + map extra_data = 20; +} + +message CompensationProposal { + int64 requested_bsq = 1; + string bsq_address = 2; +} + +message ReimbursementProposal { + int64 requested_bsq = 1; + string bsq_address = 2; +} + +message ChangeParamProposal { + string param = 1; // name of enum + string param_value = 2; +} + +message RoleProposal { + Role role = 1; + int64 required_bond_unit = 2; + int32 unlock_time = 3; +} + +message ConfiscateBondProposal { + string lockup_tx_id = 1; +} + +message GenericProposal { +} + +message RemoveAssetProposal { + string ticker_symbol = 1; +} + +message Role { + string uid = 1; + string name = 2; + string link = 3; + string bonded_role_type = 4; // name of BondedRoleType enum +} + +message MyReputation { + string uid = 1; + bytes salt = 2; +} + +message MyReputationList { + repeated MyReputation my_reputation = 1; +} + +message MyProofOfBurn { + string tx_id = 1; + string pre_image = 2; +} + +message MyProofOfBurnList { + repeated MyProofOfBurn my_proof_of_burn = 1; +} + +message UnconfirmedBsqChangeOutputList { + repeated UnconfirmedTxOutput unconfirmed_tx_output = 1; +} + +message TempProposalPayload { + Proposal proposal = 1; + bytes owner_pub_key_encoded = 2; + map extra_data = 3; +} + +message ProposalPayload { + Proposal proposal = 1; + bytes hash = 2; +} + +message ProposalStore { + repeated ProposalPayload items = 1; +} + +message TempProposalStore { + repeated ProtectedStorageEntry items = 1; +} + +message Ballot { + Proposal proposal = 1; + Vote vote = 2; +} + +message MyProposalList { + repeated Proposal proposal = 1; +} + +message BallotList { + repeated Ballot ballot = 1; +} + +message ParamChange { + string param_name = 1; + string param_value = 2; + int32 activation_height = 3; +} + +message ConfiscateBond { + string lockup_tx_id = 1; +} + +message MyVote { + int32 height = 1; + BallotList ballot_list = 2; + bytes secret_key_encoded = 3; + BlindVote blind_vote = 4; + int64 date = 5; + string reveal_tx_id = 6; +} + +message MyVoteList { + repeated MyVote my_vote = 1; +} + +message VoteWithProposalTxId { + string proposal_tx_id = 1; + Vote vote = 2; +} + +message VoteWithProposalTxIdList { + repeated VoteWithProposalTxId item = 1; +} + +message BlindVote { + bytes encrypted_votes = 1; + string tx_id = 2; + int64 stake = 3; + bytes encrypted_merit_list = 4; + int64 date = 5; + map extra_data = 6; +} + +message MyBlindVoteList { + repeated BlindVote blind_vote = 1; +} + +message BlindVoteStore { + repeated BlindVotePayload items = 1; +} + +message BlindVotePayload { + BlindVote blind_vote = 1; + bytes hash = 2; +} + +message Vote { + bool accepted = 1; +} + +message Merit { + Issuance issuance = 1; + bytes signature = 2; +} + +message MeritList { + repeated Merit merit = 1; +} + +message ProposalVoteResult { + Proposal proposal = 1; + int64 stake_of_Accepted_votes = 2; + int64 stake_of_Rejected_votes = 3; + int32 num_accepted_votes = 4; + int32 num_rejected_votes = 5; + int32 num_ignored_votes = 6; +} + +message EvaluatedProposal { + bool is_accepted = 1; + ProposalVoteResult proposal_vote_result = 2; +} + +message DecryptedBallotsWithMerits { + bytes hash_of_blind_vote_list = 1; + string blind_vote_tx_id = 2; + string vote_reveal_tx_id = 3; + int64 stake = 4; + BallotList ballot_list = 5; + MeritList merit_list = 6; +} + +message DaoStateStore { + DaoState dao_state = 1; + repeated DaoStateHash dao_state_hash = 2; +} + +message DaoStateHash { + int32 height = 1; + bytes hash = 2; + bytes prev_hash = 3; +} + +message ProposalStateHash { + int32 height = 1; + bytes hash = 2; + bytes prev_hash = 3; + int32 num_proposals = 4; +} + +message BlindVoteStateHash { + int32 height = 1; + bytes hash = 2; + bytes prev_hash = 3; + int32 num_blind_votes = 4; +} + +/////////////////////////////////////////////////////////////////////////////////////////// +// Misc +/////////////////////////////////////////////////////////////////////////////////////////// + +message BlockChainExplorer { + string name = 1; + string tx_url = 2; + string address_url = 3; +} + +message PaymentAccount { + string id = 1; + int64 creation_date = 2; + 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; + int64 max_trade_limit = 3; +} + +// 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-lock.json b/package-lock.json index 11e4dcff..db14187c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,8 @@ "": { "version": "0.1.0", "dependencies": { + "@grpc/grpc-js": "^1.1.0", + "@grpc/proto-loader": "^0.5.0", "@testing-library/jest-dom": "^5.11.10", "@testing-library/react": "^11.2.6", "@testing-library/user-event": "^12.8.3", @@ -14,6 +16,8 @@ "@types/node": "^12.20.10", "@types/react": "^17.0.3", "@types/react-dom": "^17.0.3", + "google-protobuf": "^3.0.0", + "grpc-web": "^1.2.1", "react": "^17.0.2", "react-dom": "^17.0.2", "react-scripts": "4.0.3", @@ -1497,6 +1501,39 @@ "node": ">=8" } }, + "node_modules/@grpc/grpc-js": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.2.12.tgz", + "integrity": "sha512-+gPCklP1eqIgrNPyzddYQdt9+GvZqPlLpIjIo+TveE+gbtp74VV1A2ju8ExeO8ma8f7MbpaGZx/KJPYVWL9eDw==", + "dependencies": { + "@types/node": ">=12.12.47", + "google-auth-library": "^6.1.1", + "semver": "^6.2.0" + }, + "engines": { + "node": "^8.13.0 || >=10.10.0" + } + }, + "node_modules/@grpc/grpc-js/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@grpc/proto-loader": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.5.6.tgz", + "integrity": "sha512-DT14xgw3PSzPxwS13auTEwxhMMOoz33DPUKNtmYK/QYbBSpLXJy78FGGs5yVoxVobEqPm4iW9MOIoz0A3bLTRQ==", + "dependencies": { + "lodash.camelcase": "^4.3.0", + "protobufjs": "^6.8.6" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/@hapi/address": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.4.tgz", @@ -2364,6 +2401,60 @@ "node": ">= 8" } }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha1-m4sMxmPWaafY9vXQiToU00jzD78=" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha1-NVy8mLr61ZePntCV85diHx0Ga3A=" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=" + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=" + }, "node_modules/@rollup/plugin-node-resolve": { "version": "7.1.3", "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-7.1.3.tgz", @@ -3015,6 +3106,11 @@ "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", "integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=" }, + "node_modules/@types/long": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.1.tgz", + "integrity": "sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w==" + }, "node_modules/@types/minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.4.tgz", @@ -3494,6 +3590,17 @@ "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz", "integrity": "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==" }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, "node_modules/accepts": { "version": "1.3.7", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", @@ -3562,6 +3669,17 @@ "node": ">=8.9" } }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, "node_modules/aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", @@ -4651,6 +4769,14 @@ "node": "*" } }, + "node_modules/bignumber.js": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.0.1.tgz", + "integrity": "sha512-IdZR9mh6ahOBv/hYGiXyVuyCetmGJhtYkqLBpTStdhEGjegpPlUawydyaF3pbIOFynJTpllEs+NP+CS9jKFLjA==", + "engines": { + "node": "*" + } + }, "node_modules/binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", @@ -4902,6 +5028,11 @@ "isarray": "^1.0.0" } }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" + }, "node_modules/buffer-from": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", @@ -6801,6 +6932,14 @@ "safer-buffer": "^2.1.0" } }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, "node_modules/ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", @@ -7832,6 +7971,14 @@ "node": ">= 0.6" } }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "engines": { + "node": ">=6" + } + }, "node_modules/eventemitter3": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", @@ -8254,6 +8401,11 @@ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=" }, + "node_modules/fast-text-encoding": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/fast-text-encoding/-/fast-text-encoding-1.0.3.tgz", + "integrity": "sha512-dtm4QZH9nZtcDt8qJiOH9fcQd1NAgi+K1O2DbE6GG1PPCK/BWfOH3idCTRQ4ImXRUOyopDEgDEnVEE7Y/2Wrig==" + }, "node_modules/fastq": { "version": "1.11.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.11.0.tgz", @@ -8858,6 +9010,33 @@ "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=" }, + "node_modules/gaxios": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-4.2.0.tgz", + "integrity": "sha512-Ms7fNifGv0XVU+6eIyL9LB7RVESeML9+cMvkwGS70xyD6w2Z80wl6RiqiJ9k1KFlJCUTQqFFc8tXmPQfSKUe8g==", + "dependencies": { + "abort-controller": "^3.0.0", + "extend": "^3.0.2", + "https-proxy-agent": "^5.0.0", + "is-stream": "^2.0.0", + "node-fetch": "^2.3.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/gcp-metadata": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-4.2.1.tgz", + "integrity": "sha512-tSk+REe5iq/N+K+SK1XjZJUrFPuDqGZVzCy2vocIHIGmPlTGsa8owXMJwGkrXr73NO0AzhPW4MF2DEHz7P2AVw==", + "dependencies": { + "gaxios": "^4.0.0", + "json-bigint": "^1.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", @@ -9030,6 +9209,44 @@ "node": ">= 4" } }, + "node_modules/google-auth-library": { + "version": "6.1.6", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-6.1.6.tgz", + "integrity": "sha512-Q+ZjUEvLQj/lrVHF/IQwRo6p3s8Nc44Zk/DALsN+ac3T4HY/g/3rrufkgtl+nZ1TW7DNAw5cTChdVp4apUXVgQ==", + "dependencies": { + "arrify": "^2.0.0", + "base64-js": "^1.3.0", + "ecdsa-sig-formatter": "^1.0.11", + "fast-text-encoding": "^1.0.0", + "gaxios": "^4.0.0", + "gcp-metadata": "^4.2.0", + "gtoken": "^5.0.4", + "jws": "^4.0.0", + "lru-cache": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/google-p12-pem": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-3.0.3.tgz", + "integrity": "sha512-wS0ek4ZtFx/ACKYF3JhyGe5kzH7pgiQ7J5otlumqR9psmWMYc+U9cErKlCYVYHoUaidXHdZ2xbo34kB+S+24hA==", + "dependencies": { + "node-forge": "^0.10.0" + }, + "bin": { + "gp12-pem": "build/src/bin/gp12-pem.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/google-protobuf": { + "version": "3.15.8", + "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.15.8.tgz", + "integrity": "sha512-2jtfdqTaSxk0cuBJBtTTWsot4WtR9RVr2rXg7x7OoqiuOKopPrwXpM1G4dXIkLcUNRh3RKzz76C8IOkksZSeOw==" + }, "node_modules/graceful-fs": { "version": "4.2.6", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", @@ -9041,6 +9258,24 @@ "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=", "optional": true }, + "node_modules/grpc-web": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/grpc-web/-/grpc-web-1.2.1.tgz", + "integrity": "sha512-ibBaJPzfMVuLPgaST9w0kZl60s+SnkPBQp6QKdpEr85tpc1gXW2QDqSne9xiyiym0logDfdUSm4aX5h9YBA2mw==" + }, + "node_modules/gtoken": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-5.2.1.tgz", + "integrity": "sha512-OY0BfPKe3QnMsY9MzTHTSKn+Vl2l1CcLe6BwDEQj00mbbkl5nyQ/7EUREstg4fQNZ8iYE7br4JJ7TdKeDOPWmw==", + "dependencies": { + "gaxios": "^4.0.0", + "google-p12-pem": "^3.0.3", + "jws": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/gzip-size": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-5.1.1.tgz", @@ -9602,6 +9837,18 @@ "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=" }, + "node_modules/https-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", + "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/human-signals": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", @@ -12402,6 +12649,14 @@ "node": ">=4" } }, + "node_modules/json-bigint": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", + "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", + "dependencies": { + "bignumber.js": "^9.0.0" + } + }, "node_modules/json-parse-better-errors": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", @@ -12488,6 +12743,25 @@ "node": ">=4.0" } }, + "node_modules/jwa": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.0.tgz", + "integrity": "sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==", + "dependencies": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", + "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", + "dependencies": { + "jwa": "^2.0.0", + "safe-buffer": "^5.0.1" + } + }, "node_modules/killable": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/killable/-/killable-1.0.1.tgz", @@ -12647,6 +12921,11 @@ "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=" }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=" + }, "node_modules/lodash.clonedeep": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", @@ -12706,6 +12985,11 @@ "url": "https://tidelift.com/funding/github/npm/loglevel" } }, + "node_modules/long": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + }, "node_modules/loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", @@ -13271,6 +13555,14 @@ "tslib": "^2.0.3" } }, + "node_modules/node-fetch": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", + "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==", + "engines": { + "node": "4.x || >=6.0.0" + } + }, "node_modules/node-forge": { "version": "0.10.0", "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz", @@ -15629,6 +15921,36 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, + "node_modules/protobufjs": { + "version": "6.10.2", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.10.2.tgz", + "integrity": "sha512-27yj+04uF6ya9l+qfpH187aqEzfCF4+Uit0I9ZBQVqK09hk/SQzKa2MUqUpXaVa7LOFRg1TSSr3lVxGOk6c0SQ==", + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": "^13.7.0", + "long": "^4.0.0" + }, + "bin": { + "pbjs": "bin/pbjs", + "pbts": "bin/pbts" + } + }, + "node_modules/protobufjs/node_modules/@types/node": { + "version": "13.13.50", + "resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.50.tgz", + "integrity": "sha512-y7kkh+hX/0jZNxMyBR/6asG0QMSaPSzgeVK63dhWHl4QAXCQB8lExXmzLL6SzmOgKHydtawpMnNhlDbv7DXPEA==" + }, "node_modules/proxy-addr": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz", @@ -22614,6 +22936,32 @@ } } }, + "@grpc/grpc-js": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.2.12.tgz", + "integrity": "sha512-+gPCklP1eqIgrNPyzddYQdt9+GvZqPlLpIjIo+TveE+gbtp74VV1A2ju8ExeO8ma8f7MbpaGZx/KJPYVWL9eDw==", + "requires": { + "@types/node": ">=12.12.47", + "google-auth-library": "^6.1.1", + "semver": "^6.2.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, + "@grpc/proto-loader": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.5.6.tgz", + "integrity": "sha512-DT14xgw3PSzPxwS13auTEwxhMMOoz33DPUKNtmYK/QYbBSpLXJy78FGGs5yVoxVobEqPm4iW9MOIoz0A3bLTRQ==", + "requires": { + "lodash.camelcase": "^4.3.0", + "protobufjs": "^6.8.6" + } + }, "@hapi/address": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.4.tgz", @@ -23250,6 +23598,60 @@ } } }, + "@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha1-m4sMxmPWaafY9vXQiToU00jzD78=" + }, + "@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + }, + "@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + }, + "@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha1-NVy8mLr61ZePntCV85diHx0Ga3A=" + }, + "@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=", + "requires": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=" + }, + "@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=" + }, + "@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=" + }, + "@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=" + }, + "@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=" + }, "@rollup/plugin-node-resolve": { "version": "7.1.3", "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-7.1.3.tgz", @@ -23734,6 +24136,11 @@ "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", "integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=" }, + "@types/long": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.1.tgz", + "integrity": "sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w==" + }, "@types/minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.4.tgz", @@ -24136,6 +24543,14 @@ "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz", "integrity": "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==" }, + "abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "requires": { + "event-target-shim": "^5.0.0" + } + }, "accepts": { "version": "1.3.7", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", @@ -24184,6 +24599,14 @@ "regex-parser": "^2.2.11" } }, + "agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "requires": { + "debug": "4" + } + }, "aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", @@ -25038,6 +25461,11 @@ "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==" }, + "bignumber.js": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.0.1.tgz", + "integrity": "sha512-IdZR9mh6ahOBv/hYGiXyVuyCetmGJhtYkqLBpTStdhEGjegpPlUawydyaF3pbIOFynJTpllEs+NP+CS9jKFLjA==" + }, "binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", @@ -25254,6 +25682,11 @@ "isarray": "^1.0.0" } }, + "buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" + }, "buffer-from": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", @@ -26790,6 +27223,14 @@ "safer-buffer": "^2.1.0" } }, + "ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "requires": { + "safe-buffer": "^5.0.1" + } + }, "ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", @@ -27541,6 +27982,11 @@ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" }, + "event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==" + }, "eventemitter3": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", @@ -27893,6 +28339,11 @@ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=" }, + "fast-text-encoding": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/fast-text-encoding/-/fast-text-encoding-1.0.3.tgz", + "integrity": "sha512-dtm4QZH9nZtcDt8qJiOH9fcQd1NAgi+K1O2DbE6GG1PPCK/BWfOH3idCTRQ4ImXRUOyopDEgDEnVEE7Y/2Wrig==" + }, "fastq": { "version": "1.11.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.11.0.tgz", @@ -28382,6 +28833,27 @@ "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=" }, + "gaxios": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-4.2.0.tgz", + "integrity": "sha512-Ms7fNifGv0XVU+6eIyL9LB7RVESeML9+cMvkwGS70xyD6w2Z80wl6RiqiJ9k1KFlJCUTQqFFc8tXmPQfSKUe8g==", + "requires": { + "abort-controller": "^3.0.0", + "extend": "^3.0.2", + "https-proxy-agent": "^5.0.0", + "is-stream": "^2.0.0", + "node-fetch": "^2.3.0" + } + }, + "gcp-metadata": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-4.2.1.tgz", + "integrity": "sha512-tSk+REe5iq/N+K+SK1XjZJUrFPuDqGZVzCy2vocIHIGmPlTGsa8owXMJwGkrXr73NO0AzhPW4MF2DEHz7P2AVw==", + "requires": { + "gaxios": "^4.0.0", + "json-bigint": "^1.0.0" + } + }, "gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", @@ -28507,6 +28979,35 @@ } } }, + "google-auth-library": { + "version": "6.1.6", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-6.1.6.tgz", + "integrity": "sha512-Q+ZjUEvLQj/lrVHF/IQwRo6p3s8Nc44Zk/DALsN+ac3T4HY/g/3rrufkgtl+nZ1TW7DNAw5cTChdVp4apUXVgQ==", + "requires": { + "arrify": "^2.0.0", + "base64-js": "^1.3.0", + "ecdsa-sig-formatter": "^1.0.11", + "fast-text-encoding": "^1.0.0", + "gaxios": "^4.0.0", + "gcp-metadata": "^4.2.0", + "gtoken": "^5.0.4", + "jws": "^4.0.0", + "lru-cache": "^6.0.0" + } + }, + "google-p12-pem": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-3.0.3.tgz", + "integrity": "sha512-wS0ek4ZtFx/ACKYF3JhyGe5kzH7pgiQ7J5otlumqR9psmWMYc+U9cErKlCYVYHoUaidXHdZ2xbo34kB+S+24hA==", + "requires": { + "node-forge": "^0.10.0" + } + }, + "google-protobuf": { + "version": "3.15.8", + "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.15.8.tgz", + "integrity": "sha512-2jtfdqTaSxk0cuBJBtTTWsot4WtR9RVr2rXg7x7OoqiuOKopPrwXpM1G4dXIkLcUNRh3RKzz76C8IOkksZSeOw==" + }, "graceful-fs": { "version": "4.2.6", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", @@ -28518,6 +29019,21 @@ "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=", "optional": true }, + "grpc-web": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/grpc-web/-/grpc-web-1.2.1.tgz", + "integrity": "sha512-ibBaJPzfMVuLPgaST9w0kZl60s+SnkPBQp6QKdpEr85tpc1gXW2QDqSne9xiyiym0logDfdUSm4aX5h9YBA2mw==" + }, + "gtoken": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-5.2.1.tgz", + "integrity": "sha512-OY0BfPKe3QnMsY9MzTHTSKn+Vl2l1CcLe6BwDEQj00mbbkl5nyQ/7EUREstg4fQNZ8iYE7br4JJ7TdKeDOPWmw==", + "requires": { + "gaxios": "^4.0.0", + "google-p12-pem": "^3.0.3", + "jws": "^4.0.0" + } + }, "gzip-size": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-5.1.1.tgz", @@ -28977,6 +29493,15 @@ "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=" }, + "https-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", + "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", + "requires": { + "agent-base": "6", + "debug": "4" + } + }, "human-signals": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", @@ -31003,6 +31528,14 @@ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==" }, + "json-bigint": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", + "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", + "requires": { + "bignumber.js": "^9.0.0" + } + }, "json-parse-better-errors": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", @@ -31075,6 +31608,25 @@ "object.assign": "^4.1.2" } }, + "jwa": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.0.tgz", + "integrity": "sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==", + "requires": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "jws": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", + "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", + "requires": { + "jwa": "^2.0.0", + "safe-buffer": "^5.0.1" + } + }, "killable": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/killable/-/killable-1.0.1.tgz", @@ -31200,6 +31752,11 @@ "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=" }, + "lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=" + }, "lodash.clonedeep": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", @@ -31252,6 +31809,11 @@ "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.7.1.tgz", "integrity": "sha512-Hesni4s5UkWkwCGJMQGAh71PaLUmKFM60dHvq0zi/vDhhrzuk+4GgNbTXJ12YYQJn6ZKBDNIjYcuQGKudvqrIw==" }, + "long": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + }, "loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", @@ -31709,6 +32271,11 @@ "tslib": "^2.0.3" } }, + "node-fetch": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", + "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" + }, "node-forge": { "version": "0.10.0", "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz", @@ -33594,6 +34161,33 @@ } } }, + "protobufjs": { + "version": "6.10.2", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.10.2.tgz", + "integrity": "sha512-27yj+04uF6ya9l+qfpH187aqEzfCF4+Uit0I9ZBQVqK09hk/SQzKa2MUqUpXaVa7LOFRg1TSSr3lVxGOk6c0SQ==", + "requires": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": "^13.7.0", + "long": "^4.0.0" + }, + "dependencies": { + "@types/node": { + "version": "13.13.50", + "resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.50.tgz", + "integrity": "sha512-y7kkh+hX/0jZNxMyBR/6asG0QMSaPSzgeVK63dhWHl4QAXCQB8lExXmzLL6SzmOgKHydtawpMnNhlDbv7DXPEA==" + } + } + }, "proxy-addr": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz", diff --git a/package.json b/package.json index 6c8f97f7..07abdb81 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,8 @@ "version": "0.1.0", "private": true, "dependencies": { + "@grpc/grpc-js": "^1.1.0", + "@grpc/proto-loader": "^0.5.0", "@testing-library/jest-dom": "^5.11.10", "@testing-library/react": "^11.2.6", "@testing-library/user-event": "^12.8.3", @@ -10,6 +12,8 @@ "@types/node": "^12.20.10", "@types/react": "^17.0.3", "@types/react-dom": "^17.0.3", + "google-protobuf": "^3.0.0", + "grpc-web": "^1.2.1", "react": "^17.0.2", "react-dom": "^17.0.2", "react-scripts": "4.0.3", diff --git a/src/App.tsx b/src/App.tsx index a53698aa..d08ef77d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2,25 +2,59 @@ import React from 'react'; import logo from './logo.svg'; import './App.css'; -function App() { - return ( -
-
- logo -

- Edit src/App.tsx and save to reload. -

- - Learn React - -
-
- ); +/** + * These files are generated by protoc-gen-grpc-web (created with `sudo make install-plugin` in grpc-web) using the following command: + * + * `protoc -I=./ *.proto --js_out=import_style=commonjs:./ --grpc-web_out=import_style=commonjs,mode=grpcwebtext:./` + */ +const {GetVersionRequest} = require('./grpc_grpc_web_pb.js'); +const {GetVersionClient} = require('./grpc_pb.js'); + +class App extends React.Component<{}, {daemonVersion: string}> { + + constructor(props: any) { + super(props); + this.state = {daemonVersion: ""}; + } + + render() { + return ( +
+
+ logo +

+ Haveno daemon version: {this.state.daemonVersion} +

+

+ Edit src/App.tsx and save to reload! +

+ + Learn React + +
+
+ ); + } + + async componentDidMount() { + this.setState({daemonVersion: await this.getDaemonVersion()}); + } + + async getDaemonVersion(): Promise { + let getVersionClient = new GetVersionClient('http://localhost:8080'); + let request = new GetVersionRequest(); + return new Promise(function(resolve, reject) { + getVersionClient.getVersion(request, {password: 'apitest'}, function(err: any, response: any) { + if (err) reject(err); + else resolve(response.getVersion()); + }); + }); + } } export default App; diff --git a/src/grpc_grpc_web_pb.js b/src/grpc_grpc_web_pb.js new file mode 100644 index 00000000..71d3dcd7 --- /dev/null +++ b/src/grpc_grpc_web_pb.js @@ -0,0 +1,1590 @@ +/** + * @fileoverview gRPC-Web generated client stub for io.bisq.protobuffer + * @enhanceable + * @public + */ + +// GENERATED CODE -- DO NOT EDIT! + + +/* eslint-disable */ +// @ts-nocheck + + + +const grpc = {}; +grpc.web = require('grpc-web'); + + +var pb_pb = require('./pb_pb.js') +const proto = {}; +proto.io = {}; +proto.io.bisq = {}; +proto.io.bisq.protobuffer = require('./grpc_pb.js'); + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.DisputeAgentsClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.DisputeAgentsPromiseClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.RegisterDisputeAgentRequest, + * !proto.io.bisq.protobuffer.RegisterDisputeAgentReply>} + */ +const methodDescriptor_DisputeAgents_RegisterDisputeAgent = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.DisputeAgents/RegisterDisputeAgent', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.RegisterDisputeAgentRequest, + proto.io.bisq.protobuffer.RegisterDisputeAgentReply, + /** + * @param {!proto.io.bisq.protobuffer.RegisterDisputeAgentRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.RegisterDisputeAgentReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.RegisterDisputeAgentRequest, + * !proto.io.bisq.protobuffer.RegisterDisputeAgentReply>} + */ +const methodInfo_DisputeAgents_RegisterDisputeAgent = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.RegisterDisputeAgentReply, + /** + * @param {!proto.io.bisq.protobuffer.RegisterDisputeAgentRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.RegisterDisputeAgentReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.RegisterDisputeAgentRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.RegisterDisputeAgentReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.DisputeAgentsClient.prototype.registerDisputeAgent = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.DisputeAgents/RegisterDisputeAgent', + request, + metadata || {}, + methodDescriptor_DisputeAgents_RegisterDisputeAgent, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.RegisterDisputeAgentRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.DisputeAgentsPromiseClient.prototype.registerDisputeAgent = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.DisputeAgents/RegisterDisputeAgent', + request, + metadata || {}, + methodDescriptor_DisputeAgents_RegisterDisputeAgent); +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.OffersClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.OffersPromiseClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.GetOffersRequest, + * !proto.io.bisq.protobuffer.GetOffersReply>} + */ +const methodDescriptor_Offers_GetOffers = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Offers/GetOffers', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.GetOffersRequest, + proto.io.bisq.protobuffer.GetOffersReply, + /** + * @param {!proto.io.bisq.protobuffer.GetOffersRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetOffersReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.GetOffersRequest, + * !proto.io.bisq.protobuffer.GetOffersReply>} + */ +const methodInfo_Offers_GetOffers = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.GetOffersReply, + /** + * @param {!proto.io.bisq.protobuffer.GetOffersRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetOffersReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.GetOffersRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetOffersReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.OffersClient.prototype.getOffers = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Offers/GetOffers', + request, + metadata || {}, + methodDescriptor_Offers_GetOffers, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.GetOffersRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.OffersPromiseClient.prototype.getOffers = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Offers/GetOffers', + request, + metadata || {}, + methodDescriptor_Offers_GetOffers); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.CreateOfferRequest, + * !proto.io.bisq.protobuffer.CreateOfferReply>} + */ +const methodDescriptor_Offers_CreateOffer = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Offers/CreateOffer', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.CreateOfferRequest, + proto.io.bisq.protobuffer.CreateOfferReply, + /** + * @param {!proto.io.bisq.protobuffer.CreateOfferRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.CreateOfferReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.CreateOfferRequest, + * !proto.io.bisq.protobuffer.CreateOfferReply>} + */ +const methodInfo_Offers_CreateOffer = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.CreateOfferReply, + /** + * @param {!proto.io.bisq.protobuffer.CreateOfferRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.CreateOfferReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.CreateOfferRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.CreateOfferReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.OffersClient.prototype.createOffer = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Offers/CreateOffer', + request, + metadata || {}, + methodDescriptor_Offers_CreateOffer, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.CreateOfferRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.OffersPromiseClient.prototype.createOffer = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Offers/CreateOffer', + request, + metadata || {}, + methodDescriptor_Offers_CreateOffer); +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.PaymentAccountsClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.PaymentAccountsPromiseClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.CreatePaymentAccountRequest, + * !proto.io.bisq.protobuffer.CreatePaymentAccountReply>} + */ +const methodDescriptor_PaymentAccounts_CreatePaymentAccount = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.PaymentAccounts/CreatePaymentAccount', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.CreatePaymentAccountRequest, + proto.io.bisq.protobuffer.CreatePaymentAccountReply, + /** + * @param {!proto.io.bisq.protobuffer.CreatePaymentAccountRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.CreatePaymentAccountReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.CreatePaymentAccountRequest, + * !proto.io.bisq.protobuffer.CreatePaymentAccountReply>} + */ +const methodInfo_PaymentAccounts_CreatePaymentAccount = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.CreatePaymentAccountReply, + /** + * @param {!proto.io.bisq.protobuffer.CreatePaymentAccountRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.CreatePaymentAccountReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.CreatePaymentAccountRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.CreatePaymentAccountReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.PaymentAccountsClient.prototype.createPaymentAccount = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/CreatePaymentAccount', + request, + metadata || {}, + methodDescriptor_PaymentAccounts_CreatePaymentAccount, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.CreatePaymentAccountRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.PaymentAccountsPromiseClient.prototype.createPaymentAccount = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/CreatePaymentAccount', + request, + metadata || {}, + methodDescriptor_PaymentAccounts_CreatePaymentAccount); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.GetPaymentAccountsRequest, + * !proto.io.bisq.protobuffer.GetPaymentAccountsReply>} + */ +const methodDescriptor_PaymentAccounts_GetPaymentAccounts = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccounts', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.GetPaymentAccountsRequest, + proto.io.bisq.protobuffer.GetPaymentAccountsReply, + /** + * @param {!proto.io.bisq.protobuffer.GetPaymentAccountsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetPaymentAccountsReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.GetPaymentAccountsRequest, + * !proto.io.bisq.protobuffer.GetPaymentAccountsReply>} + */ +const methodInfo_PaymentAccounts_GetPaymentAccounts = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.GetPaymentAccountsReply, + /** + * @param {!proto.io.bisq.protobuffer.GetPaymentAccountsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetPaymentAccountsReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.GetPaymentAccountsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetPaymentAccountsReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.PaymentAccountsClient.prototype.getPaymentAccounts = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccounts', + request, + metadata || {}, + methodDescriptor_PaymentAccounts_GetPaymentAccounts, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.GetPaymentAccountsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.PaymentAccountsPromiseClient.prototype.getPaymentAccounts = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccounts', + request, + metadata || {}, + methodDescriptor_PaymentAccounts_GetPaymentAccounts); +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.PriceClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.PricePromiseClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.MarketPriceRequest, + * !proto.io.bisq.protobuffer.MarketPriceReply>} + */ +const methodDescriptor_Price_GetMarketPrice = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Price/GetMarketPrice', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.MarketPriceRequest, + proto.io.bisq.protobuffer.MarketPriceReply, + /** + * @param {!proto.io.bisq.protobuffer.MarketPriceRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.MarketPriceReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.MarketPriceRequest, + * !proto.io.bisq.protobuffer.MarketPriceReply>} + */ +const methodInfo_Price_GetMarketPrice = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.MarketPriceReply, + /** + * @param {!proto.io.bisq.protobuffer.MarketPriceRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.MarketPriceReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.MarketPriceRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.MarketPriceReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.PriceClient.prototype.getMarketPrice = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Price/GetMarketPrice', + request, + metadata || {}, + methodDescriptor_Price_GetMarketPrice, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.MarketPriceRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.PricePromiseClient.prototype.getMarketPrice = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Price/GetMarketPrice', + request, + metadata || {}, + methodDescriptor_Price_GetMarketPrice); +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.GetTradeStatisticsClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.GetTradeStatisticsPromiseClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.GetTradeStatisticsRequest, + * !proto.io.bisq.protobuffer.GetTradeStatisticsReply>} + */ +const methodDescriptor_GetTradeStatistics_GetTradeStatistics = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.GetTradeStatistics/GetTradeStatistics', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.GetTradeStatisticsRequest, + proto.io.bisq.protobuffer.GetTradeStatisticsReply, + /** + * @param {!proto.io.bisq.protobuffer.GetTradeStatisticsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetTradeStatisticsReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.GetTradeStatisticsRequest, + * !proto.io.bisq.protobuffer.GetTradeStatisticsReply>} + */ +const methodInfo_GetTradeStatistics_GetTradeStatistics = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.GetTradeStatisticsReply, + /** + * @param {!proto.io.bisq.protobuffer.GetTradeStatisticsRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetTradeStatisticsReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.GetTradeStatisticsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetTradeStatisticsReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.GetTradeStatisticsClient.prototype.getTradeStatistics = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.GetTradeStatistics/GetTradeStatistics', + request, + metadata || {}, + methodDescriptor_GetTradeStatistics_GetTradeStatistics, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.GetTradeStatisticsRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.GetTradeStatisticsPromiseClient.prototype.getTradeStatistics = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.GetTradeStatistics/GetTradeStatistics', + request, + metadata || {}, + methodDescriptor_GetTradeStatistics_GetTradeStatistics); +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.WalletsClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.WalletsPromiseClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.GetBalanceRequest, + * !proto.io.bisq.protobuffer.GetBalanceReply>} + */ +const methodDescriptor_Wallets_GetBalance = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Wallets/GetBalance', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.GetBalanceRequest, + proto.io.bisq.protobuffer.GetBalanceReply, + /** + * @param {!proto.io.bisq.protobuffer.GetBalanceRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetBalanceReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.GetBalanceRequest, + * !proto.io.bisq.protobuffer.GetBalanceReply>} + */ +const methodInfo_Wallets_GetBalance = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.GetBalanceReply, + /** + * @param {!proto.io.bisq.protobuffer.GetBalanceRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetBalanceReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.GetBalanceRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetBalanceReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.WalletsClient.prototype.getBalance = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetBalance', + request, + metadata || {}, + methodDescriptor_Wallets_GetBalance, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.GetBalanceRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.getBalance = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetBalance', + request, + metadata || {}, + methodDescriptor_Wallets_GetBalance); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.GetAddressBalanceRequest, + * !proto.io.bisq.protobuffer.GetAddressBalanceReply>} + */ +const methodDescriptor_Wallets_GetAddressBalance = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Wallets/GetAddressBalance', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.GetAddressBalanceRequest, + proto.io.bisq.protobuffer.GetAddressBalanceReply, + /** + * @param {!proto.io.bisq.protobuffer.GetAddressBalanceRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetAddressBalanceReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.GetAddressBalanceRequest, + * !proto.io.bisq.protobuffer.GetAddressBalanceReply>} + */ +const methodInfo_Wallets_GetAddressBalance = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.GetAddressBalanceReply, + /** + * @param {!proto.io.bisq.protobuffer.GetAddressBalanceRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetAddressBalanceReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.GetAddressBalanceRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetAddressBalanceReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.WalletsClient.prototype.getAddressBalance = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetAddressBalance', + request, + metadata || {}, + methodDescriptor_Wallets_GetAddressBalance, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.GetAddressBalanceRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.getAddressBalance = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetAddressBalance', + request, + metadata || {}, + methodDescriptor_Wallets_GetAddressBalance); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.GetFundingAddressesRequest, + * !proto.io.bisq.protobuffer.GetFundingAddressesReply>} + */ +const methodDescriptor_Wallets_GetFundingAddresses = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Wallets/GetFundingAddresses', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.GetFundingAddressesRequest, + proto.io.bisq.protobuffer.GetFundingAddressesReply, + /** + * @param {!proto.io.bisq.protobuffer.GetFundingAddressesRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetFundingAddressesReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.GetFundingAddressesRequest, + * !proto.io.bisq.protobuffer.GetFundingAddressesReply>} + */ +const methodInfo_Wallets_GetFundingAddresses = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.GetFundingAddressesReply, + /** + * @param {!proto.io.bisq.protobuffer.GetFundingAddressesRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetFundingAddressesReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.GetFundingAddressesRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetFundingAddressesReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.WalletsClient.prototype.getFundingAddresses = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetFundingAddresses', + request, + metadata || {}, + methodDescriptor_Wallets_GetFundingAddresses, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.GetFundingAddressesRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.getFundingAddresses = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetFundingAddresses', + request, + metadata || {}, + methodDescriptor_Wallets_GetFundingAddresses); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.SetWalletPasswordRequest, + * !proto.io.bisq.protobuffer.SetWalletPasswordReply>} + */ +const methodDescriptor_Wallets_SetWalletPassword = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Wallets/SetWalletPassword', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.SetWalletPasswordRequest, + proto.io.bisq.protobuffer.SetWalletPasswordReply, + /** + * @param {!proto.io.bisq.protobuffer.SetWalletPasswordRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.SetWalletPasswordReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.SetWalletPasswordRequest, + * !proto.io.bisq.protobuffer.SetWalletPasswordReply>} + */ +const methodInfo_Wallets_SetWalletPassword = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.SetWalletPasswordReply, + /** + * @param {!proto.io.bisq.protobuffer.SetWalletPasswordRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.SetWalletPasswordReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.SetWalletPasswordRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.SetWalletPasswordReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.WalletsClient.prototype.setWalletPassword = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/SetWalletPassword', + request, + metadata || {}, + methodDescriptor_Wallets_SetWalletPassword, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.SetWalletPasswordRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.setWalletPassword = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/SetWalletPassword', + request, + metadata || {}, + methodDescriptor_Wallets_SetWalletPassword); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.RemoveWalletPasswordRequest, + * !proto.io.bisq.protobuffer.RemoveWalletPasswordReply>} + */ +const methodDescriptor_Wallets_RemoveWalletPassword = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Wallets/RemoveWalletPassword', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.RemoveWalletPasswordRequest, + proto.io.bisq.protobuffer.RemoveWalletPasswordReply, + /** + * @param {!proto.io.bisq.protobuffer.RemoveWalletPasswordRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.RemoveWalletPasswordReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.RemoveWalletPasswordRequest, + * !proto.io.bisq.protobuffer.RemoveWalletPasswordReply>} + */ +const methodInfo_Wallets_RemoveWalletPassword = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.RemoveWalletPasswordReply, + /** + * @param {!proto.io.bisq.protobuffer.RemoveWalletPasswordRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.RemoveWalletPasswordReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.RemoveWalletPasswordRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.RemoveWalletPasswordReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.WalletsClient.prototype.removeWalletPassword = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/RemoveWalletPassword', + request, + metadata || {}, + methodDescriptor_Wallets_RemoveWalletPassword, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.RemoveWalletPasswordRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.removeWalletPassword = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/RemoveWalletPassword', + request, + metadata || {}, + methodDescriptor_Wallets_RemoveWalletPassword); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.LockWalletRequest, + * !proto.io.bisq.protobuffer.LockWalletReply>} + */ +const methodDescriptor_Wallets_LockWallet = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Wallets/LockWallet', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.LockWalletRequest, + proto.io.bisq.protobuffer.LockWalletReply, + /** + * @param {!proto.io.bisq.protobuffer.LockWalletRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.LockWalletReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.LockWalletRequest, + * !proto.io.bisq.protobuffer.LockWalletReply>} + */ +const methodInfo_Wallets_LockWallet = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.LockWalletReply, + /** + * @param {!proto.io.bisq.protobuffer.LockWalletRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.LockWalletReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.LockWalletRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.LockWalletReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.WalletsClient.prototype.lockWallet = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/LockWallet', + request, + metadata || {}, + methodDescriptor_Wallets_LockWallet, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.LockWalletRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.lockWallet = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/LockWallet', + request, + metadata || {}, + methodDescriptor_Wallets_LockWallet); +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.UnlockWalletRequest, + * !proto.io.bisq.protobuffer.UnlockWalletReply>} + */ +const methodDescriptor_Wallets_UnlockWallet = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.Wallets/UnlockWallet', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.UnlockWalletRequest, + proto.io.bisq.protobuffer.UnlockWalletReply, + /** + * @param {!proto.io.bisq.protobuffer.UnlockWalletRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.UnlockWalletReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.UnlockWalletRequest, + * !proto.io.bisq.protobuffer.UnlockWalletReply>} + */ +const methodInfo_Wallets_UnlockWallet = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.UnlockWalletReply, + /** + * @param {!proto.io.bisq.protobuffer.UnlockWalletRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.UnlockWalletReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.UnlockWalletRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.UnlockWalletReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.WalletsClient.prototype.unlockWallet = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/UnlockWallet', + request, + metadata || {}, + methodDescriptor_Wallets_UnlockWallet, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.UnlockWalletRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.unlockWallet = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.Wallets/UnlockWallet', + request, + metadata || {}, + methodDescriptor_Wallets_UnlockWallet); +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.GetVersionClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?Object} options + * @constructor + * @struct + * @final + */ +proto.io.bisq.protobuffer.GetVersionPromiseClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options['format'] = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname; + +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.io.bisq.protobuffer.GetVersionRequest, + * !proto.io.bisq.protobuffer.GetVersionReply>} + */ +const methodDescriptor_GetVersion_GetVersion = new grpc.web.MethodDescriptor( + '/io.bisq.protobuffer.GetVersion/GetVersion', + grpc.web.MethodType.UNARY, + proto.io.bisq.protobuffer.GetVersionRequest, + proto.io.bisq.protobuffer.GetVersionReply, + /** + * @param {!proto.io.bisq.protobuffer.GetVersionRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetVersionReply.deserializeBinary +); + + +/** + * @const + * @type {!grpc.web.AbstractClientBase.MethodInfo< + * !proto.io.bisq.protobuffer.GetVersionRequest, + * !proto.io.bisq.protobuffer.GetVersionReply>} + */ +const methodInfo_GetVersion_GetVersion = new grpc.web.AbstractClientBase.MethodInfo( + proto.io.bisq.protobuffer.GetVersionReply, + /** + * @param {!proto.io.bisq.protobuffer.GetVersionRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.io.bisq.protobuffer.GetVersionReply.deserializeBinary +); + + +/** + * @param {!proto.io.bisq.protobuffer.GetVersionRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetVersionReply)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.io.bisq.protobuffer.GetVersionClient.prototype.getVersion = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/io.bisq.protobuffer.GetVersion/GetVersion', + request, + metadata || {}, + methodDescriptor_GetVersion_GetVersion, + callback); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.GetVersionRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.io.bisq.protobuffer.GetVersionPromiseClient.prototype.getVersion = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/io.bisq.protobuffer.GetVersion/GetVersion', + request, + metadata || {}, + methodDescriptor_GetVersion_GetVersion); +}; + + +module.exports = proto.io.bisq.protobuffer; + diff --git a/src/grpc_pb.js b/src/grpc_pb.js new file mode 100644 index 00000000..3ab38fd6 --- /dev/null +++ b/src/grpc_pb.js @@ -0,0 +1,5658 @@ +// 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.CreateOfferReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.CreateOfferRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.CreatePaymentAccountReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.CreatePaymentAccountRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetAddressBalanceReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetAddressBalanceRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetBalanceReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetBalanceRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetFundingAddressesReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetFundingAddressesRequest', 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.GetPaymentAccountsReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetPaymentAccountsRequest', 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.GetVersionReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetVersionRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.LockWalletReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.LockWalletRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.MarketPriceReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.MarketPriceRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.OfferInfo', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.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.SetWalletPasswordReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.SetWalletPasswordRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.UnlockWalletReply', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.UnlockWalletRequest', 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.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.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.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.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.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.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.GetBalanceRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetBalanceRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetBalanceRequest.displayName = 'proto.io.bisq.protobuffer.GetBalanceRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.GetBalanceReply = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetBalanceReply, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetBalanceReply.displayName = 'proto.io.bisq.protobuffer.GetBalanceReply'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is 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.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.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 disputeAgentType = 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 registrationKey = 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.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 currencyCode = 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.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), + paymentaccountid: 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.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 {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.readDouble()); + msg.setBuyersecuritydeposit(value); + break; + case 9: + 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 (f !== 0) { + writer.writeUint64( + 6, + f + ); + } + f = message.getMinamount(); + if (f !== 0) { + writer.writeUint64( + 7, + f + ); + } + f = message.getBuyersecuritydeposit(); + if (f !== 0.0) { + writer.writeDouble( + 8, + f + ); + } + f = message.getPaymentaccountid(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } +}; + + +/** + * optional string currencyCode = 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 useMarketBasedPrice = 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 marketPriceMargin = 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 {number} + */ +proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.CreateOfferRequest} returns this + */ +proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setAmount = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional uint64 minAmount = 7; + * @return {number} + */ +proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getMinamount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.CreateOfferRequest} returns this + */ +proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setMinamount = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional double buyerSecurityDeposit = 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 string paymentAccountId = 9; + * @return {string} + */ +proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getPaymentaccountid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + + +/** + * @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, 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.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.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), + paymentaccountid: jspb.Message.getFieldWithDefault(msg, 11, ""), + paymentmethodid: jspb.Message.getFieldWithDefault(msg, 12, ""), + paymentmethodshortname: jspb.Message.getFieldWithDefault(msg, 13, ""), + basecurrencycode: jspb.Message.getFieldWithDefault(msg, 14, ""), + countercurrencycode: jspb.Message.getFieldWithDefault(msg, 15, ""), + date: jspb.Message.getFieldWithDefault(msg, 16, 0) + }; + + if (includeInstance) { + obj.$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 {string} */ (reader.readString()); + msg.setPaymentaccountid(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setPaymentmethodid(value); + break; + case 13: + var value = /** @type {string} */ (reader.readString()); + msg.setPaymentmethodshortname(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.setBasecurrencycode(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setCountercurrencycode(value); + break; + case 16: + var value = /** @type {number} */ (reader.readUint64()); + 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.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.getPaymentaccountid(); + if (f.length > 0) { + writer.writeString( + 11, + f + ); + } + f = message.getPaymentmethodid(); + if (f.length > 0) { + writer.writeString( + 12, + f + ); + } + f = message.getPaymentmethodshortname(); + if (f.length > 0) { + writer.writeString( + 13, + f + ); + } + f = message.getBasecurrencycode(); + if (f.length > 0) { + writer.writeString( + 14, + f + ); + } + f = message.getCountercurrencycode(); + if (f.length > 0) { + writer.writeString( + 15, + f + ); + } + f = message.getDate(); + if (f !== 0) { + writer.writeUint64( + 16, + 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 useMarketBasedPrice = 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 marketPriceMargin = 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 minAmount = 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 minVolume = 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 buyerSecurityDeposit = 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 string paymentAccountId = 11; + * @return {string} + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.getPaymentaccountid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.setPaymentaccountid = function(value) { + return jspb.Message.setProto3StringField(this, 11, value); +}; + + +/** + * optional string paymentMethodId = 12; + * @return {string} + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.getPaymentmethodid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.OfferInfo} returns this + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.setPaymentmethodid = function(value) { + return jspb.Message.setProto3StringField(this, 12, value); +}; + + +/** + * optional string paymentMethodShortName = 13; + * @return {string} + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.getPaymentmethodshortname = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); +}; + + +/** + * @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, 13, value); +}; + + +/** + * optional string baseCurrencyCode = 14; + * @return {string} + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.getBasecurrencycode = 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.setBasecurrencycode = function(value) { + return jspb.Message.setProto3StringField(this, 14, value); +}; + + +/** + * optional string counterCurrencyCode = 15; + * @return {string} + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.getCountercurrencycode = 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.setCountercurrencycode = function(value) { + return jspb.Message.setProto3StringField(this, 15, value); +}; + + +/** + * optional uint64 date = 16; + * @return {number} + */ +proto.io.bisq.protobuffer.OfferInfo.prototype.getDate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 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, 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.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 = { + paymentmethodid: jspb.Message.getFieldWithDefault(msg, 1, ""), + accountname: jspb.Message.getFieldWithDefault(msg, 2, ""), + accountnumber: jspb.Message.getFieldWithDefault(msg, 3, ""), + currencycode: 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.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.setPaymentmethodid(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setAccountname(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAccountnumber(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setCurrencycode(value); + 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.getPaymentmethodid(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAccountname(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getAccountnumber(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getCurrencycode(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional string paymentMethodId = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.getPaymentmethodid = 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.setPaymentmethodid = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string accountName = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.getAccountname = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.CreatePaymentAccountRequest} returns this + */ +proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.setAccountname = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string accountNumber = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.getAccountnumber = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.CreatePaymentAccountRequest} returns this + */ +proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.setAccountnumber = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string currencyCode = 4; + * @return {string} + */ +proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.getCurrencycode = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.CreatePaymentAccountRequest} returns this + */ +proto.io.bisq.protobuffer.CreatePaymentAccountRequest.prototype.setCurrencycode = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_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 = { + + }; + + if (includeInstance) { + obj.$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) { + 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; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_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 paymentAccounts = 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.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 currencyCode = 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.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.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.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.TradeStatistics2; + reader.readMessage(value,pb_pb.TradeStatistics2.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.TradeStatistics2.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated TradeStatistics2 TradeStatistics = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.GetTradeStatisticsReply.prototype.getTradestatisticsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, pb_pb.TradeStatistics2, 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.TradeStatistics2=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.TradeStatistics2} + */ +proto.io.bisq.protobuffer.GetTradeStatisticsReply.prototype.addTradestatistics = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.TradeStatistics2, opt_index); +}; + + +/** + * 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.GetBalanceRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetBalanceRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.GetBalanceRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetBalanceRequest.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.GetBalanceRequest} + */ +proto.io.bisq.protobuffer.GetBalanceRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetBalanceRequest; + return proto.io.bisq.protobuffer.GetBalanceRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetBalanceRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetBalanceRequest} + */ +proto.io.bisq.protobuffer.GetBalanceRequest.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.GetBalanceRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetBalanceRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.GetBalanceRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetBalanceRequest.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.GetBalanceReply.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetBalanceReply.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.GetBalanceReply} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetBalanceReply.toObject = function(includeInstance, msg) { + var f, obj = { + balance: 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.GetBalanceReply} + */ +proto.io.bisq.protobuffer.GetBalanceReply.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetBalanceReply; + return proto.io.bisq.protobuffer.GetBalanceReply.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetBalanceReply} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetBalanceReply} + */ +proto.io.bisq.protobuffer.GetBalanceReply.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.setBalance(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetBalanceReply.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetBalanceReply.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.GetBalanceReply} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetBalanceReply.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBalance(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } +}; + + +/** + * optional uint64 balance = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.GetBalanceReply.prototype.getBalance = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.GetBalanceReply} returns this + */ +proto.io.bisq.protobuffer.GetBalanceReply.prototype.setBalance = 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.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 addressBalanceInfo = 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.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 addressBalanceInfo = 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 newPassword = 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.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) + }; + + if (includeInstance) { + obj.$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; + 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 + ); + } +}; + + +/** + * 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 numConfirmations = 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); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_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/pb_pb.js b/src/pb_pb.js new file mode 100644 index 00000000..5ef39fa1 --- /dev/null +++ b/src/pb_pb.js @@ -0,0 +1,74009 @@ +// 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.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.AutoConfirmSettings', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.AvailabilityResult', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.Ballot', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.BallotList', 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.BaseBlock', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.BaseBlock.MessageCase', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.BaseTx', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.BaseTx.MessageCase', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.BaseTxOutput', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.BaseTxOutput.MessageCase', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.BlindVote', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.BlindVotePayload', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.BlindVoteStateHash', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.BlindVoteStore', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.Block', 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.CashDepositAccountPayload', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.ChangeParamProposal', 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.CompensationProposal', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.ConfiscateBond', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.ConfiscateBondProposal', 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.Cycle', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.DaoPhase', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.DaoState', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.DaoStateHash', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.DaoStateStore', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.DataAndSeqNrPair', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.DecryptedBallotsWithMerits', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.DepositTxMessage', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.Dispute', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.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.EvaluatedProposal', 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.GenericProposal', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetBlocksRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetBlocksResponse', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetDaoStateHashesRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetDaoStateHashesResponse', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetDataResponse', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetPeersRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetPeersResponse', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetProposalStateHashesRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetProposalStateHashesResponse', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.GetUpdatedDataRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.HalCashAccountPayload', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.InitMultisigMessage', 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.Issuance', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.JapanBankAccountPayload', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.MailboxStoragePayload', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse', null, global); +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.Merit', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.MeritList', 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.MyBlindVoteList', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.MyProofOfBurn', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.MyProofOfBurnList', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.MyProposalList', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.MyReputation', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.MyReputationList', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.MyVote', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.MyVoteList', 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.NewBlindVoteStateHashMessage', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.NewBlockBroadcastMessage', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.NewDaoStateHashMessage', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.NewProposalStateHashMessage', 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.ParamChange', 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.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.Proposal', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.Proposal.MessageCase', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.ProposalPayload', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.ProposalStateHash', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.ProposalStore', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.ProposalVoteResult', 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.PubKeyScript', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.RawBlock', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.RawTransactionInput', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.RawTx', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.RawTxOutput', 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.ReimbursementProposal', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.RemoveAssetProposal', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.RemoveDataMessage', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.RemoveMailboxDataMessage', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.RepublishGovernanceDataRequest', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.RevolutAccountPayload', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.Role', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.RoleProposal', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.SameBankAccountPayload', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.ScriptType', 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.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.SpentInfo', 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.TempProposalPayload', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.TempProposalStore', 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.TradeStatistics', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.TradeStatistics2', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.TradeStatistics2Store', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.TraderSignedWitnessMessage', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.TradingPeer', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.Tx', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.TxInput', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.TxOutput', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.TxOutputType', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.TxType', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.USPostalMoneyOrderAccountPayload', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.UnconfirmedTxOutput', 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.Vote', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.VoteWithProposalTxId', null, global); +goog.exportSymbol('proto.io.bisq.protobuffer.VoteWithProposalTxIdList', 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.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.MakerReadyToFundMultisigRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.displayName = 'proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.displayName = 'proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.InitMultisigMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.InitMultisigMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.InitMultisigMessage.displayName = 'proto.io.bisq.protobuffer.InitMultisigMessage'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is 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.GetBlocksRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.GetBlocksRequest.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetBlocksRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetBlocksRequest.displayName = 'proto.io.bisq.protobuffer.GetBlocksRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.GetBlocksResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.GetBlocksResponse.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetBlocksResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetBlocksResponse.displayName = 'proto.io.bisq.protobuffer.GetBlocksResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.NewBlockBroadcastMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.NewBlockBroadcastMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.NewBlockBroadcastMessage.displayName = 'proto.io.bisq.protobuffer.NewBlockBroadcastMessage'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.RepublishGovernanceDataRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.RepublishGovernanceDataRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.RepublishGovernanceDataRequest.displayName = 'proto.io.bisq.protobuffer.RepublishGovernanceDataRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.NewDaoStateHashMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.NewDaoStateHashMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.NewDaoStateHashMessage.displayName = 'proto.io.bisq.protobuffer.NewDaoStateHashMessage'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.NewProposalStateHashMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.NewProposalStateHashMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.NewProposalStateHashMessage.displayName = 'proto.io.bisq.protobuffer.NewProposalStateHashMessage'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage.displayName = 'proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.GetDaoStateHashesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetDaoStateHashesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetDaoStateHashesRequest.displayName = 'proto.io.bisq.protobuffer.GetDaoStateHashesRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.GetProposalStateHashesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetProposalStateHashesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetProposalStateHashesRequest.displayName = 'proto.io.bisq.protobuffer.GetProposalStateHashesRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest.displayName = 'proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.GetDaoStateHashesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.GetDaoStateHashesResponse.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetDaoStateHashesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetDaoStateHashesResponse.displayName = 'proto.io.bisq.protobuffer.GetDaoStateHashesResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.GetProposalStateHashesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.GetProposalStateHashesResponse.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetProposalStateHashesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetProposalStateHashesResponse.displayName = 'proto.io.bisq.protobuffer.GetProposalStateHashesResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse.displayName = 'proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is 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.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.TradeStatistics = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.TradeStatistics, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.TradeStatistics.displayName = 'proto.io.bisq.protobuffer.TradeStatistics'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is 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, 500, 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.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, -1, 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.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.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.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.PersistableEnvelope = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, 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.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.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, -1, 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, 500, 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.BaseBlock = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.bisq.protobuffer.BaseBlock.oneofGroups_); +}; +goog.inherits(proto.io.bisq.protobuffer.BaseBlock, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.BaseBlock.displayName = 'proto.io.bisq.protobuffer.BaseBlock'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.RawBlock = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.RawBlock.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.RawBlock, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.RawBlock.displayName = 'proto.io.bisq.protobuffer.RawBlock'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.Block = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.Block.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.Block, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.Block.displayName = 'proto.io.bisq.protobuffer.Block'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.BaseTx = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.BaseTx.repeatedFields_, proto.io.bisq.protobuffer.BaseTx.oneofGroups_); +}; +goog.inherits(proto.io.bisq.protobuffer.BaseTx, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.BaseTx.displayName = 'proto.io.bisq.protobuffer.BaseTx'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.RawTx = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.RawTx.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.RawTx, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.RawTx.displayName = 'proto.io.bisq.protobuffer.RawTx'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.Tx = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.Tx.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.Tx, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.Tx.displayName = 'proto.io.bisq.protobuffer.Tx'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.TxInput = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.TxInput, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.TxInput.displayName = 'proto.io.bisq.protobuffer.TxInput'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.BaseTxOutput = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.bisq.protobuffer.BaseTxOutput.oneofGroups_); +}; +goog.inherits(proto.io.bisq.protobuffer.BaseTxOutput, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.BaseTxOutput.displayName = 'proto.io.bisq.protobuffer.BaseTxOutput'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.UnconfirmedTxOutput = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.UnconfirmedTxOutput, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.UnconfirmedTxOutput.displayName = 'proto.io.bisq.protobuffer.UnconfirmedTxOutput'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.RawTxOutput = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.RawTxOutput, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.RawTxOutput.displayName = 'proto.io.bisq.protobuffer.RawTxOutput'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.TxOutput = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.TxOutput, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.TxOutput.displayName = 'proto.io.bisq.protobuffer.TxOutput'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.SpentInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.SpentInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.SpentInfo.displayName = 'proto.io.bisq.protobuffer.SpentInfo'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.PubKeyScript = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.PubKeyScript.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.PubKeyScript, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.PubKeyScript.displayName = 'proto.io.bisq.protobuffer.PubKeyScript'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.DaoPhase = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.DaoPhase, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.DaoPhase.displayName = 'proto.io.bisq.protobuffer.DaoPhase'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.Cycle = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.Cycle.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.Cycle, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.Cycle.displayName = 'proto.io.bisq.protobuffer.Cycle'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.DaoState = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.DaoState.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.DaoState, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.DaoState.displayName = 'proto.io.bisq.protobuffer.DaoState'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.Issuance = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.Issuance, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.Issuance.displayName = 'proto.io.bisq.protobuffer.Issuance'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.Proposal = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.bisq.protobuffer.Proposal.oneofGroups_); +}; +goog.inherits(proto.io.bisq.protobuffer.Proposal, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.Proposal.displayName = 'proto.io.bisq.protobuffer.Proposal'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.CompensationProposal = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.CompensationProposal, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.CompensationProposal.displayName = 'proto.io.bisq.protobuffer.CompensationProposal'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.ReimbursementProposal = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.ReimbursementProposal, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.ReimbursementProposal.displayName = 'proto.io.bisq.protobuffer.ReimbursementProposal'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.ChangeParamProposal = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.ChangeParamProposal, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.ChangeParamProposal.displayName = 'proto.io.bisq.protobuffer.ChangeParamProposal'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.RoleProposal = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.RoleProposal, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.RoleProposal.displayName = 'proto.io.bisq.protobuffer.RoleProposal'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.ConfiscateBondProposal = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.ConfiscateBondProposal, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.ConfiscateBondProposal.displayName = 'proto.io.bisq.protobuffer.ConfiscateBondProposal'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.GenericProposal = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.GenericProposal, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.GenericProposal.displayName = 'proto.io.bisq.protobuffer.GenericProposal'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.RemoveAssetProposal = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.RemoveAssetProposal, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.RemoveAssetProposal.displayName = 'proto.io.bisq.protobuffer.RemoveAssetProposal'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.Role = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.Role, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.Role.displayName = 'proto.io.bisq.protobuffer.Role'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.MyReputation = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.MyReputation, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.MyReputation.displayName = 'proto.io.bisq.protobuffer.MyReputation'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.MyReputationList = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.MyReputationList.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.MyReputationList, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.MyReputationList.displayName = 'proto.io.bisq.protobuffer.MyReputationList'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.MyProofOfBurn = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.MyProofOfBurn, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.MyProofOfBurn.displayName = 'proto.io.bisq.protobuffer.MyProofOfBurn'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.MyProofOfBurnList = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.MyProofOfBurnList.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.MyProofOfBurnList, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.MyProofOfBurnList.displayName = 'proto.io.bisq.protobuffer.MyProofOfBurnList'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList.displayName = 'proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.TempProposalPayload = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.TempProposalPayload, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.TempProposalPayload.displayName = 'proto.io.bisq.protobuffer.TempProposalPayload'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.ProposalPayload = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.ProposalPayload, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.ProposalPayload.displayName = 'proto.io.bisq.protobuffer.ProposalPayload'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.ProposalStore = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.ProposalStore.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.ProposalStore, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.ProposalStore.displayName = 'proto.io.bisq.protobuffer.ProposalStore'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.TempProposalStore = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.TempProposalStore.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.TempProposalStore, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.TempProposalStore.displayName = 'proto.io.bisq.protobuffer.TempProposalStore'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.Ballot = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.Ballot, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.Ballot.displayName = 'proto.io.bisq.protobuffer.Ballot'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.MyProposalList = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.MyProposalList.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.MyProposalList, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.MyProposalList.displayName = 'proto.io.bisq.protobuffer.MyProposalList'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.BallotList = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.BallotList.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.BallotList, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.BallotList.displayName = 'proto.io.bisq.protobuffer.BallotList'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.ParamChange = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.ParamChange, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.ParamChange.displayName = 'proto.io.bisq.protobuffer.ParamChange'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.ConfiscateBond = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.ConfiscateBond, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.ConfiscateBond.displayName = 'proto.io.bisq.protobuffer.ConfiscateBond'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.MyVote = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.MyVote, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.MyVote.displayName = 'proto.io.bisq.protobuffer.MyVote'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.MyVoteList = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.MyVoteList.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.MyVoteList, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.MyVoteList.displayName = 'proto.io.bisq.protobuffer.MyVoteList'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.VoteWithProposalTxId = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.VoteWithProposalTxId, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.VoteWithProposalTxId.displayName = 'proto.io.bisq.protobuffer.VoteWithProposalTxId'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.VoteWithProposalTxIdList = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.VoteWithProposalTxIdList.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.VoteWithProposalTxIdList, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.VoteWithProposalTxIdList.displayName = 'proto.io.bisq.protobuffer.VoteWithProposalTxIdList'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.BlindVote = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.BlindVote, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.BlindVote.displayName = 'proto.io.bisq.protobuffer.BlindVote'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.MyBlindVoteList = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.MyBlindVoteList.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.MyBlindVoteList, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.MyBlindVoteList.displayName = 'proto.io.bisq.protobuffer.MyBlindVoteList'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.BlindVoteStore = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.BlindVoteStore.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.BlindVoteStore, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.BlindVoteStore.displayName = 'proto.io.bisq.protobuffer.BlindVoteStore'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.BlindVotePayload = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.BlindVotePayload, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.BlindVotePayload.displayName = 'proto.io.bisq.protobuffer.BlindVotePayload'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.Vote = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.Vote, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.Vote.displayName = 'proto.io.bisq.protobuffer.Vote'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.Merit = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.Merit, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.Merit.displayName = 'proto.io.bisq.protobuffer.Merit'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.MeritList = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.MeritList.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.MeritList, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.MeritList.displayName = 'proto.io.bisq.protobuffer.MeritList'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.ProposalVoteResult = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.ProposalVoteResult, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.ProposalVoteResult.displayName = 'proto.io.bisq.protobuffer.ProposalVoteResult'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.EvaluatedProposal = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.EvaluatedProposal, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.EvaluatedProposal.displayName = 'proto.io.bisq.protobuffer.EvaluatedProposal'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.DecryptedBallotsWithMerits, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.displayName = 'proto.io.bisq.protobuffer.DecryptedBallotsWithMerits'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.DaoStateStore = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.io.bisq.protobuffer.DaoStateStore.repeatedFields_, null); +}; +goog.inherits(proto.io.bisq.protobuffer.DaoStateStore, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.DaoStateStore.displayName = 'proto.io.bisq.protobuffer.DaoStateStore'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.DaoStateHash = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.DaoStateHash, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.DaoStateHash.displayName = 'proto.io.bisq.protobuffer.DaoStateHash'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.ProposalStateHash = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.ProposalStateHash, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.ProposalStateHash.displayName = 'proto.io.bisq.protobuffer.ProposalStateHash'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.io.bisq.protobuffer.BlindVoteStateHash = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.io.bisq.protobuffer.BlindVoteStateHash, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.io.bisq.protobuffer.BlindVoteStateHash.displayName = 'proto.io.bisq.protobuffer.BlindVoteStateHash'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is 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,41,42,43,44,45,46,47,48,49,50,51,1001,1002,1003,1004,1005,1006,1007,1008]]; + +/** + * @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, + GET_BLOCKS_REQUEST: 28, + GET_BLOCKS_RESPONSE: 29, + NEW_BLOCK_BROADCAST_MESSAGE: 30, + ADD_PERSISTABLE_NETWORK_PAYLOAD_MESSAGE: 31, + ACK_MESSAGE: 32, + REPUBLISH_GOVERNANCE_DATA_REQUEST: 33, + NEW_DAO_STATE_HASH_MESSAGE: 34, + GET_DAO_STATE_HASHES_REQUEST: 35, + GET_DAO_STATE_HASHES_RESPONSE: 36, + NEW_PROPOSAL_STATE_HASH_MESSAGE: 37, + GET_PROPOSAL_STATE_HASHES_REQUEST: 38, + GET_PROPOSAL_STATE_HASHES_RESPONSE: 39, + NEW_BLIND_VOTE_STATE_HASH_MESSAGE: 40, + GET_BLIND_VOTE_STATE_HASHES_REQUEST: 41, + GET_BLIND_VOTE_STATE_HASHES_RESPONSE: 42, + BUNDLE_OF_ENVELOPES: 43, + MEDIATED_PAYOUT_TX_SIGNATURE_MESSAGE: 44, + MEDIATED_PAYOUT_TX_PUBLISHED_MESSAGE: 45, + DELAYED_PAYOUT_TX_SIGNATURE_REQUEST: 46, + DELAYED_PAYOUT_TX_SIGNATURE_RESPONSE: 47, + DEPOSIT_TX_AND_DELAYED_PAYOUT_TX_MESSAGE: 48, + PEER_PUBLISHED_DELAYED_PAYOUT_TX_MESSAGE: 49, + REFRESH_TRADE_STATE_REQUEST: 50, + TRADER_SIGNED_WITNESS_MESSAGE: 51, + INIT_TRADE_REQUEST: 1001, + MAKER_READY_TO_FUND_MULTISIG_REQUEST: 1002, + MAKER_READY_TO_FUND_MULTISIG_RESPONSE: 1003, + INIT_MULTISIG_MESSAGE: 1004, + UPDATE_MULTISIG_REQUEST: 1005, + UPDATE_MULTISIG_RESPONSE: 1006, + ARBITRATOR_PAYOUT_TX_REQUEST: 1007, + ARBITRATOR_PAYOUT_TX_RESPONSE: 1008 +}; + +/** + * @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), + getBlocksRequest: (f = msg.getGetBlocksRequest()) && proto.io.bisq.protobuffer.GetBlocksRequest.toObject(includeInstance, f), + getBlocksResponse: (f = msg.getGetBlocksResponse()) && proto.io.bisq.protobuffer.GetBlocksResponse.toObject(includeInstance, f), + newBlockBroadcastMessage: (f = msg.getNewBlockBroadcastMessage()) && proto.io.bisq.protobuffer.NewBlockBroadcastMessage.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), + republishGovernanceDataRequest: (f = msg.getRepublishGovernanceDataRequest()) && proto.io.bisq.protobuffer.RepublishGovernanceDataRequest.toObject(includeInstance, f), + newDaoStateHashMessage: (f = msg.getNewDaoStateHashMessage()) && proto.io.bisq.protobuffer.NewDaoStateHashMessage.toObject(includeInstance, f), + getDaoStateHashesRequest: (f = msg.getGetDaoStateHashesRequest()) && proto.io.bisq.protobuffer.GetDaoStateHashesRequest.toObject(includeInstance, f), + getDaoStateHashesResponse: (f = msg.getGetDaoStateHashesResponse()) && proto.io.bisq.protobuffer.GetDaoStateHashesResponse.toObject(includeInstance, f), + newProposalStateHashMessage: (f = msg.getNewProposalStateHashMessage()) && proto.io.bisq.protobuffer.NewProposalStateHashMessage.toObject(includeInstance, f), + getProposalStateHashesRequest: (f = msg.getGetProposalStateHashesRequest()) && proto.io.bisq.protobuffer.GetProposalStateHashesRequest.toObject(includeInstance, f), + getProposalStateHashesResponse: (f = msg.getGetProposalStateHashesResponse()) && proto.io.bisq.protobuffer.GetProposalStateHashesResponse.toObject(includeInstance, f), + newBlindVoteStateHashMessage: (f = msg.getNewBlindVoteStateHashMessage()) && proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage.toObject(includeInstance, f), + getBlindVoteStateHashesRequest: (f = msg.getGetBlindVoteStateHashesRequest()) && proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest.toObject(includeInstance, f), + getBlindVoteStateHashesResponse: (f = msg.getGetBlindVoteStateHashesResponse()) && proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse.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), + initTradeRequest: (f = msg.getInitTradeRequest()) && proto.io.bisq.protobuffer.InitTradeRequest.toObject(includeInstance, f), + makerReadyToFundMultisigRequest: (f = msg.getMakerReadyToFundMultisigRequest()) && proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.toObject(includeInstance, f), + makerReadyToFundMultisigResponse: (f = msg.getMakerReadyToFundMultisigResponse()) && proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.toObject(includeInstance, f), + initMultisigMessage: (f = msg.getInitMultisigMessage()) && proto.io.bisq.protobuffer.InitMultisigMessage.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.GetBlocksRequest; + reader.readMessage(value,proto.io.bisq.protobuffer.GetBlocksRequest.deserializeBinaryFromReader); + msg.setGetBlocksRequest(value); + break; + case 29: + var value = new proto.io.bisq.protobuffer.GetBlocksResponse; + reader.readMessage(value,proto.io.bisq.protobuffer.GetBlocksResponse.deserializeBinaryFromReader); + msg.setGetBlocksResponse(value); + break; + case 30: + var value = new proto.io.bisq.protobuffer.NewBlockBroadcastMessage; + reader.readMessage(value,proto.io.bisq.protobuffer.NewBlockBroadcastMessage.deserializeBinaryFromReader); + msg.setNewBlockBroadcastMessage(value); + break; + case 31: + var value = new proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage; + reader.readMessage(value,proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage.deserializeBinaryFromReader); + msg.setAddPersistableNetworkPayloadMessage(value); + break; + case 32: + var value = new proto.io.bisq.protobuffer.AckMessage; + reader.readMessage(value,proto.io.bisq.protobuffer.AckMessage.deserializeBinaryFromReader); + msg.setAckMessage(value); + break; + case 33: + var value = new proto.io.bisq.protobuffer.RepublishGovernanceDataRequest; + reader.readMessage(value,proto.io.bisq.protobuffer.RepublishGovernanceDataRequest.deserializeBinaryFromReader); + msg.setRepublishGovernanceDataRequest(value); + break; + case 34: + var value = new proto.io.bisq.protobuffer.NewDaoStateHashMessage; + reader.readMessage(value,proto.io.bisq.protobuffer.NewDaoStateHashMessage.deserializeBinaryFromReader); + msg.setNewDaoStateHashMessage(value); + break; + case 35: + var value = new proto.io.bisq.protobuffer.GetDaoStateHashesRequest; + reader.readMessage(value,proto.io.bisq.protobuffer.GetDaoStateHashesRequest.deserializeBinaryFromReader); + msg.setGetDaoStateHashesRequest(value); + break; + case 36: + var value = new proto.io.bisq.protobuffer.GetDaoStateHashesResponse; + reader.readMessage(value,proto.io.bisq.protobuffer.GetDaoStateHashesResponse.deserializeBinaryFromReader); + msg.setGetDaoStateHashesResponse(value); + break; + case 37: + var value = new proto.io.bisq.protobuffer.NewProposalStateHashMessage; + reader.readMessage(value,proto.io.bisq.protobuffer.NewProposalStateHashMessage.deserializeBinaryFromReader); + msg.setNewProposalStateHashMessage(value); + break; + case 38: + var value = new proto.io.bisq.protobuffer.GetProposalStateHashesRequest; + reader.readMessage(value,proto.io.bisq.protobuffer.GetProposalStateHashesRequest.deserializeBinaryFromReader); + msg.setGetProposalStateHashesRequest(value); + break; + case 39: + var value = new proto.io.bisq.protobuffer.GetProposalStateHashesResponse; + reader.readMessage(value,proto.io.bisq.protobuffer.GetProposalStateHashesResponse.deserializeBinaryFromReader); + msg.setGetProposalStateHashesResponse(value); + break; + case 40: + var value = new proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage; + reader.readMessage(value,proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage.deserializeBinaryFromReader); + msg.setNewBlindVoteStateHashMessage(value); + break; + case 41: + var value = new proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest; + reader.readMessage(value,proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest.deserializeBinaryFromReader); + msg.setGetBlindVoteStateHashesRequest(value); + break; + case 42: + var value = new proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse; + reader.readMessage(value,proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse.deserializeBinaryFromReader); + msg.setGetBlindVoteStateHashesResponse(value); + break; + case 43: + var value = new proto.io.bisq.protobuffer.BundleOfEnvelopes; + reader.readMessage(value,proto.io.bisq.protobuffer.BundleOfEnvelopes.deserializeBinaryFromReader); + msg.setBundleOfEnvelopes(value); + break; + case 44: + var value = new proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage; + reader.readMessage(value,proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.deserializeBinaryFromReader); + msg.setMediatedPayoutTxSignatureMessage(value); + break; + case 45: + var value = new proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage; + reader.readMessage(value,proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.deserializeBinaryFromReader); + msg.setMediatedPayoutTxPublishedMessage(value); + break; + case 46: + var value = new proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest; + reader.readMessage(value,proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.deserializeBinaryFromReader); + msg.setDelayedPayoutTxSignatureRequest(value); + break; + case 47: + var value = new proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse; + reader.readMessage(value,proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.deserializeBinaryFromReader); + msg.setDelayedPayoutTxSignatureResponse(value); + break; + case 48: + var value = new proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage; + reader.readMessage(value,proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.deserializeBinaryFromReader); + msg.setDepositTxAndDelayedPayoutTxMessage(value); + break; + case 49: + var value = new proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage; + reader.readMessage(value,proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.deserializeBinaryFromReader); + msg.setPeerPublishedDelayedPayoutTxMessage(value); + break; + case 50: + var value = new proto.io.bisq.protobuffer.RefreshTradeStateRequest; + reader.readMessage(value,proto.io.bisq.protobuffer.RefreshTradeStateRequest.deserializeBinaryFromReader); + msg.setRefreshTradeStateRequest(value); + break; + case 51: + var value = new proto.io.bisq.protobuffer.TraderSignedWitnessMessage; + reader.readMessage(value,proto.io.bisq.protobuffer.TraderSignedWitnessMessage.deserializeBinaryFromReader); + msg.setTraderSignedWitnessMessage(value); + break; + case 1001: + var value = new proto.io.bisq.protobuffer.InitTradeRequest; + reader.readMessage(value,proto.io.bisq.protobuffer.InitTradeRequest.deserializeBinaryFromReader); + msg.setInitTradeRequest(value); + break; + case 1002: + var value = new proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest; + reader.readMessage(value,proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.deserializeBinaryFromReader); + msg.setMakerReadyToFundMultisigRequest(value); + break; + case 1003: + var value = new proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse; + reader.readMessage(value,proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.deserializeBinaryFromReader); + msg.setMakerReadyToFundMultisigResponse(value); + break; + case 1004: + var value = new proto.io.bisq.protobuffer.InitMultisigMessage; + reader.readMessage(value,proto.io.bisq.protobuffer.InitMultisigMessage.deserializeBinaryFromReader); + msg.setInitMultisigMessage(value); + break; + case 1005: + var value = new proto.io.bisq.protobuffer.UpdateMultisigRequest; + reader.readMessage(value,proto.io.bisq.protobuffer.UpdateMultisigRequest.deserializeBinaryFromReader); + msg.setUpdateMultisigRequest(value); + break; + case 1006: + var value = new proto.io.bisq.protobuffer.UpdateMultisigResponse; + reader.readMessage(value,proto.io.bisq.protobuffer.UpdateMultisigResponse.deserializeBinaryFromReader); + msg.setUpdateMultisigResponse(value); + break; + case 1007: + var value = new proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest; + reader.readMessage(value,proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.deserializeBinaryFromReader); + msg.setArbitratorPayoutTxRequest(value); + break; + case 1008: + 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.getGetBlocksRequest(); + if (f != null) { + writer.writeMessage( + 28, + f, + proto.io.bisq.protobuffer.GetBlocksRequest.serializeBinaryToWriter + ); + } + f = message.getGetBlocksResponse(); + if (f != null) { + writer.writeMessage( + 29, + f, + proto.io.bisq.protobuffer.GetBlocksResponse.serializeBinaryToWriter + ); + } + f = message.getNewBlockBroadcastMessage(); + if (f != null) { + writer.writeMessage( + 30, + f, + proto.io.bisq.protobuffer.NewBlockBroadcastMessage.serializeBinaryToWriter + ); + } + f = message.getAddPersistableNetworkPayloadMessage(); + if (f != null) { + writer.writeMessage( + 31, + f, + proto.io.bisq.protobuffer.AddPersistableNetworkPayloadMessage.serializeBinaryToWriter + ); + } + f = message.getAckMessage(); + if (f != null) { + writer.writeMessage( + 32, + f, + proto.io.bisq.protobuffer.AckMessage.serializeBinaryToWriter + ); + } + f = message.getRepublishGovernanceDataRequest(); + if (f != null) { + writer.writeMessage( + 33, + f, + proto.io.bisq.protobuffer.RepublishGovernanceDataRequest.serializeBinaryToWriter + ); + } + f = message.getNewDaoStateHashMessage(); + if (f != null) { + writer.writeMessage( + 34, + f, + proto.io.bisq.protobuffer.NewDaoStateHashMessage.serializeBinaryToWriter + ); + } + f = message.getGetDaoStateHashesRequest(); + if (f != null) { + writer.writeMessage( + 35, + f, + proto.io.bisq.protobuffer.GetDaoStateHashesRequest.serializeBinaryToWriter + ); + } + f = message.getGetDaoStateHashesResponse(); + if (f != null) { + writer.writeMessage( + 36, + f, + proto.io.bisq.protobuffer.GetDaoStateHashesResponse.serializeBinaryToWriter + ); + } + f = message.getNewProposalStateHashMessage(); + if (f != null) { + writer.writeMessage( + 37, + f, + proto.io.bisq.protobuffer.NewProposalStateHashMessage.serializeBinaryToWriter + ); + } + f = message.getGetProposalStateHashesRequest(); + if (f != null) { + writer.writeMessage( + 38, + f, + proto.io.bisq.protobuffer.GetProposalStateHashesRequest.serializeBinaryToWriter + ); + } + f = message.getGetProposalStateHashesResponse(); + if (f != null) { + writer.writeMessage( + 39, + f, + proto.io.bisq.protobuffer.GetProposalStateHashesResponse.serializeBinaryToWriter + ); + } + f = message.getNewBlindVoteStateHashMessage(); + if (f != null) { + writer.writeMessage( + 40, + f, + proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage.serializeBinaryToWriter + ); + } + f = message.getGetBlindVoteStateHashesRequest(); + if (f != null) { + writer.writeMessage( + 41, + f, + proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest.serializeBinaryToWriter + ); + } + f = message.getGetBlindVoteStateHashesResponse(); + if (f != null) { + writer.writeMessage( + 42, + f, + proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse.serializeBinaryToWriter + ); + } + f = message.getBundleOfEnvelopes(); + if (f != null) { + writer.writeMessage( + 43, + f, + proto.io.bisq.protobuffer.BundleOfEnvelopes.serializeBinaryToWriter + ); + } + f = message.getMediatedPayoutTxSignatureMessage(); + if (f != null) { + writer.writeMessage( + 44, + f, + proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.serializeBinaryToWriter + ); + } + f = message.getMediatedPayoutTxPublishedMessage(); + if (f != null) { + writer.writeMessage( + 45, + f, + proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.serializeBinaryToWriter + ); + } + f = message.getDelayedPayoutTxSignatureRequest(); + if (f != null) { + writer.writeMessage( + 46, + f, + proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.serializeBinaryToWriter + ); + } + f = message.getDelayedPayoutTxSignatureResponse(); + if (f != null) { + writer.writeMessage( + 47, + f, + proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.serializeBinaryToWriter + ); + } + f = message.getDepositTxAndDelayedPayoutTxMessage(); + if (f != null) { + writer.writeMessage( + 48, + f, + proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.serializeBinaryToWriter + ); + } + f = message.getPeerPublishedDelayedPayoutTxMessage(); + if (f != null) { + writer.writeMessage( + 49, + f, + proto.io.bisq.protobuffer.PeerPublishedDelayedPayoutTxMessage.serializeBinaryToWriter + ); + } + f = message.getRefreshTradeStateRequest(); + if (f != null) { + writer.writeMessage( + 50, + f, + proto.io.bisq.protobuffer.RefreshTradeStateRequest.serializeBinaryToWriter + ); + } + f = message.getTraderSignedWitnessMessage(); + if (f != null) { + writer.writeMessage( + 51, + f, + proto.io.bisq.protobuffer.TraderSignedWitnessMessage.serializeBinaryToWriter + ); + } + f = message.getInitTradeRequest(); + if (f != null) { + writer.writeMessage( + 1001, + f, + proto.io.bisq.protobuffer.InitTradeRequest.serializeBinaryToWriter + ); + } + f = message.getMakerReadyToFundMultisigRequest(); + if (f != null) { + writer.writeMessage( + 1002, + f, + proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.serializeBinaryToWriter + ); + } + f = message.getMakerReadyToFundMultisigResponse(); + if (f != null) { + writer.writeMessage( + 1003, + f, + proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.serializeBinaryToWriter + ); + } + f = message.getInitMultisigMessage(); + if (f != null) { + writer.writeMessage( + 1004, + f, + proto.io.bisq.protobuffer.InitMultisigMessage.serializeBinaryToWriter + ); + } + f = message.getUpdateMultisigRequest(); + if (f != null) { + writer.writeMessage( + 1005, + f, + proto.io.bisq.protobuffer.UpdateMultisigRequest.serializeBinaryToWriter + ); + } + f = message.getUpdateMultisigResponse(); + if (f != null) { + writer.writeMessage( + 1006, + f, + proto.io.bisq.protobuffer.UpdateMultisigResponse.serializeBinaryToWriter + ); + } + f = message.getArbitratorPayoutTxRequest(); + if (f != null) { + writer.writeMessage( + 1007, + f, + proto.io.bisq.protobuffer.ArbitratorPayoutTxRequest.serializeBinaryToWriter + ); + } + f = message.getArbitratorPayoutTxResponse(); + if (f != null) { + writer.writeMessage( + 1008, + 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 GetBlocksRequest get_blocks_request = 28; + * @return {?proto.io.bisq.protobuffer.GetBlocksRequest} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getGetBlocksRequest = function() { + return /** @type{?proto.io.bisq.protobuffer.GetBlocksRequest} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.GetBlocksRequest, 28)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.GetBlocksRequest|undefined} value + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this +*/ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setGetBlocksRequest = 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.clearGetBlocksRequest = function() { + return this.setGetBlocksRequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasGetBlocksRequest = function() { + return jspb.Message.getField(this, 28) != null; +}; + + +/** + * optional GetBlocksResponse get_blocks_response = 29; + * @return {?proto.io.bisq.protobuffer.GetBlocksResponse} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getGetBlocksResponse = function() { + return /** @type{?proto.io.bisq.protobuffer.GetBlocksResponse} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.GetBlocksResponse, 29)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.GetBlocksResponse|undefined} value + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this +*/ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setGetBlocksResponse = 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.clearGetBlocksResponse = function() { + return this.setGetBlocksResponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasGetBlocksResponse = function() { + return jspb.Message.getField(this, 29) != null; +}; + + +/** + * optional NewBlockBroadcastMessage new_block_broadcast_message = 30; + * @return {?proto.io.bisq.protobuffer.NewBlockBroadcastMessage} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getNewBlockBroadcastMessage = function() { + return /** @type{?proto.io.bisq.protobuffer.NewBlockBroadcastMessage} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NewBlockBroadcastMessage, 30)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.NewBlockBroadcastMessage|undefined} value + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this +*/ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setNewBlockBroadcastMessage = 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.clearNewBlockBroadcastMessage = function() { + return this.setNewBlockBroadcastMessage(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasNewBlockBroadcastMessage = function() { + return jspb.Message.getField(this, 30) != null; +}; + + +/** + * optional AddPersistableNetworkPayloadMessage add_persistable_network_payload_message = 31; + * @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, 31)); +}; + + +/** + * @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, 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.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, 31) != null; +}; + + +/** + * optional AckMessage ack_message = 32; + * @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, 32)); +}; + + +/** + * @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, 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.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, 32) != null; +}; + + +/** + * optional RepublishGovernanceDataRequest republish_governance_data_request = 33; + * @return {?proto.io.bisq.protobuffer.RepublishGovernanceDataRequest} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getRepublishGovernanceDataRequest = function() { + return /** @type{?proto.io.bisq.protobuffer.RepublishGovernanceDataRequest} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.RepublishGovernanceDataRequest, 33)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.RepublishGovernanceDataRequest|undefined} value + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this +*/ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setRepublishGovernanceDataRequest = 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.clearRepublishGovernanceDataRequest = function() { + return this.setRepublishGovernanceDataRequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasRepublishGovernanceDataRequest = function() { + return jspb.Message.getField(this, 33) != null; +}; + + +/** + * optional NewDaoStateHashMessage new_dao_state_hash_message = 34; + * @return {?proto.io.bisq.protobuffer.NewDaoStateHashMessage} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getNewDaoStateHashMessage = function() { + return /** @type{?proto.io.bisq.protobuffer.NewDaoStateHashMessage} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NewDaoStateHashMessage, 34)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.NewDaoStateHashMessage|undefined} value + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this +*/ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setNewDaoStateHashMessage = 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.clearNewDaoStateHashMessage = function() { + return this.setNewDaoStateHashMessage(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasNewDaoStateHashMessage = function() { + return jspb.Message.getField(this, 34) != null; +}; + + +/** + * optional GetDaoStateHashesRequest get_dao_state_hashes_request = 35; + * @return {?proto.io.bisq.protobuffer.GetDaoStateHashesRequest} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getGetDaoStateHashesRequest = function() { + return /** @type{?proto.io.bisq.protobuffer.GetDaoStateHashesRequest} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.GetDaoStateHashesRequest, 35)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.GetDaoStateHashesRequest|undefined} value + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this +*/ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setGetDaoStateHashesRequest = 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.clearGetDaoStateHashesRequest = function() { + return this.setGetDaoStateHashesRequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasGetDaoStateHashesRequest = function() { + return jspb.Message.getField(this, 35) != null; +}; + + +/** + * optional GetDaoStateHashesResponse get_dao_state_hashes_response = 36; + * @return {?proto.io.bisq.protobuffer.GetDaoStateHashesResponse} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getGetDaoStateHashesResponse = function() { + return /** @type{?proto.io.bisq.protobuffer.GetDaoStateHashesResponse} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.GetDaoStateHashesResponse, 36)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.GetDaoStateHashesResponse|undefined} value + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this +*/ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setGetDaoStateHashesResponse = 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.clearGetDaoStateHashesResponse = function() { + return this.setGetDaoStateHashesResponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasGetDaoStateHashesResponse = function() { + return jspb.Message.getField(this, 36) != null; +}; + + +/** + * optional NewProposalStateHashMessage new_proposal_state_hash_message = 37; + * @return {?proto.io.bisq.protobuffer.NewProposalStateHashMessage} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getNewProposalStateHashMessage = function() { + return /** @type{?proto.io.bisq.protobuffer.NewProposalStateHashMessage} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NewProposalStateHashMessage, 37)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.NewProposalStateHashMessage|undefined} value + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this +*/ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setNewProposalStateHashMessage = 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.clearNewProposalStateHashMessage = function() { + return this.setNewProposalStateHashMessage(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasNewProposalStateHashMessage = function() { + return jspb.Message.getField(this, 37) != null; +}; + + +/** + * optional GetProposalStateHashesRequest get_proposal_state_hashes_request = 38; + * @return {?proto.io.bisq.protobuffer.GetProposalStateHashesRequest} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getGetProposalStateHashesRequest = function() { + return /** @type{?proto.io.bisq.protobuffer.GetProposalStateHashesRequest} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.GetProposalStateHashesRequest, 38)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.GetProposalStateHashesRequest|undefined} value + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this +*/ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setGetProposalStateHashesRequest = 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.clearGetProposalStateHashesRequest = function() { + return this.setGetProposalStateHashesRequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasGetProposalStateHashesRequest = function() { + return jspb.Message.getField(this, 38) != null; +}; + + +/** + * optional GetProposalStateHashesResponse get_proposal_state_hashes_response = 39; + * @return {?proto.io.bisq.protobuffer.GetProposalStateHashesResponse} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getGetProposalStateHashesResponse = function() { + return /** @type{?proto.io.bisq.protobuffer.GetProposalStateHashesResponse} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.GetProposalStateHashesResponse, 39)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.GetProposalStateHashesResponse|undefined} value + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this +*/ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setGetProposalStateHashesResponse = 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.clearGetProposalStateHashesResponse = function() { + return this.setGetProposalStateHashesResponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasGetProposalStateHashesResponse = function() { + return jspb.Message.getField(this, 39) != null; +}; + + +/** + * optional NewBlindVoteStateHashMessage new_blind_vote_state_hash_message = 40; + * @return {?proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getNewBlindVoteStateHashMessage = function() { + return /** @type{?proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage, 40)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage|undefined} value + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this +*/ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setNewBlindVoteStateHashMessage = 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.clearNewBlindVoteStateHashMessage = function() { + return this.setNewBlindVoteStateHashMessage(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasNewBlindVoteStateHashMessage = function() { + return jspb.Message.getField(this, 40) != null; +}; + + +/** + * optional GetBlindVoteStateHashesRequest get_blind_vote_state_hashes_request = 41; + * @return {?proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getGetBlindVoteStateHashesRequest = function() { + return /** @type{?proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest, 41)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest|undefined} value + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this +*/ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setGetBlindVoteStateHashesRequest = function(value) { + return jspb.Message.setOneofWrapperField(this, 41, 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.clearGetBlindVoteStateHashesRequest = function() { + return this.setGetBlindVoteStateHashesRequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasGetBlindVoteStateHashesRequest = function() { + return jspb.Message.getField(this, 41) != null; +}; + + +/** + * optional GetBlindVoteStateHashesResponse get_blind_vote_state_hashes_response = 42; + * @return {?proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getGetBlindVoteStateHashesResponse = function() { + return /** @type{?proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse, 42)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse|undefined} value + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this +*/ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setGetBlindVoteStateHashesResponse = function(value) { + return jspb.Message.setOneofWrapperField(this, 42, 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.clearGetBlindVoteStateHashesResponse = function() { + return this.setGetBlindVoteStateHashesResponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasGetBlindVoteStateHashesResponse = function() { + return jspb.Message.getField(this, 42) != null; +}; + + +/** + * optional BundleOfEnvelopes bundle_of_envelopes = 43; + * @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, 43)); +}; + + +/** + * @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, 43, 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, 43) != null; +}; + + +/** + * optional MediatedPayoutTxSignatureMessage mediated_payout_tx_signature_message = 44; + * @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, 44)); +}; + + +/** + * @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, 44, 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, 44) != null; +}; + + +/** + * optional MediatedPayoutTxPublishedMessage mediated_payout_tx_published_message = 45; + * @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, 45)); +}; + + +/** + * @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, 45, 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, 45) != null; +}; + + +/** + * optional DelayedPayoutTxSignatureRequest delayed_payout_tx_signature_request = 46; + * @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, 46)); +}; + + +/** + * @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, 46, 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, 46) != null; +}; + + +/** + * optional DelayedPayoutTxSignatureResponse delayed_payout_tx_signature_response = 47; + * @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, 47)); +}; + + +/** + * @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, 47, 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, 47) != null; +}; + + +/** + * optional DepositTxAndDelayedPayoutTxMessage deposit_tx_and_delayed_payout_tx_message = 48; + * @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, 48)); +}; + + +/** + * @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, 48, 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, 48) != null; +}; + + +/** + * optional PeerPublishedDelayedPayoutTxMessage peer_published_delayed_payout_tx_message = 49; + * @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, 49)); +}; + + +/** + * @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, 49, 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, 49) != null; +}; + + +/** + * optional RefreshTradeStateRequest refresh_trade_state_request = 50; + * @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, 50)); +}; + + +/** + * @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, 50, 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, 50) != null; +}; + + +/** + * optional TraderSignedWitnessMessage trader_signed_witness_message = 51; + * @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, 51)); +}; + + +/** + * @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, 51, 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, 51) != null; +}; + + +/** + * optional InitTradeRequest init_trade_request = 1001; + * @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, 1001)); +}; + + +/** + * @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, 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.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, 1001) != null; +}; + + +/** + * optional MakerReadyToFundMultisigRequest maker_ready_to_fund_multisig_request = 1002; + * @return {?proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getMakerReadyToFundMultisigRequest = function() { + return /** @type{?proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest, 1002)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest|undefined} value + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this +*/ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setMakerReadyToFundMultisigRequest = 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.clearMakerReadyToFundMultisigRequest = function() { + return this.setMakerReadyToFundMultisigRequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasMakerReadyToFundMultisigRequest = function() { + return jspb.Message.getField(this, 1002) != null; +}; + + +/** + * optional MakerReadyToFundMultisigResponse maker_ready_to_fund_multisig_response = 1003; + * @return {?proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getMakerReadyToFundMultisigResponse = function() { + return /** @type{?proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse, 1003)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse|undefined} value + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this +*/ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setMakerReadyToFundMultisigResponse = 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.clearMakerReadyToFundMultisigResponse = function() { + return this.setMakerReadyToFundMultisigResponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasMakerReadyToFundMultisigResponse = function() { + return jspb.Message.getField(this, 1003) != null; +}; + + +/** + * optional InitMultisigMessage init_multisig_message = 1004; + * @return {?proto.io.bisq.protobuffer.InitMultisigMessage} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.getInitMultisigMessage = function() { + return /** @type{?proto.io.bisq.protobuffer.InitMultisigMessage} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.InitMultisigMessage, 1004)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.InitMultisigMessage|undefined} value + * @return {!proto.io.bisq.protobuffer.NetworkEnvelope} returns this +*/ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.setInitMultisigMessage = 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.clearInitMultisigMessage = function() { + return this.setInitMultisigMessage(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NetworkEnvelope.prototype.hasInitMultisigMessage = function() { + return jspb.Message.getField(this, 1004) != null; +}; + + +/** + * optional UpdateMultisigRequest update_multisig_request = 1005; + * @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, 1005)); +}; + + +/** + * @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, 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.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, 1005) != null; +}; + + +/** + * optional UpdateMultisigResponse update_multisig_response = 1006; + * @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, 1006)); +}; + + +/** + * @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, 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.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, 1006) != null; +}; + + +/** + * optional ArbitratorPayoutTxRequest arbitrator_payout_tx_request = 1007; + * @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, 1007)); +}; + + +/** + * @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, 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.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, 1007) != null; +}; + + +/** + * optional ArbitratorPayoutTxResponse arbitrator_payout_tx_response = 1008; + * @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, 1008)); +}; + + +/** + * @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, 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.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, 1008) != 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} + */ +proto.io.bisq.protobuffer.PreliminaryGetDataRequest.prototype.getExcludedKeysList = function() { + return /** @type {!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} + */ +proto.io.bisq.protobuffer.GetUpdatedDataRequest.prototype.getExcludedKeysList = function() { + return /** @type {!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); +}; + + + +/** + * 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, "") + }; + + if (includeInstance) { + obj.$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; + 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 + ); + } +}; + + +/** + * 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); +}; + + + +/** + * 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, ""), + arbitrator: (f = msg.getArbitrator()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), + mediator: (f = msg.getMediator()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), + refundAgent: (f = msg.getRefundAgent()) && 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 = new proto.io.bisq.protobuffer.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); + msg.setArbitrator(value); + break; + case 6: + var value = new proto.io.bisq.protobuffer.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); + msg.setMediator(value); + break; + case 7: + var value = new proto.io.bisq.protobuffer.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.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.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.getArbitrator(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getMediator(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getRefundAgent(); + if (f != null) { + writer.writeMessage( + 7, + 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 NodeAddress arbitrator = 5; + * @return {?proto.io.bisq.protobuffer.NodeAddress} + */ +proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.getArbitrator = function() { + return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 5)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value + * @return {!proto.io.bisq.protobuffer.OfferAvailabilityResponse} returns this +*/ +proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.setArbitrator = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.OfferAvailabilityResponse} returns this + */ +proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.clearArbitrator = function() { + return this.setArbitrator(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.hasArbitrator = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional NodeAddress mediator = 6; + * @return {?proto.io.bisq.protobuffer.NodeAddress} + */ +proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.getMediator = 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.setMediator = 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.clearMediator = function() { + return this.setMediator(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.hasMediator = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional NodeAddress refund_agent = 7; + * @return {?proto.io.bisq.protobuffer.NodeAddress} + */ +proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.getRefundAgent = function() { + return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 7)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value + * @return {!proto.io.bisq.protobuffer.OfferAvailabilityResponse} returns this +*/ +proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.setRefundAgent = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.OfferAvailabilityResponse} returns this + */ +proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.clearRefundAgent = function() { + return this.setRefundAgent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.OfferAvailabilityResponse.prototype.hasRefundAgent = 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.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} + */ +proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.getHashOfDataAndSeqNr = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.getSignature = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.getHashOfPayload = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.prototype.getAddressPrefixHash = function() { + return /** @type {string} */ (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_ = [8,17,18,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.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), + isCurrencyForTakerFeeBtc: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), + rawTransactionInputsList: jspb.Message.toObjectList(msg.getRawTransactionInputsList(), + proto.io.bisq.protobuffer.RawTransactionInput.toObject, includeInstance), + changeOutputValue: jspb.Message.getFieldWithDefault(msg, 9, 0), + changeOutputAddress: jspb.Message.getFieldWithDefault(msg, 10, ""), + takerMultiSigPubKey: msg.getTakerMultiSigPubKey_asB64(), + takerPayoutAddressString: jspb.Message.getFieldWithDefault(msg, 12, ""), + 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, 15, ""), + takerFeeTxId: jspb.Message.getFieldWithDefault(msg, 16, ""), + 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, 21, ""), + accountAgeWitnessSignatureOfOfferId: msg.getAccountAgeWitnessSignatureOfOfferId_asB64(), + currentDate: jspb.Message.getFieldWithDefault(msg, 23, 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 = /** @type {boolean} */ (reader.readBool()); + msg.setIsCurrencyForTakerFeeBtc(value); + break; + case 8: + var value = new proto.io.bisq.protobuffer.RawTransactionInput; + reader.readMessage(value,proto.io.bisq.protobuffer.RawTransactionInput.deserializeBinaryFromReader); + msg.addRawTransactionInputs(value); + break; + case 9: + var value = /** @type {number} */ (reader.readInt64()); + msg.setChangeOutputValue(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setChangeOutputAddress(value); + break; + case 11: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setTakerMultiSigPubKey(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setTakerPayoutAddressString(value); + break; + case 13: + var value = new proto.io.bisq.protobuffer.PubKeyRing; + reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); + msg.setTakerPubKeyRing(value); + break; + case 14: + var value = new proto.io.bisq.protobuffer.PaymentAccountPayload; + reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccountPayload.deserializeBinaryFromReader); + msg.setTakerPaymentAccountPayload(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setTakerAccountId(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.setTakerFeeTxId(value); + break; + case 17: + var value = new proto.io.bisq.protobuffer.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); + msg.addAcceptedArbitratorNodeAddresses(value); + break; + case 18: + var value = new proto.io.bisq.protobuffer.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); + msg.addAcceptedMediatorNodeAddresses(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 = new proto.io.bisq.protobuffer.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); + msg.setMediatorNodeAddress(value); + break; + case 21: + var value = /** @type {string} */ (reader.readString()); + msg.setUid(value); + break; + case 22: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setAccountAgeWitnessSignatureOfOfferId(value); + break; + case 23: + var value = /** @type {number} */ (reader.readInt64()); + msg.setCurrentDate(value); + break; + case 24: + var value = new proto.io.bisq.protobuffer.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); + msg.addAcceptedRefundAgentNodeAddresses(value); + break; + case 25: + 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.getIsCurrencyForTakerFeeBtc(); + if (f) { + writer.writeBool( + 7, + f + ); + } + f = message.getRawTransactionInputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 8, + f, + proto.io.bisq.protobuffer.RawTransactionInput.serializeBinaryToWriter + ); + } + f = message.getChangeOutputValue(); + if (f !== 0) { + writer.writeInt64( + 9, + f + ); + } + f = message.getChangeOutputAddress(); + if (f.length > 0) { + writer.writeString( + 10, + f + ); + } + f = message.getTakerMultiSigPubKey_asU8(); + if (f.length > 0) { + writer.writeBytes( + 11, + f + ); + } + f = message.getTakerPayoutAddressString(); + if (f.length > 0) { + writer.writeString( + 12, + f + ); + } + f = message.getTakerPubKeyRing(); + if (f != null) { + writer.writeMessage( + 13, + f, + proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter + ); + } + f = message.getTakerPaymentAccountPayload(); + if (f != null) { + writer.writeMessage( + 14, + f, + proto.io.bisq.protobuffer.PaymentAccountPayload.serializeBinaryToWriter + ); + } + f = message.getTakerAccountId(); + if (f.length > 0) { + writer.writeString( + 15, + f + ); + } + f = message.getTakerFeeTxId(); + if (f.length > 0) { + writer.writeString( + 16, + f + ); + } + f = message.getAcceptedArbitratorNodeAddressesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 17, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getAcceptedMediatorNodeAddressesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 18, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getArbitratorNodeAddress(); + if (f != null) { + writer.writeMessage( + 19, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getMediatorNodeAddress(); + if (f != null) { + writer.writeMessage( + 20, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getUid(); + if (f.length > 0) { + writer.writeString( + 21, + f + ); + } + f = message.getAccountAgeWitnessSignatureOfOfferId_asU8(); + if (f.length > 0) { + writer.writeBytes( + 22, + f + ); + } + f = message.getCurrentDate(); + if (f !== 0) { + writer.writeInt64( + 23, + f + ); + } + f = message.getAcceptedRefundAgentNodeAddressesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 24, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getRefundAgentNodeAddress(); + if (f != null) { + writer.writeMessage( + 25, + 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); +}; + + +/** + * optional bool is_currency_for_taker_fee_btc = 7; + * @return {boolean} + */ +proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getIsCurrencyForTakerFeeBtc = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.InputsForDepositTxRequest} returns this + */ +proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setIsCurrencyForTakerFeeBtc = function(value) { + return jspb.Message.setProto3BooleanField(this, 7, value); +}; + + +/** + * repeated RawTransactionInput raw_transaction_inputs = 8; + * @return {!Array} + */ +proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getRawTransactionInputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.RawTransactionInput, 8)); +}; + + +/** + * @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, 8, 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, 8, 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 = 9; + * @return {number} + */ +proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getChangeOutputValue = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 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, 9, value); +}; + + +/** + * optional string change_output_address = 10; + * @return {string} + */ +proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getChangeOutputAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +}; + + +/** + * @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, 10, value); +}; + + +/** + * optional bytes taker_multi_sig_pub_key = 11; + * @return {string} + */ +proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getTakerMultiSigPubKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * optional bytes taker_multi_sig_pub_key = 11; + * 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 = 11; + * 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, 11, value); +}; + + +/** + * optional string taker_payout_address_string = 12; + * @return {string} + */ +proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getTakerPayoutAddressString = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +}; + + +/** + * @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, 12, value); +}; + + +/** + * optional PubKeyRing taker_pub_key_ring = 13; + * @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, 13)); +}; + + +/** + * @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, 13, 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, 13) != null; +}; + + +/** + * optional PaymentAccountPayload taker_payment_account_payload = 14; + * @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, 14)); +}; + + +/** + * @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, 14, 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, 14) != null; +}; + + +/** + * optional string taker_account_id = 15; + * @return {string} + */ +proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getTakerAccountId = 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.setTakerAccountId = function(value) { + return jspb.Message.setProto3StringField(this, 15, value); +}; + + +/** + * optional string taker_fee_tx_id = 16; + * @return {string} + */ +proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getTakerFeeTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); +}; + + +/** + * @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, 16, value); +}; + + +/** + * repeated NodeAddress accepted_arbitrator_node_addresses = 17; + * @return {!Array} + */ +proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getAcceptedArbitratorNodeAddressesList = 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.setAcceptedArbitratorNodeAddressesList = 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.addAcceptedArbitratorNodeAddresses = 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.clearAcceptedArbitratorNodeAddressesList = function() { + return this.setAcceptedArbitratorNodeAddressesList([]); +}; + + +/** + * repeated NodeAddress accepted_mediator_node_addresses = 18; + * @return {!Array} + */ +proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getAcceptedMediatorNodeAddressesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 18)); +}; + + +/** + * @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, 18, 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, 18, 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 = 19; + * @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, 19)); +}; + + +/** + * @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, 19, 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, 19) != null; +}; + + +/** + * optional NodeAddress mediator_node_address = 20; + * @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, 20)); +}; + + +/** + * @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, 20, 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, 20) != null; +}; + + +/** + * optional string uid = 21; + * @return {string} + */ +proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getUid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, "")); +}; + + +/** + * @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, 21, value); +}; + + +/** + * optional bytes account_age_witness_signature_of_offer_id = 22; + * @return {string} + */ +proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getAccountAgeWitnessSignatureOfOfferId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "")); +}; + + +/** + * optional bytes account_age_witness_signature_of_offer_id = 22; + * 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 = 22; + * 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, 22, value); +}; + + +/** + * optional int64 current_date = 23; + * @return {number} + */ +proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getCurrentDate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 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, 23, value); +}; + + +/** + * repeated NodeAddress accepted_refund_agent_node_addresses = 24; + * @return {!Array} + */ +proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getAcceptedRefundAgentNodeAddressesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 24)); +}; + + +/** + * @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, 24, 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, 24, 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 = 25; + * @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, 25)); +}; + + +/** + * @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, 25, 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, 25) != 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} + */ +proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getPreparedDepositTx = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getMakerMultiSigPubKey = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getAccountAgeWitnessSignatureOfPreparedDepositTx = function() { + return /** @type {string} */ (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), + txFee: jspb.Message.getFieldWithDefault(msg, 6, 0), + tradeFee: jspb.Message.getFieldWithDefault(msg, 7, 0), + payoutAddressString: jspb.Message.getFieldWithDefault(msg, 8, ""), + paymentAccountPayload: (f = msg.getPaymentAccountPayload()) && proto.io.bisq.protobuffer.PaymentAccountPayload.toObject(includeInstance, f), + accountId: jspb.Message.getFieldWithDefault(msg, 10, ""), + tradeFeeTxId: jspb.Message.getFieldWithDefault(msg, 11, ""), + uid: jspb.Message.getFieldWithDefault(msg, 12, ""), + accountAgeWitnessSignatureOfOfferId: msg.getAccountAgeWitnessSignatureOfOfferId_asB64(), + currentDate: jspb.Message.getFieldWithDefault(msg, 14, 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) + }; + + if (includeInstance) { + obj.$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.setTxFee(value); + break; + case 7: + var value = /** @type {number} */ (reader.readInt64()); + msg.setTradeFee(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setPayoutAddressString(value); + break; + case 9: + var value = new proto.io.bisq.protobuffer.PaymentAccountPayload; + reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccountPayload.deserializeBinaryFromReader); + msg.setPaymentAccountPayload(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setAccountId(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setTradeFeeTxId(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setUid(value); + break; + case 13: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setAccountAgeWitnessSignatureOfOfferId(value); + break; + case 14: + var value = /** @type {number} */ (reader.readInt64()); + msg.setCurrentDate(value); + break; + case 15: + var value = new proto.io.bisq.protobuffer.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); + msg.setMakerNodeAddress(value); + break; + case 16: + var value = new proto.io.bisq.protobuffer.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); + msg.setTakerNodeAddress(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; + 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.getTxFee(); + if (f !== 0) { + writer.writeInt64( + 6, + f + ); + } + f = message.getTradeFee(); + if (f !== 0) { + writer.writeInt64( + 7, + f + ); + } + f = message.getPayoutAddressString(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getPaymentAccountPayload(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.io.bisq.protobuffer.PaymentAccountPayload.serializeBinaryToWriter + ); + } + f = message.getAccountId(); + if (f.length > 0) { + writer.writeString( + 10, + f + ); + } + f = message.getTradeFeeTxId(); + if (f.length > 0) { + writer.writeString( + 11, + f + ); + } + f = message.getUid(); + if (f.length > 0) { + writer.writeString( + 12, + f + ); + } + f = message.getAccountAgeWitnessSignatureOfOfferId_asU8(); + if (f.length > 0) { + writer.writeBytes( + 13, + f + ); + } + f = message.getCurrentDate(); + if (f !== 0) { + writer.writeInt64( + 14, + f + ); + } + f = message.getMakerNodeAddress(); + if (f != null) { + writer.writeMessage( + 15, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getTakerNodeAddress(); + if (f != null) { + writer.writeMessage( + 16, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getArbitratorNodeAddress(); + if (f != null) { + writer.writeMessage( + 17, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } +}; + + +/** + * 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 tx_fee = 6; + * @return {number} + */ +proto.io.bisq.protobuffer.InitTradeRequest.prototype.getTxFee = 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.setTxFee = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional int64 trade_fee = 7; + * @return {number} + */ +proto.io.bisq.protobuffer.InitTradeRequest.prototype.getTradeFee = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 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, 7, value); +}; + + +/** + * optional string payout_address_string = 8; + * @return {string} + */ +proto.io.bisq.protobuffer.InitTradeRequest.prototype.getPayoutAddressString = 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.setPayoutAddressString = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + + +/** + * optional PaymentAccountPayload payment_account_payload = 9; + * @return {?proto.io.bisq.protobuffer.PaymentAccountPayload} + */ +proto.io.bisq.protobuffer.InitTradeRequest.prototype.getPaymentAccountPayload = function() { + return /** @type{?proto.io.bisq.protobuffer.PaymentAccountPayload} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PaymentAccountPayload, 9)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.PaymentAccountPayload|undefined} value + * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this +*/ +proto.io.bisq.protobuffer.InitTradeRequest.prototype.setPaymentAccountPayload = function(value) { + return jspb.Message.setWrapperField(this, 9, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this + */ +proto.io.bisq.protobuffer.InitTradeRequest.prototype.clearPaymentAccountPayload = function() { + return this.setPaymentAccountPayload(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.InitTradeRequest.prototype.hasPaymentAccountPayload = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional string account_id = 10; + * @return {string} + */ +proto.io.bisq.protobuffer.InitTradeRequest.prototype.getAccountId = 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.setAccountId = function(value) { + return jspb.Message.setProto3StringField(this, 10, value); +}; + + +/** + * optional string trade_fee_tx_id = 11; + * @return {string} + */ +proto.io.bisq.protobuffer.InitTradeRequest.prototype.getTradeFeeTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.InitTradeRequest} returns this + */ +proto.io.bisq.protobuffer.InitTradeRequest.prototype.setTradeFeeTxId = function(value) { + return jspb.Message.setProto3StringField(this, 11, value); +}; + + +/** + * optional string uid = 12; + * @return {string} + */ +proto.io.bisq.protobuffer.InitTradeRequest.prototype.getUid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +}; + + +/** + * @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, 12, value); +}; + + +/** + * optional bytes account_age_witness_signature_of_offer_id = 13; + * @return {string} + */ +proto.io.bisq.protobuffer.InitTradeRequest.prototype.getAccountAgeWitnessSignatureOfOfferId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); +}; + + +/** + * optional bytes account_age_witness_signature_of_offer_id = 13; + * 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 = 13; + * 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, 13, value); +}; + + +/** + * optional int64 current_date = 14; + * @return {number} + */ +proto.io.bisq.protobuffer.InitTradeRequest.prototype.getCurrentDate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 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, 14, value); +}; + + +/** + * optional NodeAddress maker_node_address = 15; + * @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, 15)); +}; + + +/** + * @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, 15, 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, 15) != null; +}; + + +/** + * optional NodeAddress taker_node_address = 16; + * @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, 16)); +}; + + +/** + * @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, 16, 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, 16) != null; +}; + + +/** + * optional NodeAddress arbitrator_node_address = 17; + * @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, 17)); +}; + + +/** + * @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, 17, 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, 17) != 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.MakerReadyToFundMultisigRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.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, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest} + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest; + return proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest} + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.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; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.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 + ); + } +}; + + +/** + * optional string trade_id = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.prototype.getTradeId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest} returns this + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.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.MakerReadyToFundMultisigRequest.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.MakerReadyToFundMultisigRequest} returns this +*/ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.prototype.setSenderNodeAddress = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest} returns this + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.prototype.clearSenderNodeAddress = function() { + return this.setSenderNodeAddress(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.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.MakerReadyToFundMultisigRequest.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.MakerReadyToFundMultisigRequest} returns this +*/ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.prototype.setPubKeyRing = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest} returns this + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.prototype.clearPubKeyRing = function() { + return this.setPubKeyRing(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.prototype.hasPubKeyRing = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string uid = 4; + * @return {string} + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.prototype.getUid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest} returns this + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigRequest.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.MakerReadyToFundMultisigResponse.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.toObject = function(includeInstance, msg) { + var f, obj = { + tradeId: jspb.Message.getFieldWithDefault(msg, 1, ""), + uid: jspb.Message.getFieldWithDefault(msg, 2, ""), + isMakerReadyToFundMultisig: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + makerContractAsJson: jspb.Message.getFieldWithDefault(msg, 4, ""), + makerContractSignature: jspb.Message.getFieldWithDefault(msg, 5, ""), + makerPayoutAddressString: jspb.Message.getFieldWithDefault(msg, 6, ""), + makerPaymentAccountPayload: (f = msg.getMakerPaymentAccountPayload()) && proto.io.bisq.protobuffer.PaymentAccountPayload.toObject(includeInstance, f), + makerAccountId: jspb.Message.getFieldWithDefault(msg, 8, ""), + currentDate: jspb.Message.getFieldWithDefault(msg, 9, 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.MakerReadyToFundMultisigResponse} + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse; + return proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse} + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.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.setUid(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsMakerReadyToFundMultisig(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 = new proto.io.bisq.protobuffer.PaymentAccountPayload; + reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccountPayload.deserializeBinaryFromReader); + msg.setMakerPaymentAccountPayload(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setMakerAccountId(value); + break; + case 9: + 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.MakerReadyToFundMultisigResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTradeId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getUid(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getIsMakerReadyToFundMultisig(); + if (f) { + writer.writeBool( + 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.getMakerPaymentAccountPayload(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.io.bisq.protobuffer.PaymentAccountPayload.serializeBinaryToWriter + ); + } + f = message.getMakerAccountId(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getCurrentDate(); + if (f !== 0) { + writer.writeInt64( + 9, + f + ); + } +}; + + +/** + * optional string trade_id = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.getTradeId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse} returns this + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.setTradeId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string uid = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.getUid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse} returns this + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.setUid = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional bool is_maker_ready_to_fund_multisig = 3; + * @return {boolean} + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.getIsMakerReadyToFundMultisig = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse} returns this + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.setIsMakerReadyToFundMultisig = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional string maker_contract_as_json = 4; + * @return {string} + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.getMakerContractAsJson = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse} returns this + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.setMakerContractAsJson = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string maker_contract_signature = 5; + * @return {string} + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.getMakerContractSignature = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse} returns this + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.setMakerContractSignature = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional string maker_payout_address_string = 6; + * @return {string} + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.getMakerPayoutAddressString = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse} returns this + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.setMakerPayoutAddressString = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * optional PaymentAccountPayload maker_payment_account_payload = 7; + * @return {?proto.io.bisq.protobuffer.PaymentAccountPayload} + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.getMakerPaymentAccountPayload = 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.MakerReadyToFundMultisigResponse} returns this +*/ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.setMakerPaymentAccountPayload = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse} returns this + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.clearMakerPaymentAccountPayload = function() { + return this.setMakerPaymentAccountPayload(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.hasMakerPaymentAccountPayload = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional string maker_account_id = 8; + * @return {string} + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.getMakerAccountId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse} returns this + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.setMakerAccountId = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + + +/** + * optional int64 current_date = 9; + * @return {number} + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.getCurrentDate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse} returns this + */ +proto.io.bisq.protobuffer.MakerReadyToFundMultisigResponse.prototype.setCurrentDate = function(value) { + return jspb.Message.setProto3IntField(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.InitMultisigMessage.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.InitMultisigMessage.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.InitMultisigMessage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.InitMultisigMessage.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.InitMultisigMessage} + */ +proto.io.bisq.protobuffer.InitMultisigMessage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.InitMultisigMessage; + return proto.io.bisq.protobuffer.InitMultisigMessage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.InitMultisigMessage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.InitMultisigMessage} + */ +proto.io.bisq.protobuffer.InitMultisigMessage.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.InitMultisigMessage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.InitMultisigMessage.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.InitMultisigMessage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.InitMultisigMessage.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.InitMultisigMessage.prototype.getTradeId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.InitMultisigMessage} returns this + */ +proto.io.bisq.protobuffer.InitMultisigMessage.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.InitMultisigMessage.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.InitMultisigMessage} returns this +*/ +proto.io.bisq.protobuffer.InitMultisigMessage.prototype.setSenderNodeAddress = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.InitMultisigMessage} returns this + */ +proto.io.bisq.protobuffer.InitMultisigMessage.prototype.clearSenderNodeAddress = function() { + return this.setSenderNodeAddress(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.InitMultisigMessage.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.InitMultisigMessage.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.InitMultisigMessage} returns this +*/ +proto.io.bisq.protobuffer.InitMultisigMessage.prototype.setPubKeyRing = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.InitMultisigMessage} returns this + */ +proto.io.bisq.protobuffer.InitMultisigMessage.prototype.clearPubKeyRing = function() { + return this.setPubKeyRing(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.InitMultisigMessage.prototype.hasPubKeyRing = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string uid = 4; + * @return {string} + */ +proto.io.bisq.protobuffer.InitMultisigMessage.prototype.getUid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.InitMultisigMessage} returns this + */ +proto.io.bisq.protobuffer.InitMultisigMessage.prototype.setUid = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional int64 current_date = 5; + * @return {number} + */ +proto.io.bisq.protobuffer.InitMultisigMessage.prototype.getCurrentDate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.InitMultisigMessage} returns this + */ +proto.io.bisq.protobuffer.InitMultisigMessage.prototype.setCurrentDate = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional string prepared_multisig_hex = 6; + * @return {string} + */ +proto.io.bisq.protobuffer.InitMultisigMessage.prototype.getPreparedMultisigHex = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.InitMultisigMessage} returns this + */ +proto.io.bisq.protobuffer.InitMultisigMessage.prototype.setPreparedMultisigHex = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * optional string made_multisig_hex = 7; + * @return {string} + */ +proto.io.bisq.protobuffer.InitMultisigMessage.prototype.getMadeMultisigHex = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.InitMultisigMessage} returns this + */ +proto.io.bisq.protobuffer.InitMultisigMessage.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.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() + }; + + if (includeInstance) { + obj.$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; + 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 + ); + } +}; + + +/** + * 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} + */ +proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.getDelayedPayoutTx = function() { + return /** @type {string} */ (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); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_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), + delayedPayoutTxSignature: msg.getDelayedPayoutTxSignature_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.setDelayedPayoutTxSignature(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.getDelayedPayoutTxSignature_asU8(); + if (f.length > 0) { + writer.writeBytes( + 4, + 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_signature = 4; + * @return {string} + */ +proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getDelayedPayoutTxSignature = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * optional bytes delayed_payout_tx_signature = 4; + * This is a type-conversion wrapper around `getDelayedPayoutTxSignature()` + * @return {string} + */ +proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getDelayedPayoutTxSignature_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getDelayedPayoutTxSignature())); +}; + + +/** + * optional bytes delayed_payout_tx_signature = 4; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getDelayedPayoutTxSignature()` + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getDelayedPayoutTxSignature_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getDelayedPayoutTxSignature())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse} returns this + */ +proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.setDelayedPayoutTxSignature = function(value) { + return jspb.Message.setProto3BytesField(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.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} + */ +proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.getDepositTx = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.getDelayedPayoutTx = function() { + return /** @type {string} */ (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), + pubKeyRing: (f = msg.getPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), + tradeFeeTxId: jspb.Message.getFieldWithDefault(msg, 6, ""), + depositTxId: 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.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 = new proto.io.bisq.protobuffer.PubKeyRing; + reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); + msg.setPubKeyRing(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setTradeFeeTxId(value); + break; + case 7: + 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.getPubKeyRing(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter + ); + } + f = message.getTradeFeeTxId(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getDepositTxId(); + if (f.length > 0) { + writer.writeString( + 7, + 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 PubKeyRing pub_key_ring = 4; + * @return {?proto.io.bisq.protobuffer.PubKeyRing} + */ +proto.io.bisq.protobuffer.DepositTxMessage.prototype.getPubKeyRing = function() { + return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 4)); +}; + + +/** + * @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, 4, 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, 4) != null; +}; + + +/** + * optional string trade_fee_tx_id = 6; + * @return {string} + */ +proto.io.bisq.protobuffer.DepositTxMessage.prototype.getTradeFeeTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @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, 6, value); +}; + + +/** + * optional string deposit_tx_id = 7; + * @return {string} + */ +proto.io.bisq.protobuffer.DepositTxMessage.prototype.getDepositTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @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, 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.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} + */ +proto.io.bisq.protobuffer.FinalizePayoutTxRequest.prototype.getSellerSignature = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.prototype.getPayoutTx = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.prototype.getTxSignature = function() { + return /** @type {string} */ (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; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.GetBlocksRequest.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.GetBlocksRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetBlocksRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.GetBlocksRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetBlocksRequest.toObject = function(includeInstance, msg) { + var f, obj = { + fromBlockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0), + nonce: jspb.Message.getFieldWithDefault(msg, 2, 0), + senderNodeAddress: (f = msg.getSenderNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), + supportedCapabilitiesList: (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.GetBlocksRequest} + */ +proto.io.bisq.protobuffer.GetBlocksRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetBlocksRequest; + return proto.io.bisq.protobuffer.GetBlocksRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetBlocksRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetBlocksRequest} + */ +proto.io.bisq.protobuffer.GetBlocksRequest.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.setFromBlockHeight(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setNonce(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 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.GetBlocksRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetBlocksRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.GetBlocksRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetBlocksRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFromBlockHeight(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getNonce(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getSenderNodeAddress(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getSupportedCapabilitiesList(); + if (f.length > 0) { + writer.writePackedInt32( + 4, + f + ); + } +}; + + +/** + * optional int32 from_block_height = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.GetBlocksRequest.prototype.getFromBlockHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.GetBlocksRequest} returns this + */ +proto.io.bisq.protobuffer.GetBlocksRequest.prototype.setFromBlockHeight = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int32 nonce = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.GetBlocksRequest.prototype.getNonce = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.GetBlocksRequest} returns this + */ +proto.io.bisq.protobuffer.GetBlocksRequest.prototype.setNonce = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional NodeAddress sender_node_address = 3; + * @return {?proto.io.bisq.protobuffer.NodeAddress} + */ +proto.io.bisq.protobuffer.GetBlocksRequest.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.GetBlocksRequest} returns this +*/ +proto.io.bisq.protobuffer.GetBlocksRequest.prototype.setSenderNodeAddress = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.GetBlocksRequest} returns this + */ +proto.io.bisq.protobuffer.GetBlocksRequest.prototype.clearSenderNodeAddress = function() { + return this.setSenderNodeAddress(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.GetBlocksRequest.prototype.hasSenderNodeAddress = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * repeated int32 supported_capabilities = 4; + * @return {!Array} + */ +proto.io.bisq.protobuffer.GetBlocksRequest.prototype.getSupportedCapabilitiesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.GetBlocksRequest} returns this + */ +proto.io.bisq.protobuffer.GetBlocksRequest.prototype.setSupportedCapabilitiesList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.GetBlocksRequest} returns this + */ +proto.io.bisq.protobuffer.GetBlocksRequest.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.GetBlocksRequest} returns this + */ +proto.io.bisq.protobuffer.GetBlocksRequest.prototype.clearSupportedCapabilitiesList = function() { + return this.setSupportedCapabilitiesList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.GetBlocksResponse.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.GetBlocksResponse.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetBlocksResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.GetBlocksResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetBlocksResponse.toObject = function(includeInstance, msg) { + var f, obj = { + rawBlocksList: jspb.Message.toObjectList(msg.getRawBlocksList(), + proto.io.bisq.protobuffer.BaseBlock.toObject, includeInstance), + requestNonce: 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.GetBlocksResponse} + */ +proto.io.bisq.protobuffer.GetBlocksResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetBlocksResponse; + return proto.io.bisq.protobuffer.GetBlocksResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetBlocksResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetBlocksResponse} + */ +proto.io.bisq.protobuffer.GetBlocksResponse.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.BaseBlock; + reader.readMessage(value,proto.io.bisq.protobuffer.BaseBlock.deserializeBinaryFromReader); + msg.addRawBlocks(value); + break; + case 2: + 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.GetBlocksResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetBlocksResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.GetBlocksResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetBlocksResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRawBlocksList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.BaseBlock.serializeBinaryToWriter + ); + } + f = message.getRequestNonce(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } +}; + + +/** + * repeated BaseBlock raw_blocks = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.GetBlocksResponse.prototype.getRawBlocksList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.BaseBlock, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.GetBlocksResponse} returns this +*/ +proto.io.bisq.protobuffer.GetBlocksResponse.prototype.setRawBlocksList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.BaseBlock=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.BaseBlock} + */ +proto.io.bisq.protobuffer.GetBlocksResponse.prototype.addRawBlocks = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.BaseBlock, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.GetBlocksResponse} returns this + */ +proto.io.bisq.protobuffer.GetBlocksResponse.prototype.clearRawBlocksList = function() { + return this.setRawBlocksList([]); +}; + + +/** + * optional int32 request_nonce = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.GetBlocksResponse.prototype.getRequestNonce = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.GetBlocksResponse} returns this + */ +proto.io.bisq.protobuffer.GetBlocksResponse.prototype.setRequestNonce = 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.NewBlockBroadcastMessage.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.NewBlockBroadcastMessage.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.NewBlockBroadcastMessage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.NewBlockBroadcastMessage.toObject = function(includeInstance, msg) { + var f, obj = { + rawBlock: (f = msg.getRawBlock()) && proto.io.bisq.protobuffer.BaseBlock.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.NewBlockBroadcastMessage} + */ +proto.io.bisq.protobuffer.NewBlockBroadcastMessage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.NewBlockBroadcastMessage; + return proto.io.bisq.protobuffer.NewBlockBroadcastMessage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.NewBlockBroadcastMessage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.NewBlockBroadcastMessage} + */ +proto.io.bisq.protobuffer.NewBlockBroadcastMessage.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.BaseBlock; + reader.readMessage(value,proto.io.bisq.protobuffer.BaseBlock.deserializeBinaryFromReader); + msg.setRawBlock(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.NewBlockBroadcastMessage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.NewBlockBroadcastMessage.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.NewBlockBroadcastMessage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.NewBlockBroadcastMessage.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRawBlock(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.BaseBlock.serializeBinaryToWriter + ); + } +}; + + +/** + * optional BaseBlock raw_block = 1; + * @return {?proto.io.bisq.protobuffer.BaseBlock} + */ +proto.io.bisq.protobuffer.NewBlockBroadcastMessage.prototype.getRawBlock = function() { + return /** @type{?proto.io.bisq.protobuffer.BaseBlock} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.BaseBlock, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.BaseBlock|undefined} value + * @return {!proto.io.bisq.protobuffer.NewBlockBroadcastMessage} returns this +*/ +proto.io.bisq.protobuffer.NewBlockBroadcastMessage.prototype.setRawBlock = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.NewBlockBroadcastMessage} returns this + */ +proto.io.bisq.protobuffer.NewBlockBroadcastMessage.prototype.clearRawBlock = function() { + return this.setRawBlock(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NewBlockBroadcastMessage.prototype.hasRawBlock = 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.RepublishGovernanceDataRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.RepublishGovernanceDataRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.RepublishGovernanceDataRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.RepublishGovernanceDataRequest.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.RepublishGovernanceDataRequest} + */ +proto.io.bisq.protobuffer.RepublishGovernanceDataRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.RepublishGovernanceDataRequest; + return proto.io.bisq.protobuffer.RepublishGovernanceDataRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.RepublishGovernanceDataRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.RepublishGovernanceDataRequest} + */ +proto.io.bisq.protobuffer.RepublishGovernanceDataRequest.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.RepublishGovernanceDataRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.RepublishGovernanceDataRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.RepublishGovernanceDataRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.RepublishGovernanceDataRequest.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.NewDaoStateHashMessage.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.NewDaoStateHashMessage.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.NewDaoStateHashMessage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.NewDaoStateHashMessage.toObject = function(includeInstance, msg) { + var f, obj = { + stateHash: (f = msg.getStateHash()) && proto.io.bisq.protobuffer.DaoStateHash.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.NewDaoStateHashMessage} + */ +proto.io.bisq.protobuffer.NewDaoStateHashMessage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.NewDaoStateHashMessage; + return proto.io.bisq.protobuffer.NewDaoStateHashMessage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.NewDaoStateHashMessage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.NewDaoStateHashMessage} + */ +proto.io.bisq.protobuffer.NewDaoStateHashMessage.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.DaoStateHash; + reader.readMessage(value,proto.io.bisq.protobuffer.DaoStateHash.deserializeBinaryFromReader); + msg.setStateHash(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.NewDaoStateHashMessage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.NewDaoStateHashMessage.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.NewDaoStateHashMessage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.NewDaoStateHashMessage.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStateHash(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.DaoStateHash.serializeBinaryToWriter + ); + } +}; + + +/** + * optional DaoStateHash state_hash = 1; + * @return {?proto.io.bisq.protobuffer.DaoStateHash} + */ +proto.io.bisq.protobuffer.NewDaoStateHashMessage.prototype.getStateHash = function() { + return /** @type{?proto.io.bisq.protobuffer.DaoStateHash} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.DaoStateHash, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.DaoStateHash|undefined} value + * @return {!proto.io.bisq.protobuffer.NewDaoStateHashMessage} returns this +*/ +proto.io.bisq.protobuffer.NewDaoStateHashMessage.prototype.setStateHash = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.NewDaoStateHashMessage} returns this + */ +proto.io.bisq.protobuffer.NewDaoStateHashMessage.prototype.clearStateHash = function() { + return this.setStateHash(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NewDaoStateHashMessage.prototype.hasStateHash = 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.NewProposalStateHashMessage.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.NewProposalStateHashMessage.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.NewProposalStateHashMessage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.NewProposalStateHashMessage.toObject = function(includeInstance, msg) { + var f, obj = { + stateHash: (f = msg.getStateHash()) && proto.io.bisq.protobuffer.ProposalStateHash.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.NewProposalStateHashMessage} + */ +proto.io.bisq.protobuffer.NewProposalStateHashMessage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.NewProposalStateHashMessage; + return proto.io.bisq.protobuffer.NewProposalStateHashMessage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.NewProposalStateHashMessage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.NewProposalStateHashMessage} + */ +proto.io.bisq.protobuffer.NewProposalStateHashMessage.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.ProposalStateHash; + reader.readMessage(value,proto.io.bisq.protobuffer.ProposalStateHash.deserializeBinaryFromReader); + msg.setStateHash(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.NewProposalStateHashMessage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.NewProposalStateHashMessage.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.NewProposalStateHashMessage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.NewProposalStateHashMessage.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStateHash(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.ProposalStateHash.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ProposalStateHash state_hash = 1; + * @return {?proto.io.bisq.protobuffer.ProposalStateHash} + */ +proto.io.bisq.protobuffer.NewProposalStateHashMessage.prototype.getStateHash = function() { + return /** @type{?proto.io.bisq.protobuffer.ProposalStateHash} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ProposalStateHash, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.ProposalStateHash|undefined} value + * @return {!proto.io.bisq.protobuffer.NewProposalStateHashMessage} returns this +*/ +proto.io.bisq.protobuffer.NewProposalStateHashMessage.prototype.setStateHash = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.NewProposalStateHashMessage} returns this + */ +proto.io.bisq.protobuffer.NewProposalStateHashMessage.prototype.clearStateHash = function() { + return this.setStateHash(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NewProposalStateHashMessage.prototype.hasStateHash = 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.NewBlindVoteStateHashMessage.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage.toObject = function(includeInstance, msg) { + var f, obj = { + stateHash: (f = msg.getStateHash()) && proto.io.bisq.protobuffer.BlindVoteStateHash.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.NewBlindVoteStateHashMessage} + */ +proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage; + return proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage} + */ +proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage.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.BlindVoteStateHash; + reader.readMessage(value,proto.io.bisq.protobuffer.BlindVoteStateHash.deserializeBinaryFromReader); + msg.setStateHash(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStateHash(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.BlindVoteStateHash.serializeBinaryToWriter + ); + } +}; + + +/** + * optional BlindVoteStateHash state_hash = 1; + * @return {?proto.io.bisq.protobuffer.BlindVoteStateHash} + */ +proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage.prototype.getStateHash = function() { + return /** @type{?proto.io.bisq.protobuffer.BlindVoteStateHash} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.BlindVoteStateHash, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.BlindVoteStateHash|undefined} value + * @return {!proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage} returns this +*/ +proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage.prototype.setStateHash = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage} returns this + */ +proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage.prototype.clearStateHash = function() { + return this.setStateHash(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.NewBlindVoteStateHashMessage.prototype.hasStateHash = 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.GetDaoStateHashesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetDaoStateHashesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.GetDaoStateHashesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetDaoStateHashesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + height: jspb.Message.getFieldWithDefault(msg, 1, 0), + nonce: 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.GetDaoStateHashesRequest} + */ +proto.io.bisq.protobuffer.GetDaoStateHashesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetDaoStateHashesRequest; + return proto.io.bisq.protobuffer.GetDaoStateHashesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetDaoStateHashesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetDaoStateHashesRequest} + */ +proto.io.bisq.protobuffer.GetDaoStateHashesRequest.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.setHeight(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setNonce(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetDaoStateHashesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetDaoStateHashesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.GetDaoStateHashesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetDaoStateHashesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHeight(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getNonce(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } +}; + + +/** + * optional int32 height = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.GetDaoStateHashesRequest.prototype.getHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.GetDaoStateHashesRequest} returns this + */ +proto.io.bisq.protobuffer.GetDaoStateHashesRequest.prototype.setHeight = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int32 nonce = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.GetDaoStateHashesRequest.prototype.getNonce = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.GetDaoStateHashesRequest} returns this + */ +proto.io.bisq.protobuffer.GetDaoStateHashesRequest.prototype.setNonce = 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.GetProposalStateHashesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetProposalStateHashesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.GetProposalStateHashesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetProposalStateHashesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + height: jspb.Message.getFieldWithDefault(msg, 1, 0), + nonce: 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.GetProposalStateHashesRequest} + */ +proto.io.bisq.protobuffer.GetProposalStateHashesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetProposalStateHashesRequest; + return proto.io.bisq.protobuffer.GetProposalStateHashesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetProposalStateHashesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetProposalStateHashesRequest} + */ +proto.io.bisq.protobuffer.GetProposalStateHashesRequest.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.setHeight(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setNonce(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetProposalStateHashesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetProposalStateHashesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.GetProposalStateHashesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetProposalStateHashesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHeight(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getNonce(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } +}; + + +/** + * optional int32 height = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.GetProposalStateHashesRequest.prototype.getHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.GetProposalStateHashesRequest} returns this + */ +proto.io.bisq.protobuffer.GetProposalStateHashesRequest.prototype.setHeight = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int32 nonce = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.GetProposalStateHashesRequest.prototype.getNonce = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.GetProposalStateHashesRequest} returns this + */ +proto.io.bisq.protobuffer.GetProposalStateHashesRequest.prototype.setNonce = 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.GetBlindVoteStateHashesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + height: jspb.Message.getFieldWithDefault(msg, 1, 0), + nonce: 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.GetBlindVoteStateHashesRequest} + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest; + return proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest} + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest.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.setHeight(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setNonce(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHeight(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getNonce(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } +}; + + +/** + * optional int32 height = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest.prototype.getHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest} returns this + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest.prototype.setHeight = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int32 nonce = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest.prototype.getNonce = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest} returns this + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesRequest.prototype.setNonce = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.GetDaoStateHashesResponse.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.GetDaoStateHashesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetDaoStateHashesResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.GetDaoStateHashesResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetDaoStateHashesResponse.toObject = function(includeInstance, msg) { + var f, obj = { + stateHashesList: jspb.Message.toObjectList(msg.getStateHashesList(), + proto.io.bisq.protobuffer.DaoStateHash.toObject, includeInstance), + requestNonce: 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.GetDaoStateHashesResponse} + */ +proto.io.bisq.protobuffer.GetDaoStateHashesResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetDaoStateHashesResponse; + return proto.io.bisq.protobuffer.GetDaoStateHashesResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetDaoStateHashesResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetDaoStateHashesResponse} + */ +proto.io.bisq.protobuffer.GetDaoStateHashesResponse.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.DaoStateHash; + reader.readMessage(value,proto.io.bisq.protobuffer.DaoStateHash.deserializeBinaryFromReader); + msg.addStateHashes(value); + break; + case 2: + 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.GetDaoStateHashesResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetDaoStateHashesResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.GetDaoStateHashesResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetDaoStateHashesResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStateHashesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.DaoStateHash.serializeBinaryToWriter + ); + } + f = message.getRequestNonce(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } +}; + + +/** + * repeated DaoStateHash state_hashes = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.GetDaoStateHashesResponse.prototype.getStateHashesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.DaoStateHash, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.GetDaoStateHashesResponse} returns this +*/ +proto.io.bisq.protobuffer.GetDaoStateHashesResponse.prototype.setStateHashesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.DaoStateHash=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.DaoStateHash} + */ +proto.io.bisq.protobuffer.GetDaoStateHashesResponse.prototype.addStateHashes = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.DaoStateHash, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.GetDaoStateHashesResponse} returns this + */ +proto.io.bisq.protobuffer.GetDaoStateHashesResponse.prototype.clearStateHashesList = function() { + return this.setStateHashesList([]); +}; + + +/** + * optional int32 request_nonce = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.GetDaoStateHashesResponse.prototype.getRequestNonce = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.GetDaoStateHashesResponse} returns this + */ +proto.io.bisq.protobuffer.GetDaoStateHashesResponse.prototype.setRequestNonce = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.GetProposalStateHashesResponse.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.GetProposalStateHashesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetProposalStateHashesResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.GetProposalStateHashesResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetProposalStateHashesResponse.toObject = function(includeInstance, msg) { + var f, obj = { + stateHashesList: jspb.Message.toObjectList(msg.getStateHashesList(), + proto.io.bisq.protobuffer.ProposalStateHash.toObject, includeInstance), + requestNonce: 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.GetProposalStateHashesResponse} + */ +proto.io.bisq.protobuffer.GetProposalStateHashesResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetProposalStateHashesResponse; + return proto.io.bisq.protobuffer.GetProposalStateHashesResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetProposalStateHashesResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetProposalStateHashesResponse} + */ +proto.io.bisq.protobuffer.GetProposalStateHashesResponse.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.ProposalStateHash; + reader.readMessage(value,proto.io.bisq.protobuffer.ProposalStateHash.deserializeBinaryFromReader); + msg.addStateHashes(value); + break; + case 2: + 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.GetProposalStateHashesResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetProposalStateHashesResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.GetProposalStateHashesResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetProposalStateHashesResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStateHashesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.ProposalStateHash.serializeBinaryToWriter + ); + } + f = message.getRequestNonce(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } +}; + + +/** + * repeated ProposalStateHash state_hashes = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.GetProposalStateHashesResponse.prototype.getStateHashesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.ProposalStateHash, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.GetProposalStateHashesResponse} returns this +*/ +proto.io.bisq.protobuffer.GetProposalStateHashesResponse.prototype.setStateHashesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.ProposalStateHash=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.ProposalStateHash} + */ +proto.io.bisq.protobuffer.GetProposalStateHashesResponse.prototype.addStateHashes = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.ProposalStateHash, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.GetProposalStateHashesResponse} returns this + */ +proto.io.bisq.protobuffer.GetProposalStateHashesResponse.prototype.clearStateHashesList = function() { + return this.setStateHashesList([]); +}; + + +/** + * optional int32 request_nonce = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.GetProposalStateHashesResponse.prototype.getRequestNonce = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.GetProposalStateHashesResponse} returns this + */ +proto.io.bisq.protobuffer.GetProposalStateHashesResponse.prototype.setRequestNonce = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse.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.GetBlindVoteStateHashesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse.toObject = function(includeInstance, msg) { + var f, obj = { + stateHashesList: jspb.Message.toObjectList(msg.getStateHashesList(), + proto.io.bisq.protobuffer.BlindVoteStateHash.toObject, includeInstance), + requestNonce: 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.GetBlindVoteStateHashesResponse} + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse; + return proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse} + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse.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.BlindVoteStateHash; + reader.readMessage(value,proto.io.bisq.protobuffer.BlindVoteStateHash.deserializeBinaryFromReader); + msg.addStateHashes(value); + break; + case 2: + 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.GetBlindVoteStateHashesResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStateHashesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.BlindVoteStateHash.serializeBinaryToWriter + ); + } + f = message.getRequestNonce(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } +}; + + +/** + * repeated BlindVoteStateHash state_hashes = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse.prototype.getStateHashesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.BlindVoteStateHash, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse} returns this +*/ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse.prototype.setStateHashesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.BlindVoteStateHash=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.BlindVoteStateHash} + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse.prototype.addStateHashes = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.BlindVoteStateHash, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse} returns this + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse.prototype.clearStateHashesList = function() { + return this.setStateHashesList([]); +}; + + +/** + * optional int32 request_nonce = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse.prototype.getRequestNonce = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse} returns this + */ +proto.io.bisq.protobuffer.GetBlindVoteStateHashesResponse.prototype.setRequestNonce = 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.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} + */ +proto.io.bisq.protobuffer.PubKeyRing.prototype.getSignaturePubKeyBytes = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.PubKeyRing.prototype.getEncryptionPubKeyBytes = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.SealedAndSigned.prototype.getEncryptedSecretKey = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.SealedAndSigned.prototype.getEncryptedPayloadWithHmac = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.SealedAndSigned.prototype.getSignature = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.SealedAndSigned.prototype.getSigPublicKeyBytes = function() { + return /** @type {string} */ (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,5,6,7,8,9]]; + +/** + * @enum {number} + */ +proto.io.bisq.protobuffer.StoragePayload.MessageCase = { + MESSAGE_NOT_SET: 0, + ALERT: 1, + ARBITRATOR: 2, + MEDIATOR: 3, + FILTER: 4, + TRADE_STATISTICS: 5, + MAILBOX_STORAGE_PAYLOAD: 6, + OFFER_PAYLOAD: 7, + TEMP_PROPOSAL_PAYLOAD: 8, + REFUND_AGENT: 9 +}; + +/** + * @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), + tradeStatistics: (f = msg.getTradeStatistics()) && proto.io.bisq.protobuffer.TradeStatistics.toObject(includeInstance, f), + mailboxStoragePayload: (f = msg.getMailboxStoragePayload()) && proto.io.bisq.protobuffer.MailboxStoragePayload.toObject(includeInstance, f), + offerPayload: (f = msg.getOfferPayload()) && proto.io.bisq.protobuffer.OfferPayload.toObject(includeInstance, f), + tempProposalPayload: (f = msg.getTempProposalPayload()) && proto.io.bisq.protobuffer.TempProposalPayload.toObject(includeInstance, f), + 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 5: + var value = new proto.io.bisq.protobuffer.TradeStatistics; + reader.readMessage(value,proto.io.bisq.protobuffer.TradeStatistics.deserializeBinaryFromReader); + msg.setTradeStatistics(value); + break; + case 6: + var value = new proto.io.bisq.protobuffer.MailboxStoragePayload; + reader.readMessage(value,proto.io.bisq.protobuffer.MailboxStoragePayload.deserializeBinaryFromReader); + 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.TempProposalPayload; + reader.readMessage(value,proto.io.bisq.protobuffer.TempProposalPayload.deserializeBinaryFromReader); + msg.setTempProposalPayload(value); + break; + case 9: + 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.getTradeStatistics(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.io.bisq.protobuffer.TradeStatistics.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.getTempProposalPayload(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.io.bisq.protobuffer.TempProposalPayload.serializeBinaryToWriter + ); + } + f = message.getRefundAgent(); + if (f != null) { + writer.writeMessage( + 9, + 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 TradeStatistics trade_statistics = 5; + * @return {?proto.io.bisq.protobuffer.TradeStatistics} + */ +proto.io.bisq.protobuffer.StoragePayload.prototype.getTradeStatistics = function() { + return /** @type{?proto.io.bisq.protobuffer.TradeStatistics} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TradeStatistics, 5)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.TradeStatistics|undefined} value + * @return {!proto.io.bisq.protobuffer.StoragePayload} returns this +*/ +proto.io.bisq.protobuffer.StoragePayload.prototype.setTradeStatistics = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.io.bisq.protobuffer.StoragePayload.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.StoragePayload} returns this + */ +proto.io.bisq.protobuffer.StoragePayload.prototype.clearTradeStatistics = function() { + return this.setTradeStatistics(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.StoragePayload.prototype.hasTradeStatistics = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional MailboxStoragePayload mailbox_storage_payload = 6; + * @return {?proto.io.bisq.protobuffer.MailboxStoragePayload} + */ +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 TempProposalPayload temp_proposal_payload = 8; + * @return {?proto.io.bisq.protobuffer.TempProposalPayload} + */ +proto.io.bisq.protobuffer.StoragePayload.prototype.getTempProposalPayload = function() { + return /** @type{?proto.io.bisq.protobuffer.TempProposalPayload} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TempProposalPayload, 8)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.TempProposalPayload|undefined} value + * @return {!proto.io.bisq.protobuffer.StoragePayload} returns this +*/ +proto.io.bisq.protobuffer.StoragePayload.prototype.setTempProposalPayload = 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.clearTempProposalPayload = function() { + return this.setTempProposalPayload(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.StoragePayload.prototype.hasTempProposalPayload = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional RefundAgent refund_agent = 9; + * @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, 9)); +}; + + +/** + * @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, 9, 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, 9) != 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,5]]; + +/** + * @enum {number} + */ +proto.io.bisq.protobuffer.PersistableNetworkPayload.MessageCase = { + MESSAGE_NOT_SET: 0, + ACCOUNT_AGE_WITNESS: 1, + TRADE_STATISTICS2: 2, + PROPOSAL_PAYLOAD: 3, + BLIND_VOTE_PAYLOAD: 4, + SIGNED_WITNESS: 5 +}; + +/** + * @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), + proposalPayload: (f = msg.getProposalPayload()) && proto.io.bisq.protobuffer.ProposalPayload.toObject(includeInstance, f), + blindVotePayload: (f = msg.getBlindVotePayload()) && proto.io.bisq.protobuffer.BlindVotePayload.toObject(includeInstance, f), + signedWitness: (f = msg.getSignedWitness()) && proto.io.bisq.protobuffer.SignedWitness.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$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.ProposalPayload; + reader.readMessage(value,proto.io.bisq.protobuffer.ProposalPayload.deserializeBinaryFromReader); + msg.setProposalPayload(value); + break; + case 4: + var value = new proto.io.bisq.protobuffer.BlindVotePayload; + reader.readMessage(value,proto.io.bisq.protobuffer.BlindVotePayload.deserializeBinaryFromReader); + msg.setBlindVotePayload(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.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.getProposalPayload(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.io.bisq.protobuffer.ProposalPayload.serializeBinaryToWriter + ); + } + f = message.getBlindVotePayload(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.io.bisq.protobuffer.BlindVotePayload.serializeBinaryToWriter + ); + } + f = message.getSignedWitness(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.io.bisq.protobuffer.SignedWitness.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 ProposalPayload proposal_payload = 3; + * @return {?proto.io.bisq.protobuffer.ProposalPayload} + */ +proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.getProposalPayload = function() { + return /** @type{?proto.io.bisq.protobuffer.ProposalPayload} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ProposalPayload, 3)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.ProposalPayload|undefined} value + * @return {!proto.io.bisq.protobuffer.PersistableNetworkPayload} returns this +*/ +proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.setProposalPayload = 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.clearProposalPayload = function() { + return this.setProposalPayload(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.hasProposalPayload = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional BlindVotePayload blind_vote_payload = 4; + * @return {?proto.io.bisq.protobuffer.BlindVotePayload} + */ +proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.getBlindVotePayload = function() { + return /** @type{?proto.io.bisq.protobuffer.BlindVotePayload} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.BlindVotePayload, 4)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.BlindVotePayload|undefined} value + * @return {!proto.io.bisq.protobuffer.PersistableNetworkPayload} returns this +*/ +proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.setBlindVotePayload = 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.clearBlindVotePayload = function() { + return this.setBlindVotePayload(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PersistableNetworkPayload.prototype.hasBlindVotePayload = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional SignedWitness signed_witness = 5; + * @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, 5)); +}; + + +/** + * @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, 5, 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, 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.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} + */ +proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.getOwnerPubKeyBytes = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.getSignature = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.prototype.getReceiversPubKeyBytes = function() { + return /** @type {string} */ (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); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_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} + */ +proto.io.bisq.protobuffer.PrivateNotificationPayload.prototype.getSigPublicKeyBytes = function() { + return /** @type {string} */ (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) : [] + }; + + if (includeInstance) { + obj.$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; + 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); + } +}; + + +/** + * 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} + */ +proto.io.bisq.protobuffer.Alert.prototype.getOwnerPubKeyBytes = function() { + return /** @type {string} */ (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;}; + + + +/** + * 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} + */ +proto.io.bisq.protobuffer.Arbitrator.prototype.getRegistrationPubKey = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.Arbitrator.prototype.getBtcPubKey = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.Mediator.prototype.getRegistrationPubKey = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.RefundAgent.prototype.getRegistrationPubKey = function() { + return /** @type {string} */ (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,17,18,19,20,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.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 = { + bannedNodeAddressList: (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, + disableDao: jspb.Message.getBooleanFieldWithDefault(msg, 14, false), + disableDaoBelowVersion: jspb.Message.getFieldWithDefault(msg, 15, ""), + disableTradeBelowVersion: jspb.Message.getFieldWithDefault(msg, 16, ""), + mediatorsList: (f = jspb.Message.getRepeatedField(msg, 17)) == null ? undefined : f, + refundagentsList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f, + bannedsignerpubkeysList: (f = jspb.Message.getRepeatedField(msg, 19)) == null ? undefined : f, + btcFeeReceiverAddressesList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f, + creationDate: jspb.Message.getFieldWithDefault(msg, 21, 0), + signerPubKeyAsHex: jspb.Message.getFieldWithDefault(msg, 22, ""), + bannedprivilegeddevpubkeysList: (f = jspb.Message.getRepeatedField(msg, 23)) == null ? undefined : f, + disableAutoConf: jspb.Message.getBooleanFieldWithDefault(msg, 24, false) + }; + + if (includeInstance) { + obj.$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.addBannedNodeAddress(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 {boolean} */ (reader.readBool()); + msg.setDisableDao(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setDisableDaoBelowVersion(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.setDisableTradeBelowVersion(value); + break; + case 17: + var value = /** @type {string} */ (reader.readString()); + msg.addMediators(value); + break; + case 18: + var value = /** @type {string} */ (reader.readString()); + msg.addRefundagents(value); + break; + case 19: + var value = /** @type {string} */ (reader.readString()); + msg.addBannedsignerpubkeys(value); + break; + case 20: + var value = /** @type {string} */ (reader.readString()); + msg.addBtcFeeReceiverAddresses(value); + break; + case 21: + var value = /** @type {number} */ (reader.readInt64()); + msg.setCreationDate(value); + break; + case 22: + var value = /** @type {string} */ (reader.readString()); + msg.setSignerPubKeyAsHex(value); + break; + case 23: + var value = /** @type {string} */ (reader.readString()); + msg.addBannedprivilegeddevpubkeys(value); + break; + case 24: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDisableAutoConf(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.getBannedNodeAddressList(); + 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.getDisableDao(); + if (f) { + writer.writeBool( + 14, + f + ); + } + f = message.getDisableDaoBelowVersion(); + if (f.length > 0) { + writer.writeString( + 15, + f + ); + } + f = message.getDisableTradeBelowVersion(); + if (f.length > 0) { + writer.writeString( + 16, + f + ); + } + f = message.getMediatorsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 17, + f + ); + } + f = message.getRefundagentsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 18, + f + ); + } + f = message.getBannedsignerpubkeysList(); + if (f.length > 0) { + writer.writeRepeatedString( + 19, + f + ); + } + f = message.getBtcFeeReceiverAddressesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 20, + f + ); + } + f = message.getCreationDate(); + if (f !== 0) { + writer.writeInt64( + 21, + f + ); + } + f = message.getSignerPubKeyAsHex(); + if (f.length > 0) { + writer.writeString( + 22, + f + ); + } + f = message.getBannedprivilegeddevpubkeysList(); + if (f.length > 0) { + writer.writeRepeatedString( + 23, + f + ); + } + f = message.getDisableAutoConf(); + if (f) { + writer.writeBool( + 24, + f + ); + } +}; + + +/** + * repeated string banned_node_address = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.Filter.prototype.getBannedNodeAddressList = 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.setBannedNodeAddressList = 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.addBannedNodeAddress = 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.clearBannedNodeAddressList = function() { + return this.setBannedNodeAddressList([]); +}; + + +/** + * 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} + */ +proto.io.bisq.protobuffer.Filter.prototype.getOwnerPubKeyBytes = function() { + return /** @type {string} */ (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 bool disable_dao = 14; + * @return {boolean} + */ +proto.io.bisq.protobuffer.Filter.prototype.getDisableDao = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.Filter} returns this + */ +proto.io.bisq.protobuffer.Filter.prototype.setDisableDao = function(value) { + return jspb.Message.setProto3BooleanField(this, 14, value); +}; + + +/** + * optional string disable_dao_below_version = 15; + * @return {string} + */ +proto.io.bisq.protobuffer.Filter.prototype.getDisableDaoBelowVersion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.Filter} returns this + */ +proto.io.bisq.protobuffer.Filter.prototype.setDisableDaoBelowVersion = function(value) { + return jspb.Message.setProto3StringField(this, 15, value); +}; + + +/** + * optional string disable_trade_below_version = 16; + * @return {string} + */ +proto.io.bisq.protobuffer.Filter.prototype.getDisableTradeBelowVersion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); +}; + + +/** + * @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, 16, value); +}; + + +/** + * repeated string mediators = 17; + * @return {!Array} + */ +proto.io.bisq.protobuffer.Filter.prototype.getMediatorsList = 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.setMediatorsList = 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.addMediators = 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.clearMediatorsList = function() { + return this.setMediatorsList([]); +}; + + +/** + * repeated string refundAgents = 18; + * @return {!Array} + */ +proto.io.bisq.protobuffer.Filter.prototype.getRefundagentsList = 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.setRefundagentsList = 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.addRefundagents = 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.clearRefundagentsList = function() { + return this.setRefundagentsList([]); +}; + + +/** + * repeated string bannedSignerPubKeys = 19; + * @return {!Array} + */ +proto.io.bisq.protobuffer.Filter.prototype.getBannedsignerpubkeysList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 19)); +}; + + +/** + * @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, 19, 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, 19, 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 = 20; + * @return {!Array} + */ +proto.io.bisq.protobuffer.Filter.prototype.getBtcFeeReceiverAddressesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 20)); +}; + + +/** + * @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, 20, 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, 20, 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 = 21; + * @return {number} + */ +proto.io.bisq.protobuffer.Filter.prototype.getCreationDate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 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, 21, value); +}; + + +/** + * optional string signer_pub_key_as_hex = 22; + * @return {string} + */ +proto.io.bisq.protobuffer.Filter.prototype.getSignerPubKeyAsHex = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "")); +}; + + +/** + * @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, 22, value); +}; + + +/** + * repeated string bannedPrivilegedDevPubKeys = 23; + * @return {!Array} + */ +proto.io.bisq.protobuffer.Filter.prototype.getBannedprivilegeddevpubkeysList = 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.setBannedprivilegeddevpubkeysList = 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.addBannedprivilegeddevpubkeys = 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.clearBannedprivilegeddevpubkeysList = function() { + return this.setBannedprivilegeddevpubkeysList([]); +}; + + +/** + * optional bool disable_auto_conf = 24; + * @return {boolean} + */ +proto.io.bisq.protobuffer.Filter.prototype.getDisableAutoConf = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 24, 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, 24, 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.TradeStatistics.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.TradeStatistics.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.TradeStatistics} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TradeStatistics.toObject = function(includeInstance, msg) { + var f, obj = { + baseCurrency: jspb.Message.getFieldWithDefault(msg, 1, ""), + counterCurrency: jspb.Message.getFieldWithDefault(msg, 2, ""), + direction: jspb.Message.getFieldWithDefault(msg, 3, 0), + tradePrice: jspb.Message.getFieldWithDefault(msg, 4, 0), + tradeAmount: jspb.Message.getFieldWithDefault(msg, 5, 0), + tradeDate: jspb.Message.getFieldWithDefault(msg, 6, 0), + paymentMethodId: jspb.Message.getFieldWithDefault(msg, 7, ""), + offerDate: jspb.Message.getFieldWithDefault(msg, 8, 0), + offerUseMarketBasedPrice: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), + offerMarketPriceMargin: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0), + offerAmount: jspb.Message.getFieldWithDefault(msg, 11, 0), + offerMinAmount: jspb.Message.getFieldWithDefault(msg, 12, 0), + offerId: jspb.Message.getFieldWithDefault(msg, 13, ""), + depositTxId: jspb.Message.getFieldWithDefault(msg, 14, ""), + signaturePubKeyBytes: msg.getSignaturePubKeyBytes_asB64(), + extraDataMap: (f = msg.getExtraDataMap()) ? f.toObject(includeInstance, undefined) : [] + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.io.bisq.protobuffer.TradeStatistics} + */ +proto.io.bisq.protobuffer.TradeStatistics.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.TradeStatistics; + return proto.io.bisq.protobuffer.TradeStatistics.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.TradeStatistics} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.TradeStatistics} + */ +proto.io.bisq.protobuffer.TradeStatistics.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setBaseCurrency(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setCounterCurrency(value); + break; + case 3: + var value = /** @type {!proto.io.bisq.protobuffer.OfferPayload.Direction} */ (reader.readEnum()); + msg.setDirection(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setTradePrice(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt64()); + msg.setTradeAmount(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt64()); + msg.setTradeDate(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setPaymentMethodId(value); + break; + case 8: + var value = /** @type {number} */ (reader.readInt64()); + msg.setOfferDate(value); + break; + case 9: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setOfferUseMarketBasedPrice(value); + break; + case 10: + var value = /** @type {number} */ (reader.readDouble()); + msg.setOfferMarketPriceMargin(value); + break; + case 11: + var value = /** @type {number} */ (reader.readInt64()); + msg.setOfferAmount(value); + break; + case 12: + var value = /** @type {number} */ (reader.readInt64()); + msg.setOfferMinAmount(value); + break; + case 13: + var value = /** @type {string} */ (reader.readString()); + msg.setOfferId(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.setDepositTxId(value); + break; + case 15: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSignaturePubKeyBytes(value); + break; + case 16: + var value = msg.getExtraDataMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.TradeStatistics.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.TradeStatistics} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TradeStatistics.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBaseCurrency(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getCounterCurrency(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDirection(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } + f = message.getTradePrice(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } + f = message.getTradeAmount(); + if (f !== 0) { + writer.writeInt64( + 5, + f + ); + } + f = message.getTradeDate(); + if (f !== 0) { + writer.writeInt64( + 6, + f + ); + } + f = message.getPaymentMethodId(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getOfferDate(); + if (f !== 0) { + writer.writeInt64( + 8, + f + ); + } + f = message.getOfferUseMarketBasedPrice(); + if (f) { + writer.writeBool( + 9, + f + ); + } + f = message.getOfferMarketPriceMargin(); + if (f !== 0.0) { + writer.writeDouble( + 10, + f + ); + } + f = message.getOfferAmount(); + if (f !== 0) { + writer.writeInt64( + 11, + f + ); + } + f = message.getOfferMinAmount(); + if (f !== 0) { + writer.writeInt64( + 12, + f + ); + } + f = message.getOfferId(); + if (f.length > 0) { + writer.writeString( + 13, + f + ); + } + f = message.getDepositTxId(); + if (f.length > 0) { + writer.writeString( + 14, + f + ); + } + f = message.getSignaturePubKeyBytes_asU8(); + if (f.length > 0) { + writer.writeBytes( + 15, + f + ); + } + f = message.getExtraDataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(16, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } +}; + + +/** + * optional string base_currency = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.getBaseCurrency = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.setBaseCurrency = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string counter_currency = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.getCounterCurrency = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics.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.TradeStatistics.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.TradeStatistics} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.setDirection = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + +/** + * optional int64 trade_price = 4; + * @return {number} + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.getTradePrice = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.setTradePrice = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional int64 trade_amount = 5; + * @return {number} + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.getTradeAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.setTradeAmount = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional int64 trade_date = 6; + * @return {number} + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.getTradeDate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.setTradeDate = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional string payment_method_id = 7; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.getPaymentMethodId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.setPaymentMethodId = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + +/** + * optional int64 offer_date = 8; + * @return {number} + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.getOfferDate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.setOfferDate = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional bool offer_use_market_based_price = 9; + * @return {boolean} + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.getOfferUseMarketBasedPrice = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.setOfferUseMarketBasedPrice = function(value) { + return jspb.Message.setProto3BooleanField(this, 9, value); +}; + + +/** + * optional double offer_market_price_margin = 10; + * @return {number} + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.getOfferMarketPriceMargin = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.setOfferMarketPriceMargin = function(value) { + return jspb.Message.setProto3FloatField(this, 10, value); +}; + + +/** + * optional int64 offer_amount = 11; + * @return {number} + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.getOfferAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.setOfferAmount = function(value) { + return jspb.Message.setProto3IntField(this, 11, value); +}; + + +/** + * optional int64 offer_min_amount = 12; + * @return {number} + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.getOfferMinAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.setOfferMinAmount = function(value) { + return jspb.Message.setProto3IntField(this, 12, value); +}; + + +/** + * optional string offer_id = 13; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.getOfferId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.setOfferId = function(value) { + return jspb.Message.setProto3StringField(this, 13, value); +}; + + +/** + * optional string deposit_tx_id = 14; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.getDepositTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.setDepositTxId = function(value) { + return jspb.Message.setProto3StringField(this, 14, value); +}; + + +/** + * optional bytes signature_pub_key_bytes = 15; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.getSignaturePubKeyBytes = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); +}; + + +/** + * optional bytes signature_pub_key_bytes = 15; + * This is a type-conversion wrapper around `getSignaturePubKeyBytes()` + * @return {string} + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.getSignaturePubKeyBytes_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSignaturePubKeyBytes())); +}; + + +/** + * optional bytes signature_pub_key_bytes = 15; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSignaturePubKeyBytes()` + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.getSignaturePubKeyBytes_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSignaturePubKeyBytes())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.setSignaturePubKeyBytes = function(value) { + return jspb.Message.setProto3BytesField(this, 15, value); +}; + + +/** + * map extra_data = 16; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.getExtraDataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 16, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.io.bisq.protobuffer.TradeStatistics} returns this + */ +proto.io.bisq.protobuffer.TradeStatistics.prototype.clearExtraDataMap = function() { + this.getExtraDataMap().clear(); + return this;}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_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, ""), + hash: msg.getHash_asB64(), + extraDataMap: (f = msg.getExtraDataMap()) ? f.toObject(includeInstance, undefined) : [], + makerDepositTxId: jspb.Message.getFieldWithDefault(msg, 1000, ""), + takerDepositTxId: jspb.Message.getFieldWithDefault(msg, 1001, "") + }; + + if (includeInstance) { + obj.$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 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 1000: + var value = /** @type {string} */ (reader.readString()); + msg.setMakerDepositTxId(value); + break; + case 1001: + 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.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( + 1000, + f + ); + } + f = message.getTakerDepositTxId(); + if (f.length > 0) { + writer.writeString( + 1001, + 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 bytes hash = 15; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeStatistics2.prototype.getHash = function() { + return /** @type {string} */ (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 = 1000; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeStatistics2.prototype.getMakerDepositTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1000, "")); +}; + + +/** + * @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, 1000, value); +}; + + +/** + * optional string taker_deposit_tx_id = 1001; + * @return {string} + */ +proto.io.bisq.protobuffer.TradeStatistics2.prototype.getTakerDepositTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1001, "")); +}; + + +/** + * @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, 1001, 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} + */ +proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.getSenderPubKeyForAddOperationBytes = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.getOwnerPubKeyBytes = function() { + return /** @type {string} */ (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_ = [13,14,19,21]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_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, ""), + arbitratorNodeAddressesList: jspb.Message.toObjectList(msg.getArbitratorNodeAddressesList(), + proto.io.bisq.protobuffer.NodeAddress.toObject, includeInstance), + mediatorNodeAddressesList: jspb.Message.toObjectList(msg.getMediatorNodeAddressesList(), + proto.io.bisq.protobuffer.NodeAddress.toObject, includeInstance), + paymentMethodId: jspb.Message.getFieldWithDefault(msg, 15, ""), + makerPaymentAccountId: jspb.Message.getFieldWithDefault(msg, 16, ""), + offerFeePaymentTxId: jspb.Message.getFieldWithDefault(msg, 17, ""), + countryCode: jspb.Message.getFieldWithDefault(msg, 18, ""), + acceptedCountryCodesList: (f = jspb.Message.getRepeatedField(msg, 19)) == null ? undefined : f, + bankId: jspb.Message.getFieldWithDefault(msg, 20, ""), + acceptedBankIdsList: (f = jspb.Message.getRepeatedField(msg, 21)) == null ? undefined : f, + versionNr: jspb.Message.getFieldWithDefault(msg, 22, ""), + blockHeightAtOfferCreation: jspb.Message.getFieldWithDefault(msg, 23, 0), + txFee: jspb.Message.getFieldWithDefault(msg, 24, 0), + makerFee: jspb.Message.getFieldWithDefault(msg, 25, 0), + isCurrencyForMakerFeeBtc: jspb.Message.getBooleanFieldWithDefault(msg, 26, false), + buyerSecurityDeposit: jspb.Message.getFieldWithDefault(msg, 27, 0), + sellerSecurityDeposit: jspb.Message.getFieldWithDefault(msg, 28, 0), + maxTradeLimit: jspb.Message.getFieldWithDefault(msg, 29, 0), + maxTradePeriod: jspb.Message.getFieldWithDefault(msg, 30, 0), + useAutoClose: jspb.Message.getBooleanFieldWithDefault(msg, 31, false), + useReOpenAfterAutoClose: jspb.Message.getBooleanFieldWithDefault(msg, 32, false), + lowerClosePrice: jspb.Message.getFieldWithDefault(msg, 33, 0), + upperClosePrice: jspb.Message.getFieldWithDefault(msg, 34, 0), + isPrivateOffer: jspb.Message.getBooleanFieldWithDefault(msg, 35, false), + hashOfChallenge: jspb.Message.getFieldWithDefault(msg, 36, ""), + extraDataMap: (f = msg.getExtraDataMap()) ? f.toObject(includeInstance, undefined) : [], + protocolVersion: jspb.Message.getFieldWithDefault(msg, 38, 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.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 = new proto.io.bisq.protobuffer.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); + msg.addArbitratorNodeAddresses(value); + break; + case 14: + var value = new proto.io.bisq.protobuffer.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); + msg.addMediatorNodeAddresses(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setPaymentMethodId(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.setMakerPaymentAccountId(value); + break; + case 17: + var value = /** @type {string} */ (reader.readString()); + msg.setOfferFeePaymentTxId(value); + break; + case 18: + var value = /** @type {string} */ (reader.readString()); + msg.setCountryCode(value); + break; + case 19: + var value = /** @type {string} */ (reader.readString()); + msg.addAcceptedCountryCodes(value); + break; + case 20: + var value = /** @type {string} */ (reader.readString()); + msg.setBankId(value); + break; + case 21: + var value = /** @type {string} */ (reader.readString()); + msg.addAcceptedBankIds(value); + break; + case 22: + var value = /** @type {string} */ (reader.readString()); + msg.setVersionNr(value); + break; + case 23: + var value = /** @type {number} */ (reader.readInt64()); + msg.setBlockHeightAtOfferCreation(value); + break; + case 24: + var value = /** @type {number} */ (reader.readInt64()); + msg.setTxFee(value); + break; + case 25: + var value = /** @type {number} */ (reader.readInt64()); + msg.setMakerFee(value); + break; + case 26: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsCurrencyForMakerFeeBtc(value); + break; + case 27: + var value = /** @type {number} */ (reader.readInt64()); + msg.setBuyerSecurityDeposit(value); + break; + case 28: + var value = /** @type {number} */ (reader.readInt64()); + msg.setSellerSecurityDeposit(value); + break; + case 29: + var value = /** @type {number} */ (reader.readInt64()); + msg.setMaxTradeLimit(value); + break; + case 30: + var value = /** @type {number} */ (reader.readInt64()); + msg.setMaxTradePeriod(value); + break; + case 31: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setUseAutoClose(value); + break; + case 32: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setUseReOpenAfterAutoClose(value); + break; + case 33: + var value = /** @type {number} */ (reader.readInt64()); + msg.setLowerClosePrice(value); + break; + case 34: + var value = /** @type {number} */ (reader.readInt64()); + msg.setUpperClosePrice(value); + break; + case 35: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsPrivateOffer(value); + break; + case 36: + var value = /** @type {string} */ (reader.readString()); + msg.setHashOfChallenge(value); + break; + case 37: + 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 38: + var value = /** @type {number} */ (reader.readInt32()); + msg.setProtocolVersion(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.getArbitratorNodeAddressesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 13, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getMediatorNodeAddressesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 14, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getPaymentMethodId(); + if (f.length > 0) { + writer.writeString( + 15, + f + ); + } + f = message.getMakerPaymentAccountId(); + if (f.length > 0) { + writer.writeString( + 16, + f + ); + } + f = message.getOfferFeePaymentTxId(); + if (f.length > 0) { + writer.writeString( + 17, + f + ); + } + f = message.getCountryCode(); + if (f.length > 0) { + writer.writeString( + 18, + f + ); + } + f = message.getAcceptedCountryCodesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 19, + f + ); + } + f = message.getBankId(); + if (f.length > 0) { + writer.writeString( + 20, + f + ); + } + f = message.getAcceptedBankIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 21, + f + ); + } + f = message.getVersionNr(); + if (f.length > 0) { + writer.writeString( + 22, + f + ); + } + f = message.getBlockHeightAtOfferCreation(); + if (f !== 0) { + writer.writeInt64( + 23, + f + ); + } + f = message.getTxFee(); + if (f !== 0) { + writer.writeInt64( + 24, + f + ); + } + f = message.getMakerFee(); + if (f !== 0) { + writer.writeInt64( + 25, + f + ); + } + f = message.getIsCurrencyForMakerFeeBtc(); + if (f) { + writer.writeBool( + 26, + f + ); + } + f = message.getBuyerSecurityDeposit(); + if (f !== 0) { + writer.writeInt64( + 27, + f + ); + } + f = message.getSellerSecurityDeposit(); + if (f !== 0) { + writer.writeInt64( + 28, + f + ); + } + f = message.getMaxTradeLimit(); + if (f !== 0) { + writer.writeInt64( + 29, + f + ); + } + f = message.getMaxTradePeriod(); + if (f !== 0) { + writer.writeInt64( + 30, + f + ); + } + f = message.getUseAutoClose(); + if (f) { + writer.writeBool( + 31, + f + ); + } + f = message.getUseReOpenAfterAutoClose(); + if (f) { + writer.writeBool( + 32, + f + ); + } + f = message.getLowerClosePrice(); + if (f !== 0) { + writer.writeInt64( + 33, + f + ); + } + f = message.getUpperClosePrice(); + if (f !== 0) { + writer.writeInt64( + 34, + f + ); + } + f = message.getIsPrivateOffer(); + if (f) { + writer.writeBool( + 35, + f + ); + } + f = message.getHashOfChallenge(); + if (f.length > 0) { + writer.writeString( + 36, + f + ); + } + f = message.getExtraDataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(37, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getProtocolVersion(); + if (f !== 0) { + writer.writeInt32( + 38, + 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); +}; + + +/** + * repeated NodeAddress arbitrator_node_addresses = 13; + * @return {!Array} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getArbitratorNodeAddressesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 13)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this +*/ +proto.io.bisq.protobuffer.OfferPayload.prototype.setArbitratorNodeAddressesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 13, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.NodeAddress=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.NodeAddress} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.addArbitratorNodeAddresses = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.io.bisq.protobuffer.NodeAddress, 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.clearArbitratorNodeAddressesList = function() { + return this.setArbitratorNodeAddressesList([]); +}; + + +/** + * repeated NodeAddress mediator_node_addresses = 14; + * @return {!Array} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getMediatorNodeAddressesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 14)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this +*/ +proto.io.bisq.protobuffer.OfferPayload.prototype.setMediatorNodeAddressesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 14, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.NodeAddress=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.NodeAddress} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.addMediatorNodeAddresses = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.io.bisq.protobuffer.NodeAddress, 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.clearMediatorNodeAddressesList = function() { + return this.setMediatorNodeAddressesList([]); +}; + + +/** + * optional string payment_method_id = 15; + * @return {string} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getPaymentMethodId = 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.setPaymentMethodId = function(value) { + return jspb.Message.setProto3StringField(this, 15, value); +}; + + +/** + * optional string maker_payment_account_id = 16; + * @return {string} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getMakerPaymentAccountId = 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.setMakerPaymentAccountId = function(value) { + return jspb.Message.setProto3StringField(this, 16, value); +}; + + +/** + * optional string offer_fee_payment_tx_id = 17; + * @return {string} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getOfferFeePaymentTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); +}; + + +/** + * @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, 17, value); +}; + + +/** + * optional string country_code = 18; + * @return {string} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getCountryCode = 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.setCountryCode = function(value) { + return jspb.Message.setProto3StringField(this, 18, value); +}; + + +/** + * repeated string accepted_country_codes = 19; + * @return {!Array} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getAcceptedCountryCodesList = 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.setAcceptedCountryCodesList = 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.addAcceptedCountryCodes = 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.clearAcceptedCountryCodesList = function() { + return this.setAcceptedCountryCodesList([]); +}; + + +/** + * optional string bank_id = 20; + * @return {string} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getBankId = 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.setBankId = function(value) { + return jspb.Message.setProto3StringField(this, 20, value); +}; + + +/** + * repeated string accepted_bank_ids = 21; + * @return {!Array} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getAcceptedBankIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 21)); +}; + + +/** + * @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, 21, 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, 21, 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 = 22; + * @return {string} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getVersionNr = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "")); +}; + + +/** + * @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, 22, value); +}; + + +/** + * optional int64 block_height_at_offer_creation = 23; + * @return {number} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getBlockHeightAtOfferCreation = 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.setBlockHeightAtOfferCreation = function(value) { + return jspb.Message.setProto3IntField(this, 23, value); +}; + + +/** + * optional int64 tx_fee = 24; + * @return {number} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getTxFee = 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.setTxFee = function(value) { + return jspb.Message.setProto3IntField(this, 24, value); +}; + + +/** + * optional int64 maker_fee = 25; + * @return {number} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getMakerFee = 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.setMakerFee = function(value) { + return jspb.Message.setProto3IntField(this, 25, value); +}; + + +/** + * optional bool is_currency_for_maker_fee_btc = 26; + * @return {boolean} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getIsCurrencyForMakerFeeBtc = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 26, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.OfferPayload} returns this + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.setIsCurrencyForMakerFeeBtc = function(value) { + return jspb.Message.setProto3BooleanField(this, 26, value); +}; + + +/** + * optional int64 buyer_security_deposit = 27; + * @return {number} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getBuyerSecurityDeposit = 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.setBuyerSecurityDeposit = function(value) { + return jspb.Message.setProto3IntField(this, 27, value); +}; + + +/** + * optional int64 seller_security_deposit = 28; + * @return {number} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getSellerSecurityDeposit = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 28, 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, 28, value); +}; + + +/** + * optional int64 max_trade_limit = 29; + * @return {number} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getMaxTradeLimit = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 29, 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, 29, value); +}; + + +/** + * optional int64 max_trade_period = 30; + * @return {number} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getMaxTradePeriod = 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.setMaxTradePeriod = function(value) { + return jspb.Message.setProto3IntField(this, 30, value); +}; + + +/** + * optional bool use_auto_close = 31; + * @return {boolean} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getUseAutoClose = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 31, 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, 31, value); +}; + + +/** + * optional bool use_re_open_after_auto_close = 32; + * @return {boolean} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getUseReOpenAfterAutoClose = 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.setUseReOpenAfterAutoClose = function(value) { + return jspb.Message.setProto3BooleanField(this, 32, value); +}; + + +/** + * optional int64 lower_close_price = 33; + * @return {number} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getLowerClosePrice = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 33, 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, 33, value); +}; + + +/** + * optional int64 upper_close_price = 34; + * @return {number} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getUpperClosePrice = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 34, 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, 34, value); +}; + + +/** + * optional bool is_private_offer = 35; + * @return {boolean} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getIsPrivateOffer = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 35, 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, 35, value); +}; + + +/** + * optional string hash_of_challenge = 36; + * @return {string} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getHashOfChallenge = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 36, "")); +}; + + +/** + * @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, 36, value); +}; + + +/** + * map extra_data = 37; + * @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, 37, 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 = 38; + * @return {number} + */ +proto.io.bisq.protobuffer.OfferPayload.prototype.getProtocolVersion = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 38, 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, 38, 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.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} + */ +proto.io.bisq.protobuffer.AccountAgeWitness.prototype.getHash = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.SignedWitness.prototype.getAccountAgeWitnessHash = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.SignedWitness.prototype.getSignature = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.SignedWitness.prototype.getSignerPubKey = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.SignedWitness.prototype.getWitnessOwnerPubKey = function() { + return /** @type {string} */ (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_ = [20]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_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), + disputeOpenerIsBuyer: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + disputeOpenerIsMaker: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + openingDate: jspb.Message.getFieldWithDefault(msg, 6, 0), + traderPubKeyRing: (f = msg.getTraderPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), + tradeDate: jspb.Message.getFieldWithDefault(msg, 8, 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, 13, ""), + payoutTxId: jspb.Message.getFieldWithDefault(msg, 14, ""), + contractAsJson: jspb.Message.getFieldWithDefault(msg, 15, ""), + makerContractSignature: jspb.Message.getFieldWithDefault(msg, 16, ""), + takerContractSignature: jspb.Message.getFieldWithDefault(msg, 17, ""), + agentPubKeyRing: (f = msg.getAgentPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), + isSupportTicket: jspb.Message.getBooleanFieldWithDefault(msg, 19, false), + chatMessageList: jspb.Message.toObjectList(msg.getChatMessageList(), + proto.io.bisq.protobuffer.ChatMessage.toObject, includeInstance), + isClosed: jspb.Message.getBooleanFieldWithDefault(msg, 21, false), + disputeResult: (f = msg.getDisputeResult()) && proto.io.bisq.protobuffer.DisputeResult.toObject(includeInstance, f), + disputePayoutTxId: jspb.Message.getFieldWithDefault(msg, 23, ""), + supportType: jspb.Message.getFieldWithDefault(msg, 24, 0), + mediatorsDisputeResult: jspb.Message.getFieldWithDefault(msg, 25, ""), + delayedPayoutTxId: jspb.Message.getFieldWithDefault(msg, 26, ""), + donationAddressOfDelayedPayoutTx: jspb.Message.getFieldWithDefault(msg, 27, ""), + isOpener: jspb.Message.getBooleanFieldWithDefault(msg, 28, false) + }; + + if (includeInstance) { + obj.$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.setDisputeOpenerIsBuyer(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDisputeOpenerIsMaker(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt64()); + msg.setOpeningDate(value); + break; + case 7: + var value = new proto.io.bisq.protobuffer.PubKeyRing; + reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); + msg.setTraderPubKeyRing(value); + break; + case 8: + var value = /** @type {number} */ (reader.readInt64()); + msg.setTradeDate(value); + break; + case 9: + var value = new proto.io.bisq.protobuffer.Contract; + reader.readMessage(value,proto.io.bisq.protobuffer.Contract.deserializeBinaryFromReader); + msg.setContract(value); + break; + case 10: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setContractHash(value); + break; + case 11: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setDepositTxSerialized(value); + break; + case 12: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setPayoutTxSerialized(value); + break; + case 13: + var value = /** @type {string} */ (reader.readString()); + msg.setDepositTxId(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.setPayoutTxId(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setContractAsJson(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.setMakerContractSignature(value); + break; + case 17: + var value = /** @type {string} */ (reader.readString()); + msg.setTakerContractSignature(value); + break; + case 18: + var value = new proto.io.bisq.protobuffer.PubKeyRing; + reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); + msg.setAgentPubKeyRing(value); + break; + case 19: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsSupportTicket(value); + break; + case 20: + var value = new proto.io.bisq.protobuffer.ChatMessage; + reader.readMessage(value,proto.io.bisq.protobuffer.ChatMessage.deserializeBinaryFromReader); + msg.addChatMessage(value); + break; + case 21: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsClosed(value); + break; + case 22: + var value = new proto.io.bisq.protobuffer.DisputeResult; + reader.readMessage(value,proto.io.bisq.protobuffer.DisputeResult.deserializeBinaryFromReader); + msg.setDisputeResult(value); + break; + case 23: + var value = /** @type {string} */ (reader.readString()); + msg.setDisputePayoutTxId(value); + break; + case 24: + var value = /** @type {!proto.io.bisq.protobuffer.SupportType} */ (reader.readEnum()); + msg.setSupportType(value); + break; + case 25: + var value = /** @type {string} */ (reader.readString()); + msg.setMediatorsDisputeResult(value); + break; + case 26: + var value = /** @type {string} */ (reader.readString()); + msg.setDelayedPayoutTxId(value); + break; + case 27: + var value = /** @type {string} */ (reader.readString()); + msg.setDonationAddressOfDelayedPayoutTx(value); + break; + case 28: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsOpener(value); + 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.getDisputeOpenerIsBuyer(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getDisputeOpenerIsMaker(); + if (f) { + writer.writeBool( + 5, + f + ); + } + f = message.getOpeningDate(); + if (f !== 0) { + writer.writeInt64( + 6, + f + ); + } + f = message.getTraderPubKeyRing(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter + ); + } + f = message.getTradeDate(); + if (f !== 0) { + writer.writeInt64( + 8, + f + ); + } + f = message.getContract(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.io.bisq.protobuffer.Contract.serializeBinaryToWriter + ); + } + f = message.getContractHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 10, + f + ); + } + f = message.getDepositTxSerialized_asU8(); + if (f.length > 0) { + writer.writeBytes( + 11, + f + ); + } + f = message.getPayoutTxSerialized_asU8(); + if (f.length > 0) { + writer.writeBytes( + 12, + f + ); + } + f = message.getDepositTxId(); + if (f.length > 0) { + writer.writeString( + 13, + f + ); + } + f = message.getPayoutTxId(); + if (f.length > 0) { + writer.writeString( + 14, + f + ); + } + f = message.getContractAsJson(); + if (f.length > 0) { + writer.writeString( + 15, + f + ); + } + f = message.getMakerContractSignature(); + if (f.length > 0) { + writer.writeString( + 16, + f + ); + } + f = message.getTakerContractSignature(); + if (f.length > 0) { + writer.writeString( + 17, + f + ); + } + f = message.getAgentPubKeyRing(); + if (f != null) { + writer.writeMessage( + 18, + f, + proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter + ); + } + f = message.getIsSupportTicket(); + if (f) { + writer.writeBool( + 19, + f + ); + } + f = message.getChatMessageList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 20, + f, + proto.io.bisq.protobuffer.ChatMessage.serializeBinaryToWriter + ); + } + f = message.getIsClosed(); + if (f) { + writer.writeBool( + 21, + f + ); + } + f = message.getDisputeResult(); + if (f != null) { + writer.writeMessage( + 22, + f, + proto.io.bisq.protobuffer.DisputeResult.serializeBinaryToWriter + ); + } + f = message.getDisputePayoutTxId(); + if (f.length > 0) { + writer.writeString( + 23, + f + ); + } + f = message.getSupportType(); + if (f !== 0.0) { + writer.writeEnum( + 24, + f + ); + } + f = message.getMediatorsDisputeResult(); + if (f.length > 0) { + writer.writeString( + 25, + f + ); + } + f = message.getDelayedPayoutTxId(); + if (f.length > 0) { + writer.writeString( + 26, + f + ); + } + f = message.getDonationAddressOfDelayedPayoutTx(); + if (f.length > 0) { + writer.writeString( + 27, + f + ); + } + f = message.getIsOpener(); + if (f) { + writer.writeBool( + 28, + f + ); + } +}; + + +/** + * 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 dispute_opener_is_buyer = 4; + * @return {boolean} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getDisputeOpenerIsBuyer = 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.setDisputeOpenerIsBuyer = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * optional bool dispute_opener_is_maker = 5; + * @return {boolean} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getDisputeOpenerIsMaker = 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.setDisputeOpenerIsMaker = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); +}; + + +/** + * optional int64 opening_date = 6; + * @return {number} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getOpeningDate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 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, 6, value); +}; + + +/** + * optional PubKeyRing trader_pub_key_ring = 7; + * @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, 7)); +}; + + +/** + * @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, 7, 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, 7) != null; +}; + + +/** + * optional int64 trade_date = 8; + * @return {number} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getTradeDate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 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, 8, value); +}; + + +/** + * optional Contract contract = 9; + * @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, 9)); +}; + + +/** + * @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, 9, 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, 9) != null; +}; + + +/** + * optional bytes contract_hash = 10; + * @return {string} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getContractHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +}; + + +/** + * optional bytes contract_hash = 10; + * 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 = 10; + * 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, 10, value); +}; + + +/** + * optional bytes deposit_tx_serialized = 11; + * @return {string} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getDepositTxSerialized = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * optional bytes deposit_tx_serialized = 11; + * 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 = 11; + * 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, 11, value); +}; + + +/** + * optional bytes payout_tx_serialized = 12; + * @return {string} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getPayoutTxSerialized = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +}; + + +/** + * optional bytes payout_tx_serialized = 12; + * 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 = 12; + * 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, 12, value); +}; + + +/** + * optional string deposit_tx_id = 13; + * @return {string} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getDepositTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); +}; + + +/** + * @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, 13, value); +}; + + +/** + * optional string payout_tx_id = 14; + * @return {string} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getPayoutTxId = 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.setPayoutTxId = function(value) { + return jspb.Message.setProto3StringField(this, 14, value); +}; + + +/** + * optional string contract_as_json = 15; + * @return {string} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getContractAsJson = 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.setContractAsJson = function(value) { + return jspb.Message.setProto3StringField(this, 15, value); +}; + + +/** + * optional string maker_contract_signature = 16; + * @return {string} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getMakerContractSignature = 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.setMakerContractSignature = function(value) { + return jspb.Message.setProto3StringField(this, 16, value); +}; + + +/** + * optional string taker_contract_signature = 17; + * @return {string} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getTakerContractSignature = 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.setTakerContractSignature = function(value) { + return jspb.Message.setProto3StringField(this, 17, value); +}; + + +/** + * optional PubKeyRing agent_pub_key_ring = 18; + * @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, 18)); +}; + + +/** + * @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, 18, 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, 18) != null; +}; + + +/** + * optional bool is_support_ticket = 19; + * @return {boolean} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getIsSupportTicket = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 19, 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, 19, value); +}; + + +/** + * repeated ChatMessage chat_message = 20; + * @return {!Array} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getChatMessageList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.ChatMessage, 20)); +}; + + +/** + * @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, 20, 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, 20, 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 = 21; + * @return {boolean} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getIsClosed = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 21, 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, 21, value); +}; + + +/** + * optional DisputeResult dispute_result = 22; + * @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, 22)); +}; + + +/** + * @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, 22, 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, 22) != null; +}; + + +/** + * optional string dispute_payout_tx_id = 23; + * @return {string} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getDisputePayoutTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, "")); +}; + + +/** + * @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, 23, value); +}; + + +/** + * optional SupportType support_type = 24; + * @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, 24, 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, 24, value); +}; + + +/** + * optional string mediators_dispute_result = 25; + * @return {string} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getMediatorsDisputeResult = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, "")); +}; + + +/** + * @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, 25, value); +}; + + +/** + * optional string delayed_payout_tx_id = 26; + * @return {string} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getDelayedPayoutTxId = 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.setDelayedPayoutTxId = function(value) { + return jspb.Message.setProto3StringField(this, 26, value); +}; + + +/** + * optional string donation_address_of_delayed_payout_tx = 27; + * @return {string} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getDonationAddressOfDelayedPayoutTx = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 27, "")); +}; + + +/** + * @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, 27, value); +}; + + +/** + * optional bool is_opener = 28; + * @return {boolean} + */ +proto.io.bisq.protobuffer.Dispute.prototype.getIsOpener = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 28, 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, 28, 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.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} + */ +proto.io.bisq.protobuffer.Attachment.prototype.getBytes = function() { + return /** @type {string} */ (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), + 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 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.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 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} + */ +proto.io.bisq.protobuffer.DisputeResult.prototype.getArbitratorPubKey = function() { + return /** @type {string} */ (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, ""), + makerPaymentAccountPayload: (f = msg.getMakerPaymentAccountPayload()) && proto.io.bisq.protobuffer.PaymentAccountPayload.toObject(includeInstance, f), + takerPaymentAccountPayload: (f = msg.getTakerPaymentAccountPayload()) && proto.io.bisq.protobuffer.PaymentAccountPayload.toObject(includeInstance, f), + 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, 15, ""), + takerPayoutAddressString: jspb.Message.getFieldWithDefault(msg, 16, ""), + arbitratorNodeAddress: (f = msg.getArbitratorNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), + lockTime: jspb.Message.getFieldWithDefault(msg, 18, 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.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 = new proto.io.bisq.protobuffer.PaymentAccountPayload; + reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccountPayload.deserializeBinaryFromReader); + msg.setMakerPaymentAccountPayload(value); + break; + case 10: + var value = new proto.io.bisq.protobuffer.PaymentAccountPayload; + reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccountPayload.deserializeBinaryFromReader); + msg.setTakerPaymentAccountPayload(value); + break; + case 11: + var value = new proto.io.bisq.protobuffer.PubKeyRing; + reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); + msg.setMakerPubKeyRing(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.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); + msg.setBuyerNodeAddress(value); + break; + case 14: + var value = new proto.io.bisq.protobuffer.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); + msg.setSellerNodeAddress(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setMakerPayoutAddressString(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.setTakerPayoutAddressString(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 = /** @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.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.getMakerPaymentAccountPayload(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.io.bisq.protobuffer.PaymentAccountPayload.serializeBinaryToWriter + ); + } + f = message.getTakerPaymentAccountPayload(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.io.bisq.protobuffer.PaymentAccountPayload.serializeBinaryToWriter + ); + } + f = message.getMakerPubKeyRing(); + if (f != null) { + writer.writeMessage( + 11, + f, + proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter + ); + } + f = message.getTakerPubKeyRing(); + if (f != null) { + writer.writeMessage( + 12, + f, + proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter + ); + } + f = message.getBuyerNodeAddress(); + if (f != null) { + writer.writeMessage( + 13, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getSellerNodeAddress(); + if (f != null) { + writer.writeMessage( + 14, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getMakerPayoutAddressString(); + if (f.length > 0) { + writer.writeString( + 15, + f + ); + } + f = message.getTakerPayoutAddressString(); + if (f.length > 0) { + writer.writeString( + 16, + f + ); + } + f = message.getArbitratorNodeAddress(); + if (f != null) { + writer.writeMessage( + 17, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getLockTime(); + if (f !== 0) { + writer.writeInt64( + 18, + 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 PaymentAccountPayload maker_payment_account_payload = 9; + * @return {?proto.io.bisq.protobuffer.PaymentAccountPayload} + */ +proto.io.bisq.protobuffer.Contract.prototype.getMakerPaymentAccountPayload = function() { + return /** @type{?proto.io.bisq.protobuffer.PaymentAccountPayload} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PaymentAccountPayload, 9)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.PaymentAccountPayload|undefined} value + * @return {!proto.io.bisq.protobuffer.Contract} returns this +*/ +proto.io.bisq.protobuffer.Contract.prototype.setMakerPaymentAccountPayload = function(value) { + return jspb.Message.setWrapperField(this, 9, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.Contract} returns this + */ +proto.io.bisq.protobuffer.Contract.prototype.clearMakerPaymentAccountPayload = function() { + return this.setMakerPaymentAccountPayload(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.Contract.prototype.hasMakerPaymentAccountPayload = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional PaymentAccountPayload taker_payment_account_payload = 10; + * @return {?proto.io.bisq.protobuffer.PaymentAccountPayload} + */ +proto.io.bisq.protobuffer.Contract.prototype.getTakerPaymentAccountPayload = function() { + return /** @type{?proto.io.bisq.protobuffer.PaymentAccountPayload} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PaymentAccountPayload, 10)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.PaymentAccountPayload|undefined} value + * @return {!proto.io.bisq.protobuffer.Contract} returns this +*/ +proto.io.bisq.protobuffer.Contract.prototype.setTakerPaymentAccountPayload = function(value) { + return jspb.Message.setWrapperField(this, 10, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.Contract} returns this + */ +proto.io.bisq.protobuffer.Contract.prototype.clearTakerPaymentAccountPayload = function() { + return this.setTakerPaymentAccountPayload(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.Contract.prototype.hasTakerPaymentAccountPayload = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional PubKeyRing maker_pub_key_ring = 11; + * @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, 11)); +}; + + +/** + * @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, 11, 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, 11) != null; +}; + + +/** + * optional PubKeyRing taker_pub_key_ring = 12; + * @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, 12)); +}; + + +/** + * @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, 12, 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, 12) != null; +}; + + +/** + * optional NodeAddress buyer_node_address = 13; + * @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, 13)); +}; + + +/** + * @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, 13, 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, 13) != null; +}; + + +/** + * optional NodeAddress seller_node_address = 14; + * @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, 14)); +}; + + +/** + * @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, 14, 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, 14) != null; +}; + + +/** + * optional string maker_payout_address_string = 15; + * @return {string} + */ +proto.io.bisq.protobuffer.Contract.prototype.getMakerPayoutAddressString = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); +}; + + +/** + * @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, 15, value); +}; + + +/** + * optional string taker_payout_address_string = 16; + * @return {string} + */ +proto.io.bisq.protobuffer.Contract.prototype.getTakerPayoutAddressString = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); +}; + + +/** + * @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, 16, value); +}; + + +/** + * optional NodeAddress arbitrator_node_address = 17; + * @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, 17)); +}; + + +/** + * @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, 17, 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, 17) != null; +}; + + +/** + * optional int64 lock_time = 18; + * @return {number} + */ +proto.io.bisq.protobuffer.Contract.prototype.getLockTime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 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, 18, 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} + */ +proto.io.bisq.protobuffer.RawTransactionInput.prototype.getParentTransaction = function() { + return /** @type {string} */ (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]]; + +/** + * @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 +}; + +/** + * @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), + 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 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.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; +}; + + +/** + * 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); +}; + + + +/** + * 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); +}; + + + +/** + * 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.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); +}; + + + +/** + * 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,13,14,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31]]; + +/** + * @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: 13, + TRADE_STATISTICS2_STORE: 14, + PROPOSAL_STORE: 16, + TEMP_PROPOSAL_STORE: 17, + BLIND_VOTE_STORE: 18, + MY_PROPOSAL_LIST: 19, + BALLOT_LIST: 20, + MY_VOTE_LIST: 21, + MY_BLIND_VOTE_LIST: 22, + DAO_STATE_STORE: 24, + MY_REPUTATION_LIST: 25, + MY_PROOF_OF_BURN_LIST: 26, + UNCONFIRMED_BSQ_CHANGE_OUTPUT_LIST: 27, + SIGNED_WITNESS_STORE: 28, + MEDIATION_DISPUTE_LIST: 29, + REFUND_DISPUTE_LIST: 30, + XMR_ADDRESS_ENTRY_LIST: 31 +}; + +/** + * @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), + proposalStore: (f = msg.getProposalStore()) && proto.io.bisq.protobuffer.ProposalStore.toObject(includeInstance, f), + tempProposalStore: (f = msg.getTempProposalStore()) && proto.io.bisq.protobuffer.TempProposalStore.toObject(includeInstance, f), + blindVoteStore: (f = msg.getBlindVoteStore()) && proto.io.bisq.protobuffer.BlindVoteStore.toObject(includeInstance, f), + myProposalList: (f = msg.getMyProposalList()) && proto.io.bisq.protobuffer.MyProposalList.toObject(includeInstance, f), + ballotList: (f = msg.getBallotList()) && proto.io.bisq.protobuffer.BallotList.toObject(includeInstance, f), + myVoteList: (f = msg.getMyVoteList()) && proto.io.bisq.protobuffer.MyVoteList.toObject(includeInstance, f), + myBlindVoteList: (f = msg.getMyBlindVoteList()) && proto.io.bisq.protobuffer.MyBlindVoteList.toObject(includeInstance, f), + daoStateStore: (f = msg.getDaoStateStore()) && proto.io.bisq.protobuffer.DaoStateStore.toObject(includeInstance, f), + myReputationList: (f = msg.getMyReputationList()) && proto.io.bisq.protobuffer.MyReputationList.toObject(includeInstance, f), + myProofOfBurnList: (f = msg.getMyProofOfBurnList()) && proto.io.bisq.protobuffer.MyProofOfBurnList.toObject(includeInstance, f), + unconfirmedBsqChangeOutputList: (f = msg.getUnconfirmedBsqChangeOutputList()) && proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList.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), + xmrAddressEntryList: (f = msg.getXmrAddressEntryList()) && proto.io.bisq.protobuffer.XmrAddressEntryList.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 13: + var value = new proto.io.bisq.protobuffer.AccountAgeWitnessStore; + reader.readMessage(value,proto.io.bisq.protobuffer.AccountAgeWitnessStore.deserializeBinaryFromReader); + msg.setAccountAgeWitnessStore(value); + break; + case 14: + var value = new proto.io.bisq.protobuffer.TradeStatistics2Store; + reader.readMessage(value,proto.io.bisq.protobuffer.TradeStatistics2Store.deserializeBinaryFromReader); + msg.setTradeStatistics2Store(value); + break; + case 16: + var value = new proto.io.bisq.protobuffer.ProposalStore; + reader.readMessage(value,proto.io.bisq.protobuffer.ProposalStore.deserializeBinaryFromReader); + msg.setProposalStore(value); + break; + case 17: + var value = new proto.io.bisq.protobuffer.TempProposalStore; + reader.readMessage(value,proto.io.bisq.protobuffer.TempProposalStore.deserializeBinaryFromReader); + msg.setTempProposalStore(value); + break; + case 18: + var value = new proto.io.bisq.protobuffer.BlindVoteStore; + reader.readMessage(value,proto.io.bisq.protobuffer.BlindVoteStore.deserializeBinaryFromReader); + msg.setBlindVoteStore(value); + break; + case 19: + var value = new proto.io.bisq.protobuffer.MyProposalList; + reader.readMessage(value,proto.io.bisq.protobuffer.MyProposalList.deserializeBinaryFromReader); + msg.setMyProposalList(value); + break; + case 20: + var value = new proto.io.bisq.protobuffer.BallotList; + reader.readMessage(value,proto.io.bisq.protobuffer.BallotList.deserializeBinaryFromReader); + msg.setBallotList(value); + break; + case 21: + var value = new proto.io.bisq.protobuffer.MyVoteList; + reader.readMessage(value,proto.io.bisq.protobuffer.MyVoteList.deserializeBinaryFromReader); + msg.setMyVoteList(value); + break; + case 22: + var value = new proto.io.bisq.protobuffer.MyBlindVoteList; + reader.readMessage(value,proto.io.bisq.protobuffer.MyBlindVoteList.deserializeBinaryFromReader); + msg.setMyBlindVoteList(value); + break; + case 24: + var value = new proto.io.bisq.protobuffer.DaoStateStore; + reader.readMessage(value,proto.io.bisq.protobuffer.DaoStateStore.deserializeBinaryFromReader); + msg.setDaoStateStore(value); + break; + case 25: + var value = new proto.io.bisq.protobuffer.MyReputationList; + reader.readMessage(value,proto.io.bisq.protobuffer.MyReputationList.deserializeBinaryFromReader); + msg.setMyReputationList(value); + break; + case 26: + var value = new proto.io.bisq.protobuffer.MyProofOfBurnList; + reader.readMessage(value,proto.io.bisq.protobuffer.MyProofOfBurnList.deserializeBinaryFromReader); + msg.setMyProofOfBurnList(value); + break; + case 27: + var value = new proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList; + reader.readMessage(value,proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList.deserializeBinaryFromReader); + msg.setUnconfirmedBsqChangeOutputList(value); + break; + case 28: + var value = new proto.io.bisq.protobuffer.SignedWitnessStore; + reader.readMessage(value,proto.io.bisq.protobuffer.SignedWitnessStore.deserializeBinaryFromReader); + msg.setSignedWitnessStore(value); + break; + case 29: + var value = new proto.io.bisq.protobuffer.MediationDisputeList; + reader.readMessage(value,proto.io.bisq.protobuffer.MediationDisputeList.deserializeBinaryFromReader); + msg.setMediationDisputeList(value); + break; + case 30: + var value = new proto.io.bisq.protobuffer.RefundDisputeList; + reader.readMessage(value,proto.io.bisq.protobuffer.RefundDisputeList.deserializeBinaryFromReader); + msg.setRefundDisputeList(value); + break; + case 31: + var value = new proto.io.bisq.protobuffer.XmrAddressEntryList; + reader.readMessage(value,proto.io.bisq.protobuffer.XmrAddressEntryList.deserializeBinaryFromReader); + msg.setXmrAddressEntryList(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( + 13, + f, + proto.io.bisq.protobuffer.AccountAgeWitnessStore.serializeBinaryToWriter + ); + } + f = message.getTradeStatistics2Store(); + if (f != null) { + writer.writeMessage( + 14, + f, + proto.io.bisq.protobuffer.TradeStatistics2Store.serializeBinaryToWriter + ); + } + f = message.getProposalStore(); + if (f != null) { + writer.writeMessage( + 16, + f, + proto.io.bisq.protobuffer.ProposalStore.serializeBinaryToWriter + ); + } + f = message.getTempProposalStore(); + if (f != null) { + writer.writeMessage( + 17, + f, + proto.io.bisq.protobuffer.TempProposalStore.serializeBinaryToWriter + ); + } + f = message.getBlindVoteStore(); + if (f != null) { + writer.writeMessage( + 18, + f, + proto.io.bisq.protobuffer.BlindVoteStore.serializeBinaryToWriter + ); + } + f = message.getMyProposalList(); + if (f != null) { + writer.writeMessage( + 19, + f, + proto.io.bisq.protobuffer.MyProposalList.serializeBinaryToWriter + ); + } + f = message.getBallotList(); + if (f != null) { + writer.writeMessage( + 20, + f, + proto.io.bisq.protobuffer.BallotList.serializeBinaryToWriter + ); + } + f = message.getMyVoteList(); + if (f != null) { + writer.writeMessage( + 21, + f, + proto.io.bisq.protobuffer.MyVoteList.serializeBinaryToWriter + ); + } + f = message.getMyBlindVoteList(); + if (f != null) { + writer.writeMessage( + 22, + f, + proto.io.bisq.protobuffer.MyBlindVoteList.serializeBinaryToWriter + ); + } + f = message.getDaoStateStore(); + if (f != null) { + writer.writeMessage( + 24, + f, + proto.io.bisq.protobuffer.DaoStateStore.serializeBinaryToWriter + ); + } + f = message.getMyReputationList(); + if (f != null) { + writer.writeMessage( + 25, + f, + proto.io.bisq.protobuffer.MyReputationList.serializeBinaryToWriter + ); + } + f = message.getMyProofOfBurnList(); + if (f != null) { + writer.writeMessage( + 26, + f, + proto.io.bisq.protobuffer.MyProofOfBurnList.serializeBinaryToWriter + ); + } + f = message.getUnconfirmedBsqChangeOutputList(); + if (f != null) { + writer.writeMessage( + 27, + f, + proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList.serializeBinaryToWriter + ); + } + f = message.getSignedWitnessStore(); + if (f != null) { + writer.writeMessage( + 28, + f, + proto.io.bisq.protobuffer.SignedWitnessStore.serializeBinaryToWriter + ); + } + f = message.getMediationDisputeList(); + if (f != null) { + writer.writeMessage( + 29, + f, + proto.io.bisq.protobuffer.MediationDisputeList.serializeBinaryToWriter + ); + } + f = message.getRefundDisputeList(); + if (f != null) { + writer.writeMessage( + 30, + f, + proto.io.bisq.protobuffer.RefundDisputeList.serializeBinaryToWriter + ); + } + f = message.getXmrAddressEntryList(); + if (f != null) { + writer.writeMessage( + 31, + f, + proto.io.bisq.protobuffer.XmrAddressEntryList.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 = 13; + * @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, 13)); +}; + + +/** + * @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, 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.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, 13) != null; +}; + + +/** + * optional TradeStatistics2Store trade_statistics2_store = 14; + * @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, 14)); +}; + + +/** + * @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, 14, 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, 14) != null; +}; + + +/** + * optional ProposalStore proposal_store = 16; + * @return {?proto.io.bisq.protobuffer.ProposalStore} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getProposalStore = function() { + return /** @type{?proto.io.bisq.protobuffer.ProposalStore} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ProposalStore, 16)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.ProposalStore|undefined} value + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this +*/ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setProposalStore = 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.clearProposalStore = function() { + return this.setProposalStore(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasProposalStore = function() { + return jspb.Message.getField(this, 16) != null; +}; + + +/** + * optional TempProposalStore temp_proposal_store = 17; + * @return {?proto.io.bisq.protobuffer.TempProposalStore} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getTempProposalStore = function() { + return /** @type{?proto.io.bisq.protobuffer.TempProposalStore} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TempProposalStore, 17)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.TempProposalStore|undefined} value + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this +*/ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setTempProposalStore = 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.clearTempProposalStore = function() { + return this.setTempProposalStore(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasTempProposalStore = function() { + return jspb.Message.getField(this, 17) != null; +}; + + +/** + * optional BlindVoteStore blind_vote_store = 18; + * @return {?proto.io.bisq.protobuffer.BlindVoteStore} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getBlindVoteStore = function() { + return /** @type{?proto.io.bisq.protobuffer.BlindVoteStore} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.BlindVoteStore, 18)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.BlindVoteStore|undefined} value + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this +*/ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setBlindVoteStore = 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.clearBlindVoteStore = function() { + return this.setBlindVoteStore(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasBlindVoteStore = function() { + return jspb.Message.getField(this, 18) != null; +}; + + +/** + * optional MyProposalList my_proposal_list = 19; + * @return {?proto.io.bisq.protobuffer.MyProposalList} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getMyProposalList = function() { + return /** @type{?proto.io.bisq.protobuffer.MyProposalList} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.MyProposalList, 19)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.MyProposalList|undefined} value + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this +*/ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setMyProposalList = 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.clearMyProposalList = function() { + return this.setMyProposalList(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasMyProposalList = function() { + return jspb.Message.getField(this, 19) != null; +}; + + +/** + * optional BallotList ballot_list = 20; + * @return {?proto.io.bisq.protobuffer.BallotList} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getBallotList = function() { + return /** @type{?proto.io.bisq.protobuffer.BallotList} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.BallotList, 20)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.BallotList|undefined} value + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this +*/ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setBallotList = 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.clearBallotList = function() { + return this.setBallotList(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasBallotList = function() { + return jspb.Message.getField(this, 20) != null; +}; + + +/** + * optional MyVoteList my_vote_list = 21; + * @return {?proto.io.bisq.protobuffer.MyVoteList} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getMyVoteList = function() { + return /** @type{?proto.io.bisq.protobuffer.MyVoteList} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.MyVoteList, 21)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.MyVoteList|undefined} value + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this +*/ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setMyVoteList = 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.clearMyVoteList = function() { + return this.setMyVoteList(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasMyVoteList = function() { + return jspb.Message.getField(this, 21) != null; +}; + + +/** + * optional MyBlindVoteList my_blind_vote_list = 22; + * @return {?proto.io.bisq.protobuffer.MyBlindVoteList} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getMyBlindVoteList = function() { + return /** @type{?proto.io.bisq.protobuffer.MyBlindVoteList} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.MyBlindVoteList, 22)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.MyBlindVoteList|undefined} value + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this +*/ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setMyBlindVoteList = function(value) { + return jspb.Message.setOneofWrapperField(this, 22, 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.clearMyBlindVoteList = function() { + return this.setMyBlindVoteList(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasMyBlindVoteList = function() { + return jspb.Message.getField(this, 22) != null; +}; + + +/** + * optional DaoStateStore dao_state_store = 24; + * @return {?proto.io.bisq.protobuffer.DaoStateStore} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getDaoStateStore = function() { + return /** @type{?proto.io.bisq.protobuffer.DaoStateStore} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.DaoStateStore, 24)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.DaoStateStore|undefined} value + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this +*/ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setDaoStateStore = function(value) { + return jspb.Message.setOneofWrapperField(this, 24, 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.clearDaoStateStore = function() { + return this.setDaoStateStore(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasDaoStateStore = function() { + return jspb.Message.getField(this, 24) != null; +}; + + +/** + * optional MyReputationList my_reputation_list = 25; + * @return {?proto.io.bisq.protobuffer.MyReputationList} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getMyReputationList = function() { + return /** @type{?proto.io.bisq.protobuffer.MyReputationList} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.MyReputationList, 25)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.MyReputationList|undefined} value + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this +*/ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setMyReputationList = function(value) { + return jspb.Message.setOneofWrapperField(this, 25, 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.clearMyReputationList = function() { + return this.setMyReputationList(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasMyReputationList = function() { + return jspb.Message.getField(this, 25) != null; +}; + + +/** + * optional MyProofOfBurnList my_proof_of_burn_list = 26; + * @return {?proto.io.bisq.protobuffer.MyProofOfBurnList} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getMyProofOfBurnList = function() { + return /** @type{?proto.io.bisq.protobuffer.MyProofOfBurnList} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.MyProofOfBurnList, 26)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.MyProofOfBurnList|undefined} value + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this +*/ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setMyProofOfBurnList = function(value) { + return jspb.Message.setOneofWrapperField(this, 26, 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.clearMyProofOfBurnList = function() { + return this.setMyProofOfBurnList(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasMyProofOfBurnList = function() { + return jspb.Message.getField(this, 26) != null; +}; + + +/** + * optional UnconfirmedBsqChangeOutputList unconfirmed_bsq_change_output_list = 27; + * @return {?proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getUnconfirmedBsqChangeOutputList = function() { + return /** @type{?proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList, 27)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList|undefined} value + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this +*/ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.setUnconfirmedBsqChangeOutputList = function(value) { + return jspb.Message.setOneofWrapperField(this, 27, 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.clearUnconfirmedBsqChangeOutputList = function() { + return this.setUnconfirmedBsqChangeOutputList(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.hasUnconfirmedBsqChangeOutputList = function() { + return jspb.Message.getField(this, 27) != null; +}; + + +/** + * optional SignedWitnessStore signed_witness_store = 28; + * @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, 28)); +}; + + +/** + * @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, 28, 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, 28) != null; +}; + + +/** + * optional MediationDisputeList mediation_dispute_list = 29; + * @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, 29)); +}; + + +/** + * @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, 29, 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, 29) != null; +}; + + +/** + * optional RefundDisputeList refund_dispute_list = 30; + * @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, 30)); +}; + + +/** + * @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, 30, 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, 30) != null; +}; + + +/** + * optional XmrAddressEntryList xmr_address_entry_list = 31; + * @return {?proto.io.bisq.protobuffer.XmrAddressEntryList} + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.getXmrAddressEntryList = function() { + return /** @type{?proto.io.bisq.protobuffer.XmrAddressEntryList} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.XmrAddressEntryList, 31)); +}; + + +/** + * @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, 31, proto.io.bisq.protobuffer.PersistableEnvelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.PersistableEnvelope} returns this + */ +proto.io.bisq.protobuffer.PersistableEnvelope.prototype.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, 31) != 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} + */ +proto.io.bisq.protobuffer.ByteArray.prototype.getBytes = function() { + return /** @type {string} */ (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.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) + }; + + if (includeInstance) { + obj.$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; + 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 + ); + } +}; + + +/** + * @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} + */ +proto.io.bisq.protobuffer.AddressEntry.prototype.getPubKey = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.AddressEntry.prototype.getPubKeyHash = function() { + return /** @type {string} */ (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); +}; + + + +/** + * 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 = { + accountIndex: 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.setAccountIndex(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.getAccountIndex(); + 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 account_index = 7; + * @return {number} + */ +proto.io.bisq.protobuffer.XmrAddressEntry.prototype.getAccountIndex = 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.setAccountIndex = 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; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_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), + arbitratorNodeAddress: (f = msg.getArbitratorNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), + mediatorNodeAddress: (f = msg.getMediatorNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), + refundAgentNodeAddress: (f = msg.getRefundAgentNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$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.setArbitratorNodeAddress(value); + break; + case 4: + var value = new proto.io.bisq.protobuffer.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); + msg.setMediatorNodeAddress(value); + break; + case 5: + 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.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.getArbitratorNodeAddress(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getMediatorNodeAddress(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getRefundAgentNodeAddress(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } +}; + + +/** + * @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 arbitrator_node_address = 3; + * @return {?proto.io.bisq.protobuffer.NodeAddress} + */ +proto.io.bisq.protobuffer.OpenOffer.prototype.getArbitratorNodeAddress = 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.setArbitratorNodeAddress = 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.clearArbitratorNodeAddress = function() { + return this.setArbitratorNodeAddress(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.OpenOffer.prototype.hasArbitratorNodeAddress = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional NodeAddress mediator_node_address = 4; + * @return {?proto.io.bisq.protobuffer.NodeAddress} + */ +proto.io.bisq.protobuffer.OpenOffer.prototype.getMediatorNodeAddress = 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.OpenOffer} returns this +*/ +proto.io.bisq.protobuffer.OpenOffer.prototype.setMediatorNodeAddress = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.OpenOffer} returns this + */ +proto.io.bisq.protobuffer.OpenOffer.prototype.clearMediatorNodeAddress = function() { + return this.setMediatorNodeAddress(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.OpenOffer.prototype.hasMediatorNodeAddress = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional NodeAddress refund_agent_node_address = 5; + * @return {?proto.io.bisq.protobuffer.NodeAddress} + */ +proto.io.bisq.protobuffer.OpenOffer.prototype.getRefundAgentNodeAddress = function() { + return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 5)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.NodeAddress|undefined} value + * @return {!proto.io.bisq.protobuffer.OpenOffer} returns this +*/ +proto.io.bisq.protobuffer.OpenOffer.prototype.setRefundAgentNodeAddress = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.OpenOffer} returns this + */ +proto.io.bisq.protobuffer.OpenOffer.prototype.clearRefundAgentNodeAddress = function() { + return this.setRefundAgentNodeAddress(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.OpenOffer.prototype.hasRefundAgentNodeAddress = function() { + return jspb.Message.getField(this, 5) != 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.Tradable.oneofGroups_ = [[1,2,3,4,5,6]]; + +/** + * @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 +}; + +/** + * @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) + }; + + if (includeInstance) { + obj.$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; + 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 + ); + } +}; + + +/** + * 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; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.Trade.repeatedFields_ = [29]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_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), + isCurrencyForTakerFeeBtc: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), + tradePrice: jspb.Message.getFieldWithDefault(msg, 11, 0), + state: jspb.Message.getFieldWithDefault(msg, 13, 0), + disputeState: jspb.Message.getFieldWithDefault(msg, 14, 0), + tradePeriodState: jspb.Message.getFieldWithDefault(msg, 15, 0), + contract: (f = msg.getContract()) && proto.io.bisq.protobuffer.Contract.toObject(includeInstance, f), + contractAsJson: jspb.Message.getFieldWithDefault(msg, 17, ""), + contractHash: msg.getContractHash_asB64(), + takerContractSignature: jspb.Message.getFieldWithDefault(msg, 19, ""), + makerContractSignature: jspb.Message.getFieldWithDefault(msg, 20, ""), + 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, 24, ""), + errorMessage: jspb.Message.getFieldWithDefault(msg, 25, ""), + 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, 28, ""), + chatMessageList: jspb.Message.toObjectList(msg.getChatMessageList(), + proto.io.bisq.protobuffer.ChatMessage.toObject, includeInstance), + mediationResultState: jspb.Message.getFieldWithDefault(msg, 30, 0), + lockTime: jspb.Message.getFieldWithDefault(msg, 31, 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, 35, 0), + lastRefreshRequestDate: jspb.Message.getFieldWithDefault(msg, 36, 0), + counterCurrencyExtraData: jspb.Message.getFieldWithDefault(msg, 37, ""), + assetTxProofResult: jspb.Message.getFieldWithDefault(msg, 38, ""), + takerNodeAddress: (f = msg.getTakerNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), + takerPubKeyRing: (f = msg.getTakerPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), + takerDepositTxId: jspb.Message.getFieldWithDefault(msg, 1002, ""), + makerNodeAddress: (f = msg.getMakerNodeAddress()) && proto.io.bisq.protobuffer.NodeAddress.toObject(includeInstance, f), + makerPubKeyRing: (f = msg.getMakerPubKeyRing()) && proto.io.bisq.protobuffer.PubKeyRing.toObject(includeInstance, f), + makerDepositTxId: jspb.Message.getFieldWithDefault(msg, 1005, "") + }; + + if (includeInstance) { + obj.$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 {boolean} */ (reader.readBool()); + msg.setIsCurrencyForTakerFeeBtc(value); + break; + case 11: + var value = /** @type {number} */ (reader.readInt64()); + msg.setTradePrice(value); + break; + case 13: + var value = /** @type {!proto.io.bisq.protobuffer.Trade.State} */ (reader.readEnum()); + msg.setState(value); + break; + case 14: + var value = /** @type {!proto.io.bisq.protobuffer.Trade.DisputeState} */ (reader.readEnum()); + msg.setDisputeState(value); + break; + case 15: + var value = /** @type {!proto.io.bisq.protobuffer.Trade.TradePeriodState} */ (reader.readEnum()); + msg.setTradePeriodState(value); + break; + case 16: + var value = new proto.io.bisq.protobuffer.Contract; + reader.readMessage(value,proto.io.bisq.protobuffer.Contract.deserializeBinaryFromReader); + msg.setContract(value); + break; + case 17: + var value = /** @type {string} */ (reader.readString()); + msg.setContractAsJson(value); + break; + case 18: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setContractHash(value); + break; + case 19: + var value = /** @type {string} */ (reader.readString()); + msg.setTakerContractSignature(value); + break; + case 20: + var value = /** @type {string} */ (reader.readString()); + msg.setMakerContractSignature(value); + break; + case 21: + var value = new proto.io.bisq.protobuffer.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); + msg.setArbitratorNodeAddress(value); + break; + case 22: + var value = new proto.io.bisq.protobuffer.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); + msg.setMediatorNodeAddress(value); + break; + case 23: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setArbitratorBtcPubKey(value); + break; + case 24: + var value = /** @type {string} */ (reader.readString()); + msg.setTakerPaymentAccountId(value); + break; + case 25: + var value = /** @type {string} */ (reader.readString()); + msg.setErrorMessage(value); + break; + case 26: + var value = new proto.io.bisq.protobuffer.PubKeyRing; + reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); + msg.setArbitratorPubKeyRing(value); + break; + case 27: + var value = new proto.io.bisq.protobuffer.PubKeyRing; + reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); + msg.setMediatorPubKeyRing(value); + break; + case 28: + var value = /** @type {string} */ (reader.readString()); + msg.setCounterCurrencyTxId(value); + break; + case 29: + var value = new proto.io.bisq.protobuffer.ChatMessage; + reader.readMessage(value,proto.io.bisq.protobuffer.ChatMessage.deserializeBinaryFromReader); + msg.addChatMessage(value); + break; + case 30: + var value = /** @type {!proto.io.bisq.protobuffer.MediationResultState} */ (reader.readEnum()); + msg.setMediationResultState(value); + break; + case 31: + var value = /** @type {number} */ (reader.readInt64()); + msg.setLockTime(value); + break; + case 32: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setDelayedPayoutTxBytes(value); + break; + case 33: + var value = new proto.io.bisq.protobuffer.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); + msg.setRefundAgentNodeAddress(value); + break; + case 34: + var value = new proto.io.bisq.protobuffer.PubKeyRing; + reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); + msg.setRefundAgentPubKeyRing(value); + break; + case 35: + var value = /** @type {!proto.io.bisq.protobuffer.RefundResultState} */ (reader.readEnum()); + msg.setRefundResultState(value); + break; + case 36: + var value = /** @type {number} */ (reader.readInt64()); + msg.setLastRefreshRequestDate(value); + break; + case 37: + var value = /** @type {string} */ (reader.readString()); + msg.setCounterCurrencyExtraData(value); + break; + case 38: + var value = /** @type {string} */ (reader.readString()); + msg.setAssetTxProofResult(value); + break; + case 1000: + var value = new proto.io.bisq.protobuffer.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); + msg.setTakerNodeAddress(value); + break; + case 1001: + var value = new proto.io.bisq.protobuffer.PubKeyRing; + reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); + msg.setTakerPubKeyRing(value); + break; + case 1002: + var value = /** @type {string} */ (reader.readString()); + msg.setTakerDepositTxId(value); + break; + case 1003: + var value = new proto.io.bisq.protobuffer.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); + msg.setMakerNodeAddress(value); + break; + case 1004: + var value = new proto.io.bisq.protobuffer.PubKeyRing; + reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); + msg.setMakerPubKeyRing(value); + break; + case 1005: + var value = /** @type {string} */ (reader.readString()); + msg.setMakerDepositTxId(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.getIsCurrencyForTakerFeeBtc(); + if (f) { + writer.writeBool( + 10, + f + ); + } + f = message.getTradePrice(); + if (f !== 0) { + writer.writeInt64( + 11, + f + ); + } + f = message.getState(); + if (f !== 0.0) { + writer.writeEnum( + 13, + f + ); + } + f = message.getDisputeState(); + if (f !== 0.0) { + writer.writeEnum( + 14, + f + ); + } + f = message.getTradePeriodState(); + if (f !== 0.0) { + writer.writeEnum( + 15, + f + ); + } + f = message.getContract(); + if (f != null) { + writer.writeMessage( + 16, + f, + proto.io.bisq.protobuffer.Contract.serializeBinaryToWriter + ); + } + f = message.getContractAsJson(); + if (f.length > 0) { + writer.writeString( + 17, + f + ); + } + f = message.getContractHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 18, + f + ); + } + f = message.getTakerContractSignature(); + if (f.length > 0) { + writer.writeString( + 19, + f + ); + } + f = message.getMakerContractSignature(); + if (f.length > 0) { + writer.writeString( + 20, + f + ); + } + f = message.getArbitratorNodeAddress(); + if (f != null) { + writer.writeMessage( + 21, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getMediatorNodeAddress(); + if (f != null) { + writer.writeMessage( + 22, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getArbitratorBtcPubKey_asU8(); + if (f.length > 0) { + writer.writeBytes( + 23, + f + ); + } + f = message.getTakerPaymentAccountId(); + if (f.length > 0) { + writer.writeString( + 24, + f + ); + } + f = message.getErrorMessage(); + if (f.length > 0) { + writer.writeString( + 25, + f + ); + } + f = message.getArbitratorPubKeyRing(); + if (f != null) { + writer.writeMessage( + 26, + f, + proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter + ); + } + f = message.getMediatorPubKeyRing(); + if (f != null) { + writer.writeMessage( + 27, + f, + proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter + ); + } + f = message.getCounterCurrencyTxId(); + if (f.length > 0) { + writer.writeString( + 28, + f + ); + } + f = message.getChatMessageList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 29, + f, + proto.io.bisq.protobuffer.ChatMessage.serializeBinaryToWriter + ); + } + f = message.getMediationResultState(); + if (f !== 0.0) { + writer.writeEnum( + 30, + f + ); + } + f = message.getLockTime(); + if (f !== 0) { + writer.writeInt64( + 31, + f + ); + } + f = message.getDelayedPayoutTxBytes_asU8(); + if (f.length > 0) { + writer.writeBytes( + 32, + f + ); + } + f = message.getRefundAgentNodeAddress(); + if (f != null) { + writer.writeMessage( + 33, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getRefundAgentPubKeyRing(); + if (f != null) { + writer.writeMessage( + 34, + f, + proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter + ); + } + f = message.getRefundResultState(); + if (f !== 0.0) { + writer.writeEnum( + 35, + f + ); + } + f = message.getLastRefreshRequestDate(); + if (f !== 0) { + writer.writeInt64( + 36, + f + ); + } + f = message.getCounterCurrencyExtraData(); + if (f.length > 0) { + writer.writeString( + 37, + f + ); + } + f = message.getAssetTxProofResult(); + if (f.length > 0) { + writer.writeString( + 38, + f + ); + } + f = message.getTakerNodeAddress(); + if (f != null) { + writer.writeMessage( + 1000, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getTakerPubKeyRing(); + if (f != null) { + writer.writeMessage( + 1001, + f, + proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter + ); + } + f = message.getTakerDepositTxId(); + if (f.length > 0) { + writer.writeString( + 1002, + f + ); + } + f = message.getMakerNodeAddress(); + if (f != null) { + writer.writeMessage( + 1003, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getMakerPubKeyRing(); + if (f != null) { + writer.writeMessage( + 1004, + f, + proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter + ); + } + f = message.getMakerDepositTxId(); + if (f.length > 0) { + writer.writeString( + 1005, + f + ); + } +}; + + +/** + * @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 bool is_currency_for_taker_fee_btc = 10; + * @return {boolean} + */ +proto.io.bisq.protobuffer.Trade.prototype.getIsCurrencyForTakerFeeBtc = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.Trade} returns this + */ +proto.io.bisq.protobuffer.Trade.prototype.setIsCurrencyForTakerFeeBtc = function(value) { + return jspb.Message.setProto3BooleanField(this, 10, value); +}; + + +/** + * optional int64 trade_price = 11; + * @return {number} + */ +proto.io.bisq.protobuffer.Trade.prototype.getTradePrice = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 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, 11, value); +}; + + +/** + * optional State state = 13; + * @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, 13, 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, 13, value); +}; + + +/** + * optional DisputeState dispute_state = 14; + * @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, 14, 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, 14, value); +}; + + +/** + * optional TradePeriodState trade_period_state = 15; + * @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, 15, 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, 15, value); +}; + + +/** + * optional Contract contract = 16; + * @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, 16)); +}; + + +/** + * @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, 16, 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, 16) != null; +}; + + +/** + * optional string contract_as_json = 17; + * @return {string} + */ +proto.io.bisq.protobuffer.Trade.prototype.getContractAsJson = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); +}; + + +/** + * @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, 17, value); +}; + + +/** + * optional bytes contract_hash = 18; + * @return {string} + */ +proto.io.bisq.protobuffer.Trade.prototype.getContractHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); +}; + + +/** + * optional bytes contract_hash = 18; + * 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 = 18; + * 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, 18, value); +}; + + +/** + * optional string taker_contract_signature = 19; + * @return {string} + */ +proto.io.bisq.protobuffer.Trade.prototype.getTakerContractSignature = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.Trade} returns this + */ +proto.io.bisq.protobuffer.Trade.prototype.setTakerContractSignature = function(value) { + return jspb.Message.setProto3StringField(this, 19, value); +}; + + +/** + * optional string maker_contract_signature = 20; + * @return {string} + */ +proto.io.bisq.protobuffer.Trade.prototype.getMakerContractSignature = 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.setMakerContractSignature = function(value) { + return jspb.Message.setProto3StringField(this, 20, value); +}; + + +/** + * optional NodeAddress arbitrator_node_address = 21; + * @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, 21)); +}; + + +/** + * @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, 21, 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, 21) != null; +}; + + +/** + * optional NodeAddress mediator_node_address = 22; + * @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, 22)); +}; + + +/** + * @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, 22, 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, 22) != null; +}; + + +/** + * optional bytes arbitrator_btc_pub_key = 23; + * @return {string} + */ +proto.io.bisq.protobuffer.Trade.prototype.getArbitratorBtcPubKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, "")); +}; + + +/** + * optional bytes arbitrator_btc_pub_key = 23; + * 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 = 23; + * 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, 23, value); +}; + + +/** + * optional string taker_payment_account_id = 24; + * @return {string} + */ +proto.io.bisq.protobuffer.Trade.prototype.getTakerPaymentAccountId = 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.setTakerPaymentAccountId = function(value) { + return jspb.Message.setProto3StringField(this, 24, value); +}; + + +/** + * optional string error_message = 25; + * @return {string} + */ +proto.io.bisq.protobuffer.Trade.prototype.getErrorMessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, "")); +}; + + +/** + * @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, 25, value); +}; + + +/** + * optional PubKeyRing arbitrator_pub_key_ring = 26; + * @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, 26)); +}; + + +/** + * @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, 26, 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, 26) != null; +}; + + +/** + * optional PubKeyRing mediator_pub_key_ring = 27; + * @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, 27)); +}; + + +/** + * @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, 27, 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, 27) != null; +}; + + +/** + * optional string counter_currency_tx_id = 28; + * @return {string} + */ +proto.io.bisq.protobuffer.Trade.prototype.getCounterCurrencyTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 28, "")); +}; + + +/** + * @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, 28, value); +}; + + +/** + * repeated ChatMessage chat_message = 29; + * @return {!Array} + */ +proto.io.bisq.protobuffer.Trade.prototype.getChatMessageList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.ChatMessage, 29)); +}; + + +/** + * @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, 29, 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, 29, 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 = 30; + * @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, 30, 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, 30, value); +}; + + +/** + * optional int64 lock_time = 31; + * @return {number} + */ +proto.io.bisq.protobuffer.Trade.prototype.getLockTime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 31, 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, 31, value); +}; + + +/** + * optional bytes delayed_payout_tx_bytes = 32; + * @return {string} + */ +proto.io.bisq.protobuffer.Trade.prototype.getDelayedPayoutTxBytes = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 32, "")); +}; + + +/** + * optional bytes delayed_payout_tx_bytes = 32; + * 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 = 32; + * 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, 32, value); +}; + + +/** + * optional NodeAddress refund_agent_node_address = 33; + * @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, 33)); +}; + + +/** + * @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, 33, 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, 33) != null; +}; + + +/** + * optional PubKeyRing refund_agent_pub_key_ring = 34; + * @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, 34)); +}; + + +/** + * @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, 34, 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, 34) != null; +}; + + +/** + * optional RefundResultState refund_result_state = 35; + * @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, 35, 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, 35, value); +}; + + +/** + * optional int64 last_refresh_request_date = 36; + * @return {number} + */ +proto.io.bisq.protobuffer.Trade.prototype.getLastRefreshRequestDate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 36, 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, 36, value); +}; + + +/** + * optional string counter_currency_extra_data = 37; + * @return {string} + */ +proto.io.bisq.protobuffer.Trade.prototype.getCounterCurrencyExtraData = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 37, "")); +}; + + +/** + * @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, 37, value); +}; + + +/** + * optional string asset_tx_proof_result = 38; + * @return {string} + */ +proto.io.bisq.protobuffer.Trade.prototype.getAssetTxProofResult = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 38, "")); +}; + + +/** + * @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, 38, value); +}; + + +/** + * optional NodeAddress taker_node_address = 1000; + * @return {?proto.io.bisq.protobuffer.NodeAddress} + */ +proto.io.bisq.protobuffer.Trade.prototype.getTakerNodeAddress = function() { + return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 1000)); +}; + + +/** + * @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, 1000, 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, 1000) != null; +}; + + +/** + * optional PubKeyRing taker_pub_key_ring = 1001; + * @return {?proto.io.bisq.protobuffer.PubKeyRing} + */ +proto.io.bisq.protobuffer.Trade.prototype.getTakerPubKeyRing = function() { + return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 1001)); +}; + + +/** + * @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, 1001, 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, 1001) != null; +}; + + +/** + * optional string taker_deposit_tx_id = 1002; + * @return {string} + */ +proto.io.bisq.protobuffer.Trade.prototype.getTakerDepositTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1002, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.Trade} returns this + */ +proto.io.bisq.protobuffer.Trade.prototype.setTakerDepositTxId = function(value) { + return jspb.Message.setProto3StringField(this, 1002, value); +}; + + +/** + * optional NodeAddress maker_node_address = 1003; + * @return {?proto.io.bisq.protobuffer.NodeAddress} + */ +proto.io.bisq.protobuffer.Trade.prototype.getMakerNodeAddress = function() { + return /** @type{?proto.io.bisq.protobuffer.NodeAddress} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.NodeAddress, 1003)); +}; + + +/** + * @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, 1003, 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, 1003) != null; +}; + + +/** + * optional PubKeyRing maker_pub_key_ring = 1004; + * @return {?proto.io.bisq.protobuffer.PubKeyRing} + */ +proto.io.bisq.protobuffer.Trade.prototype.getMakerPubKeyRing = function() { + return /** @type{?proto.io.bisq.protobuffer.PubKeyRing} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyRing, 1004)); +}; + + +/** + * @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, 1004, 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, 1004) != null; +}; + + +/** + * optional string maker_deposit_tx_id = 1005; + * @return {string} + */ +proto.io.bisq.protobuffer.Trade.prototype.getMakerDepositTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1005, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.Trade} returns this + */ +proto.io.bisq.protobuffer.Trade.prototype.setMakerDepositTxId = function(value) { + return jspb.Message.setProto3StringField(this, 1005, 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.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), + 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, 1005, ""), + madeMultisigHex: jspb.Message.getFieldWithDefault(msg, 1006, ""), + multisigSetupComplete: jspb.Message.getBooleanFieldWithDefault(msg, 1007, false), + makerReadyToFundMultisig: jspb.Message.getBooleanFieldWithDefault(msg, 1008, false), + multisigDepositInitiated: jspb.Message.getBooleanFieldWithDefault(msg, 1009, false), + takerPreparedDepositTxId: jspb.Message.getFieldWithDefault(msg, 1010, ""), + makerPreparedDepositTxId: jspb.Message.getFieldWithDefault(msg, 1011, "") + }; + + if (includeInstance) { + obj.$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 = new proto.io.bisq.protobuffer.TradingPeer; + reader.readMessage(value,proto.io.bisq.protobuffer.TradingPeer.deserializeBinaryFromReader); + msg.setMaker(value); + break; + case 1002: + var value = new proto.io.bisq.protobuffer.TradingPeer; + reader.readMessage(value,proto.io.bisq.protobuffer.TradingPeer.deserializeBinaryFromReader); + msg.setTaker(value); + break; + case 1003: + var value = new proto.io.bisq.protobuffer.TradingPeer; + reader.readMessage(value,proto.io.bisq.protobuffer.TradingPeer.deserializeBinaryFromReader); + msg.setArbitrator(value); + break; + case 1004: + var value = new proto.io.bisq.protobuffer.NodeAddress; + reader.readMessage(value,proto.io.bisq.protobuffer.NodeAddress.deserializeBinaryFromReader); + msg.setTempTradingPeerNodeAddress(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 {boolean} */ (reader.readBool()); + msg.setMultisigSetupComplete(value); + break; + case 1008: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setMakerReadyToFundMultisig(value); + break; + case 1009: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setMultisigDepositInitiated(value); + break; + case 1010: + var value = /** @type {string} */ (reader.readString()); + msg.setTakerPreparedDepositTxId(value); + break; + case 1011: + var value = /** @type {string} */ (reader.readString()); + msg.setMakerPreparedDepositTxId(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.getMaker(); + if (f != null) { + writer.writeMessage( + 1001, + f, + proto.io.bisq.protobuffer.TradingPeer.serializeBinaryToWriter + ); + } + f = message.getTaker(); + if (f != null) { + writer.writeMessage( + 1002, + f, + proto.io.bisq.protobuffer.TradingPeer.serializeBinaryToWriter + ); + } + f = message.getArbitrator(); + if (f != null) { + writer.writeMessage( + 1003, + f, + proto.io.bisq.protobuffer.TradingPeer.serializeBinaryToWriter + ); + } + f = message.getTempTradingPeerNodeAddress(); + if (f != null) { + writer.writeMessage( + 1004, + f, + proto.io.bisq.protobuffer.NodeAddress.serializeBinaryToWriter + ); + } + f = message.getPreparedMultisigHex(); + if (f.length > 0) { + writer.writeString( + 1005, + f + ); + } + f = message.getMadeMultisigHex(); + if (f.length > 0) { + writer.writeString( + 1006, + f + ); + } + f = message.getMultisigSetupComplete(); + if (f) { + writer.writeBool( + 1007, + f + ); + } + f = message.getMakerReadyToFundMultisig(); + if (f) { + writer.writeBool( + 1008, + f + ); + } + f = message.getMultisigDepositInitiated(); + if (f) { + writer.writeBool( + 1009, + f + ); + } + f = message.getTakerPreparedDepositTxId(); + if (f.length > 0) { + writer.writeString( + 1010, + f + ); + } + f = message.getMakerPreparedDepositTxId(); + if (f.length > 0) { + writer.writeString( + 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} + */ +proto.io.bisq.protobuffer.ProcessModel.prototype.getPayoutTxSignature = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.ProcessModel.prototype.getMyMultiSigPubKey = function() { + return /** @type {string} */ (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} + */ +proto.io.bisq.protobuffer.ProcessModel.prototype.getMediatedPayoutTxSignature = function() { + return /** @type {string} */ (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 TradingPeer maker = 1001; + * @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, 1001)); +}; + + +/** + * @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, 1001, 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, 1001) != null; +}; + + +/** + * optional TradingPeer taker = 1002; + * @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, 1002)); +}; + + +/** + * @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, 1002, 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, 1002) != null; +}; + + +/** + * optional TradingPeer arbitrator = 1003; + * @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, 1003)); +}; + + +/** + * @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, 1003, 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, 1003) != null; +}; + + +/** + * optional NodeAddress temp_trading_peer_node_address = 1004; + * @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, 1004)); +}; + + +/** + * @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, 1004, 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, 1004) != null; +}; + + +/** + * optional string prepared_multisig_hex = 1005; + * @return {string} + */ +proto.io.bisq.protobuffer.ProcessModel.prototype.getPreparedMultisigHex = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1005, "")); +}; + + +/** + * @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, 1005, value); +}; + + +/** + * optional string made_multisig_hex = 1006; + * @return {string} + */ +proto.io.bisq.protobuffer.ProcessModel.prototype.getMadeMultisigHex = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1006, "")); +}; + + +/** + * @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, 1006, value); +}; + + +/** + * optional bool multisig_setup_complete = 1007; + * @return {boolean} + */ +proto.io.bisq.protobuffer.ProcessModel.prototype.getMultisigSetupComplete = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1007, 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, 1007, value); +}; + + +/** + * optional bool maker_ready_to_fund_multisig = 1008; + * @return {boolean} + */ +proto.io.bisq.protobuffer.ProcessModel.prototype.getMakerReadyToFundMultisig = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1008, 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, 1008, value); +}; + + +/** + * optional bool multisig_deposit_initiated = 1009; + * @return {boolean} + */ +proto.io.bisq.protobuffer.ProcessModel.prototype.getMultisigDepositInitiated = 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.setMultisigDepositInitiated = function(value) { + return jspb.Message.setProto3BooleanField(this, 1009, value); +}; + + +/** + * optional string taker_prepared_deposit_tx_id = 1010; + * @return {string} + */ +proto.io.bisq.protobuffer.ProcessModel.prototype.getTakerPreparedDepositTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1010, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this + */ +proto.io.bisq.protobuffer.ProcessModel.prototype.setTakerPreparedDepositTxId = function(value) { + return jspb.Message.setProto3StringField(this, 1010, value); +}; + + +/** + * optional string maker_prepared_deposit_tx_id = 1011; + * @return {string} + */ +proto.io.bisq.protobuffer.ProcessModel.prototype.getMakerPreparedDepositTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1011, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.ProcessModel} returns this + */ +proto.io.bisq.protobuffer.ProcessModel.prototype.setMakerPreparedDepositTxId = function(value) { + return jspb.Message.setProto3StringField(this, 1011, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.TradingPeer.repeatedFields_ = [9]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_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, ""), + paymentAccountPayload: (f = msg.getPaymentAccountPayload()) && proto.io.bisq.protobuffer.PaymentAccountPayload.toObject(includeInstance, f), + payoutAddressString: jspb.Message.getFieldWithDefault(msg, 3, ""), + contractAsJson: jspb.Message.getFieldWithDefault(msg, 4, ""), + contractSignature: jspb.Message.getFieldWithDefault(msg, 5, ""), + 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, 10, 0), + changeOutputAddress: jspb.Message.getFieldWithDefault(msg, 11, ""), + accountAgeWitnessNonce: msg.getAccountAgeWitnessNonce_asB64(), + accountAgeWitnessSignature: msg.getAccountAgeWitnessSignature_asB64(), + currentDate: jspb.Message.getFieldWithDefault(msg, 14, 0), + mediatedPayoutTxSignature: msg.getMediatedPayoutTxSignature_asB64(), + preparedMultisigHex: jspb.Message.getFieldWithDefault(msg, 1001, ""), + madeMultisigHex: jspb.Message.getFieldWithDefault(msg, 1002, ""), + signedPayoutTxHex: jspb.Message.getFieldWithDefault(msg, 1003, "") + }; + + if (includeInstance) { + obj.$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 = new proto.io.bisq.protobuffer.PaymentAccountPayload; + reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccountPayload.deserializeBinaryFromReader); + msg.setPaymentAccountPayload(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setPayoutAddressString(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setContractAsJson(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setContractSignature(value); + break; + case 6: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSignature(value); + break; + case 7: + var value = new proto.io.bisq.protobuffer.PubKeyRing; + reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyRing.deserializeBinaryFromReader); + msg.setPubKeyRing(value); + break; + case 8: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setMultiSigPubKey(value); + break; + case 9: + var value = new proto.io.bisq.protobuffer.RawTransactionInput; + reader.readMessage(value,proto.io.bisq.protobuffer.RawTransactionInput.deserializeBinaryFromReader); + msg.addRawTransactionInputs(value); + break; + case 10: + var value = /** @type {number} */ (reader.readInt64()); + msg.setChangeOutputValue(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setChangeOutputAddress(value); + break; + case 12: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setAccountAgeWitnessNonce(value); + break; + case 13: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setAccountAgeWitnessSignature(value); + break; + case 14: + var value = /** @type {number} */ (reader.readInt64()); + msg.setCurrentDate(value); + break; + case 15: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setMediatedPayoutTxSignature(value); + break; + case 1001: + var value = /** @type {string} */ (reader.readString()); + msg.setPreparedMultisigHex(value); + break; + case 1002: + var value = /** @type {string} */ (reader.readString()); + msg.setMadeMultisigHex(value); + break; + case 1003: + var value = /** @type {string} */ (reader.readString()); + msg.setSignedPayoutTxHex(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.getPaymentAccountPayload(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.io.bisq.protobuffer.PaymentAccountPayload.serializeBinaryToWriter + ); + } + f = message.getPayoutAddressString(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getContractAsJson(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getContractSignature(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getSignature_asU8(); + if (f.length > 0) { + writer.writeBytes( + 6, + f + ); + } + f = message.getPubKeyRing(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter + ); + } + f = message.getMultiSigPubKey_asU8(); + if (f.length > 0) { + writer.writeBytes( + 8, + f + ); + } + f = message.getRawTransactionInputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 9, + f, + proto.io.bisq.protobuffer.RawTransactionInput.serializeBinaryToWriter + ); + } + f = message.getChangeOutputValue(); + if (f !== 0) { + writer.writeInt64( + 10, + f + ); + } + f = message.getChangeOutputAddress(); + if (f.length > 0) { + writer.writeString( + 11, + f + ); + } + f = message.getAccountAgeWitnessNonce_asU8(); + if (f.length > 0) { + writer.writeBytes( + 12, + f + ); + } + f = message.getAccountAgeWitnessSignature_asU8(); + if (f.length > 0) { + writer.writeBytes( + 13, + f + ); + } + f = message.getCurrentDate(); + if (f !== 0) { + writer.writeInt64( + 14, + f + ); + } + f = message.getMediatedPayoutTxSignature_asU8(); + if (f.length > 0) { + writer.writeBytes( + 15, + f + ); + } + f = message.getPreparedMultisigHex(); + if (f.length > 0) { + writer.writeString( + 1001, + f + ); + } + f = message.getMadeMultisigHex(); + if (f.length > 0) { + writer.writeString( + 1002, + f + ); + } + f = message.getSignedPayoutTxHex(); + if (f.length > 0) { + writer.writeString( + 1003, + 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 PaymentAccountPayload payment_account_payload = 2; + * @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, 2)); +}; + + +/** + * @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, 2, 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, 2) != null; +}; + + +/** + * optional string payout_address_string = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.TradingPeer.prototype.getPayoutAddressString = 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.setPayoutAddressString = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string contract_as_json = 4; + * @return {string} + */ +proto.io.bisq.protobuffer.TradingPeer.prototype.getContractAsJson = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @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, 4, value); +}; + + +/** + * optional string contract_signature = 5; + * @return {string} + */ +proto.io.bisq.protobuffer.TradingPeer.prototype.getContractSignature = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @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, 5, value); +}; + + +/** + * optional bytes signature = 6; + * @return {string} + */ +proto.io.bisq.protobuffer.TradingPeer.prototype.getSignature = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * optional bytes signature = 6; + * 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 = 6; + * 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, 6, value); +}; + + +/** + * optional PubKeyRing pub_key_ring = 7; + * @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, 7)); +}; + + +/** + * @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, 7, 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, 7) != null; +}; + + +/** + * optional bytes multi_sig_pub_key = 8; + * @return {string} + */ +proto.io.bisq.protobuffer.TradingPeer.prototype.getMultiSigPubKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * optional bytes multi_sig_pub_key = 8; + * 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 = 8; + * 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, 8, value); +}; + + +/** + * repeated RawTransactionInput raw_transaction_inputs = 9; + * @return {!Array} + */ +proto.io.bisq.protobuffer.TradingPeer.prototype.getRawTransactionInputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.RawTransactionInput, 9)); +}; + + +/** + * @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, 9, 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, 9, 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 = 10; + * @return {number} + */ +proto.io.bisq.protobuffer.TradingPeer.prototype.getChangeOutputValue = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 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, 10, value); +}; + + +/** + * optional string change_output_address = 11; + * @return {string} + */ +proto.io.bisq.protobuffer.TradingPeer.prototype.getChangeOutputAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * @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, 11, value); +}; + + +/** + * optional bytes account_age_witness_nonce = 12; + * @return {string} + */ +proto.io.bisq.protobuffer.TradingPeer.prototype.getAccountAgeWitnessNonce = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +}; + + +/** + * optional bytes account_age_witness_nonce = 12; + * 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 = 12; + * 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, 12, value); +}; + + +/** + * optional bytes account_age_witness_signature = 13; + * @return {string} + */ +proto.io.bisq.protobuffer.TradingPeer.prototype.getAccountAgeWitnessSignature = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); +}; + + +/** + * optional bytes account_age_witness_signature = 13; + * 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 = 13; + * 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, 13, value); +}; + + +/** + * optional int64 current_date = 14; + * @return {number} + */ +proto.io.bisq.protobuffer.TradingPeer.prototype.getCurrentDate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 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, 14, value); +}; + + +/** + * optional bytes mediated_payout_tx_signature = 15; + * @return {string} + */ +proto.io.bisq.protobuffer.TradingPeer.prototype.getMediatedPayoutTxSignature = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); +}; + + +/** + * optional bytes mediated_payout_tx_signature = 15; + * 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 = 15; + * 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, 15, value); +}; + + +/** + * optional string prepared_multisig_hex = 1001; + * @return {string} + */ +proto.io.bisq.protobuffer.TradingPeer.prototype.getPreparedMultisigHex = 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.setPreparedMultisigHex = function(value) { + return jspb.Message.setProto3StringField(this, 1001, value); +}; + + +/** + * optional string made_multisig_hex = 1002; + * @return {string} + */ +proto.io.bisq.protobuffer.TradingPeer.prototype.getMadeMultisigHex = 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.setMadeMultisigHex = function(value) { + return jspb.Message.setProto3StringField(this, 1002, value); +}; + + +/** + * optional string signed_payout_tx_hex = 1003; + * @return {string} + */ +proto.io.bisq.protobuffer.TradingPeer.prototype.getSignedPayoutTxHex = 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.setSignedPayoutTxHex = function(value) { + return jspb.Message.setProto3StringField(this, 1003, 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,28,34,56]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_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), + bsqBlockChainExplorer: (f = msg.getBsqBlockChainExplorer()) && proto.io.bisq.protobuffer.BlockChainExplorer.toObject(includeInstance, f), + backupDirectory: jspb.Message.getFieldWithDefault(msg, 8, ""), + autoSelectArbitrators: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), + dontShowAgainMapMap: (f = msg.getDontShowAgainMapMap()) ? f.toObject(includeInstance, undefined) : [], + tacAccepted: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), + useTorForBitcoinJ: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), + showOwnOffersInOfferBook: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), + preferredTradeCurrency: (f = msg.getPreferredTradeCurrency()) && proto.io.bisq.protobuffer.TradeCurrency.toObject(includeInstance, f), + withdrawalTxFeeInBytes: jspb.Message.getFieldWithDefault(msg, 15, 0), + useCustomWithdrawalTxFee: jspb.Message.getBooleanFieldWithDefault(msg, 16, false), + maxPriceDistanceInPercent: jspb.Message.getFloatingPointFieldWithDefault(msg, 17, 0.0), + offerBookChartScreenCurrencyCode: jspb.Message.getFieldWithDefault(msg, 18, ""), + tradeChartsScreenCurrencyCode: jspb.Message.getFieldWithDefault(msg, 19, ""), + buyScreenCurrencyCode: jspb.Message.getFieldWithDefault(msg, 20, ""), + sellScreenCurrencyCode: jspb.Message.getFieldWithDefault(msg, 21, ""), + tradeStatisticsTickUnitIndex: jspb.Message.getFieldWithDefault(msg, 22, 0), + resyncSpvRequested: jspb.Message.getBooleanFieldWithDefault(msg, 23, false), + sortMarketCurrenciesNumerically: jspb.Message.getBooleanFieldWithDefault(msg, 24, false), + usePercentageBasedPrice: jspb.Message.getBooleanFieldWithDefault(msg, 25, false), + peerTagMapMap: (f = msg.getPeerTagMapMap()) ? f.toObject(includeInstance, undefined) : [], + bitcoinNodes: jspb.Message.getFieldWithDefault(msg, 27, ""), + ignoreTradersListList: (f = jspb.Message.getRepeatedField(msg, 28)) == null ? undefined : f, + directoryChooserPath: jspb.Message.getFieldWithDefault(msg, 29, ""), + buyerSecurityDepositAsLong: jspb.Message.getFieldWithDefault(msg, 30, 0), + useAnimations: jspb.Message.getBooleanFieldWithDefault(msg, 31, false), + selectedpaymentAccountForCreateoffer: (f = msg.getSelectedpaymentAccountForCreateoffer()) && proto.io.bisq.protobuffer.PaymentAccount.toObject(includeInstance, f), + payFeeInBtc: jspb.Message.getBooleanFieldWithDefault(msg, 33, false), + bridgeAddressesList: (f = jspb.Message.getRepeatedField(msg, 34)) == null ? undefined : f, + bridgeOptionOrdinal: jspb.Message.getFieldWithDefault(msg, 35, 0), + torTransportOrdinal: jspb.Message.getFieldWithDefault(msg, 36, 0), + customBridges: jspb.Message.getFieldWithDefault(msg, 37, ""), + bitcoinNodesOptionOrdinal: jspb.Message.getFieldWithDefault(msg, 38, 0), + referralId: jspb.Message.getFieldWithDefault(msg, 39, ""), + phoneKeyAndToken: jspb.Message.getFieldWithDefault(msg, 40, ""), + useSoundForMobileNotifications: jspb.Message.getBooleanFieldWithDefault(msg, 41, false), + useTradeNotifications: jspb.Message.getBooleanFieldWithDefault(msg, 42, false), + useMarketNotifications: jspb.Message.getBooleanFieldWithDefault(msg, 43, false), + usePriceNotifications: jspb.Message.getBooleanFieldWithDefault(msg, 44, false), + useStandbyMode: jspb.Message.getBooleanFieldWithDefault(msg, 45, false), + isDaoFullNode: jspb.Message.getBooleanFieldWithDefault(msg, 46, false), + rpcUser: jspb.Message.getFieldWithDefault(msg, 47, ""), + rpcPw: jspb.Message.getFieldWithDefault(msg, 48, ""), + takeOfferSelectedPaymentAccountId: jspb.Message.getFieldWithDefault(msg, 49, ""), + buyerSecurityDepositAsPercent: jspb.Message.getFloatingPointFieldWithDefault(msg, 50, 0.0), + ignoreDustThreshold: jspb.Message.getFieldWithDefault(msg, 51, 0), + buyerSecurityDepositAsPercentForCrypto: jspb.Message.getFloatingPointFieldWithDefault(msg, 52, 0.0), + blockNotifyPort: jspb.Message.getFieldWithDefault(msg, 53, 0), + cssTheme: jspb.Message.getFieldWithDefault(msg, 54, 0), + tacAcceptedV120: jspb.Message.getBooleanFieldWithDefault(msg, 55, false), + autoConfirmSettingsList: jspb.Message.toObjectList(msg.getAutoConfirmSettingsList(), + proto.io.bisq.protobuffer.AutoConfirmSettings.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$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 = new proto.io.bisq.protobuffer.BlockChainExplorer; + reader.readMessage(value,proto.io.bisq.protobuffer.BlockChainExplorer.deserializeBinaryFromReader); + msg.setBsqBlockChainExplorer(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setBackupDirectory(value); + break; + case 9: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setAutoSelectArbitrators(value); + break; + case 10: + 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 11: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setTacAccepted(value); + break; + case 12: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setUseTorForBitcoinJ(value); + break; + case 13: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShowOwnOffersInOfferBook(value); + break; + case 14: + var value = new proto.io.bisq.protobuffer.TradeCurrency; + reader.readMessage(value,proto.io.bisq.protobuffer.TradeCurrency.deserializeBinaryFromReader); + msg.setPreferredTradeCurrency(value); + break; + case 15: + var value = /** @type {number} */ (reader.readInt64()); + msg.setWithdrawalTxFeeInBytes(value); + break; + case 16: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setUseCustomWithdrawalTxFee(value); + break; + case 17: + var value = /** @type {number} */ (reader.readDouble()); + msg.setMaxPriceDistanceInPercent(value); + break; + case 18: + var value = /** @type {string} */ (reader.readString()); + msg.setOfferBookChartScreenCurrencyCode(value); + break; + case 19: + var value = /** @type {string} */ (reader.readString()); + msg.setTradeChartsScreenCurrencyCode(value); + break; + case 20: + var value = /** @type {string} */ (reader.readString()); + msg.setBuyScreenCurrencyCode(value); + break; + case 21: + var value = /** @type {string} */ (reader.readString()); + msg.setSellScreenCurrencyCode(value); + break; + case 22: + var value = /** @type {number} */ (reader.readInt32()); + msg.setTradeStatisticsTickUnitIndex(value); + break; + case 23: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setResyncSpvRequested(value); + break; + case 24: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortMarketCurrenciesNumerically(value); + break; + case 25: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setUsePercentageBasedPrice(value); + break; + case 26: + 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 27: + var value = /** @type {string} */ (reader.readString()); + msg.setBitcoinNodes(value); + break; + case 28: + var value = /** @type {string} */ (reader.readString()); + msg.addIgnoreTradersList(value); + break; + case 29: + var value = /** @type {string} */ (reader.readString()); + msg.setDirectoryChooserPath(value); + break; + case 30: + var value = /** @type {number} */ (reader.readInt64()); + msg.setBuyerSecurityDepositAsLong(value); + break; + case 31: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setUseAnimations(value); + break; + case 32: + var value = new proto.io.bisq.protobuffer.PaymentAccount; + reader.readMessage(value,proto.io.bisq.protobuffer.PaymentAccount.deserializeBinaryFromReader); + msg.setSelectedpaymentAccountForCreateoffer(value); + break; + case 33: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setPayFeeInBtc(value); + break; + case 34: + var value = /** @type {string} */ (reader.readString()); + msg.addBridgeAddresses(value); + break; + case 35: + var value = /** @type {number} */ (reader.readInt32()); + msg.setBridgeOptionOrdinal(value); + break; + case 36: + var value = /** @type {number} */ (reader.readInt32()); + msg.setTorTransportOrdinal(value); + break; + case 37: + var value = /** @type {string} */ (reader.readString()); + msg.setCustomBridges(value); + break; + case 38: + var value = /** @type {number} */ (reader.readInt32()); + msg.setBitcoinNodesOptionOrdinal(value); + break; + case 39: + var value = /** @type {string} */ (reader.readString()); + msg.setReferralId(value); + break; + case 40: + var value = /** @type {string} */ (reader.readString()); + msg.setPhoneKeyAndToken(value); + break; + case 41: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setUseSoundForMobileNotifications(value); + break; + case 42: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setUseTradeNotifications(value); + break; + case 43: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setUseMarketNotifications(value); + break; + case 44: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setUsePriceNotifications(value); + break; + case 45: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setUseStandbyMode(value); + break; + case 46: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsDaoFullNode(value); + break; + case 47: + var value = /** @type {string} */ (reader.readString()); + msg.setRpcUser(value); + break; + case 48: + var value = /** @type {string} */ (reader.readString()); + msg.setRpcPw(value); + break; + case 49: + var value = /** @type {string} */ (reader.readString()); + msg.setTakeOfferSelectedPaymentAccountId(value); + break; + case 50: + var value = /** @type {number} */ (reader.readDouble()); + msg.setBuyerSecurityDepositAsPercent(value); + break; + case 51: + var value = /** @type {number} */ (reader.readInt32()); + msg.setIgnoreDustThreshold(value); + break; + case 52: + var value = /** @type {number} */ (reader.readDouble()); + msg.setBuyerSecurityDepositAsPercentForCrypto(value); + break; + case 53: + var value = /** @type {number} */ (reader.readInt32()); + msg.setBlockNotifyPort(value); + break; + case 54: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCssTheme(value); + break; + case 55: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setTacAcceptedV120(value); + break; + case 56: + var value = new proto.io.bisq.protobuffer.AutoConfirmSettings; + reader.readMessage(value,proto.io.bisq.protobuffer.AutoConfirmSettings.deserializeBinaryFromReader); + msg.addAutoConfirmSettings(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.getBsqBlockChainExplorer(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.io.bisq.protobuffer.BlockChainExplorer.serializeBinaryToWriter + ); + } + f = message.getBackupDirectory(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getAutoSelectArbitrators(); + if (f) { + writer.writeBool( + 9, + f + ); + } + f = message.getDontShowAgainMapMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(10, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeBool); + } + f = message.getTacAccepted(); + if (f) { + writer.writeBool( + 11, + f + ); + } + f = message.getUseTorForBitcoinJ(); + if (f) { + writer.writeBool( + 12, + f + ); + } + f = message.getShowOwnOffersInOfferBook(); + if (f) { + writer.writeBool( + 13, + f + ); + } + f = message.getPreferredTradeCurrency(); + if (f != null) { + writer.writeMessage( + 14, + f, + proto.io.bisq.protobuffer.TradeCurrency.serializeBinaryToWriter + ); + } + f = message.getWithdrawalTxFeeInBytes(); + if (f !== 0) { + writer.writeInt64( + 15, + f + ); + } + f = message.getUseCustomWithdrawalTxFee(); + if (f) { + writer.writeBool( + 16, + f + ); + } + f = message.getMaxPriceDistanceInPercent(); + if (f !== 0.0) { + writer.writeDouble( + 17, + f + ); + } + f = message.getOfferBookChartScreenCurrencyCode(); + if (f.length > 0) { + writer.writeString( + 18, + f + ); + } + f = message.getTradeChartsScreenCurrencyCode(); + if (f.length > 0) { + writer.writeString( + 19, + f + ); + } + f = message.getBuyScreenCurrencyCode(); + if (f.length > 0) { + writer.writeString( + 20, + f + ); + } + f = message.getSellScreenCurrencyCode(); + if (f.length > 0) { + writer.writeString( + 21, + f + ); + } + f = message.getTradeStatisticsTickUnitIndex(); + if (f !== 0) { + writer.writeInt32( + 22, + f + ); + } + f = message.getResyncSpvRequested(); + if (f) { + writer.writeBool( + 23, + f + ); + } + f = message.getSortMarketCurrenciesNumerically(); + if (f) { + writer.writeBool( + 24, + f + ); + } + f = message.getUsePercentageBasedPrice(); + if (f) { + writer.writeBool( + 25, + f + ); + } + f = message.getPeerTagMapMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(26, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getBitcoinNodes(); + if (f.length > 0) { + writer.writeString( + 27, + f + ); + } + f = message.getIgnoreTradersListList(); + if (f.length > 0) { + writer.writeRepeatedString( + 28, + f + ); + } + f = message.getDirectoryChooserPath(); + if (f.length > 0) { + writer.writeString( + 29, + f + ); + } + f = message.getBuyerSecurityDepositAsLong(); + if (f !== 0) { + writer.writeInt64( + 30, + f + ); + } + f = message.getUseAnimations(); + if (f) { + writer.writeBool( + 31, + f + ); + } + f = message.getSelectedpaymentAccountForCreateoffer(); + if (f != null) { + writer.writeMessage( + 32, + f, + proto.io.bisq.protobuffer.PaymentAccount.serializeBinaryToWriter + ); + } + f = message.getPayFeeInBtc(); + if (f) { + writer.writeBool( + 33, + f + ); + } + f = message.getBridgeAddressesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 34, + f + ); + } + f = message.getBridgeOptionOrdinal(); + if (f !== 0) { + writer.writeInt32( + 35, + f + ); + } + f = message.getTorTransportOrdinal(); + if (f !== 0) { + writer.writeInt32( + 36, + f + ); + } + f = message.getCustomBridges(); + if (f.length > 0) { + writer.writeString( + 37, + f + ); + } + f = message.getBitcoinNodesOptionOrdinal(); + if (f !== 0) { + writer.writeInt32( + 38, + f + ); + } + f = message.getReferralId(); + if (f.length > 0) { + writer.writeString( + 39, + f + ); + } + f = message.getPhoneKeyAndToken(); + if (f.length > 0) { + writer.writeString( + 40, + f + ); + } + f = message.getUseSoundForMobileNotifications(); + if (f) { + writer.writeBool( + 41, + f + ); + } + f = message.getUseTradeNotifications(); + if (f) { + writer.writeBool( + 42, + f + ); + } + f = message.getUseMarketNotifications(); + if (f) { + writer.writeBool( + 43, + f + ); + } + f = message.getUsePriceNotifications(); + if (f) { + writer.writeBool( + 44, + f + ); + } + f = message.getUseStandbyMode(); + if (f) { + writer.writeBool( + 45, + f + ); + } + f = message.getIsDaoFullNode(); + if (f) { + writer.writeBool( + 46, + f + ); + } + f = message.getRpcUser(); + if (f.length > 0) { + writer.writeString( + 47, + f + ); + } + f = message.getRpcPw(); + if (f.length > 0) { + writer.writeString( + 48, + f + ); + } + f = message.getTakeOfferSelectedPaymentAccountId(); + if (f.length > 0) { + writer.writeString( + 49, + f + ); + } + f = message.getBuyerSecurityDepositAsPercent(); + if (f !== 0.0) { + writer.writeDouble( + 50, + f + ); + } + f = message.getIgnoreDustThreshold(); + if (f !== 0) { + writer.writeInt32( + 51, + f + ); + } + f = message.getBuyerSecurityDepositAsPercentForCrypto(); + if (f !== 0.0) { + writer.writeDouble( + 52, + f + ); + } + f = message.getBlockNotifyPort(); + if (f !== 0) { + writer.writeInt32( + 53, + f + ); + } + f = message.getCssTheme(); + if (f !== 0) { + writer.writeInt32( + 54, + f + ); + } + f = message.getTacAcceptedV120(); + if (f) { + writer.writeBool( + 55, + f + ); + } + f = message.getAutoConfirmSettingsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 56, + f, + proto.io.bisq.protobuffer.AutoConfirmSettings.serializeBinaryToWriter + ); + } +}; + + +/** + * 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 BlockChainExplorer bsq_block_chain_explorer = 7; + * @return {?proto.io.bisq.protobuffer.BlockChainExplorer} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBsqBlockChainExplorer = function() { + return /** @type{?proto.io.bisq.protobuffer.BlockChainExplorer} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.BlockChainExplorer, 7)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.BlockChainExplorer|undefined} value + * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this +*/ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.setBsqBlockChainExplorer = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.clearBsqBlockChainExplorer = function() { + return this.setBsqBlockChainExplorer(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.hasBsqBlockChainExplorer = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional string backup_directory = 8; + * @return {string} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBackupDirectory = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * @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, 8, value); +}; + + +/** + * optional bool auto_select_arbitrators = 9; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getAutoSelectArbitrators = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, 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, 9, value); +}; + + +/** + * map dont_show_again_map = 10; + * @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, 10, 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 = 11; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getTacAccepted = 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.setTacAccepted = function(value) { + return jspb.Message.setProto3BooleanField(this, 11, value); +}; + + +/** + * optional bool use_tor_for_bitcoin_j = 12; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUseTorForBitcoinJ = 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.setUseTorForBitcoinJ = function(value) { + return jspb.Message.setProto3BooleanField(this, 12, value); +}; + + +/** + * optional bool show_own_offers_in_offer_book = 13; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getShowOwnOffersInOfferBook = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, 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, 13, value); +}; + + +/** + * optional TradeCurrency preferred_trade_currency = 14; + * @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, 14)); +}; + + +/** + * @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, 14, 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, 14) != null; +}; + + +/** + * optional int64 withdrawal_tx_fee_in_bytes = 15; + * @return {number} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getWithdrawalTxFeeInBytes = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.setWithdrawalTxFeeInBytes = function(value) { + return jspb.Message.setProto3IntField(this, 15, value); +}; + + +/** + * optional bool use_custom_withdrawal_tx_fee = 16; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUseCustomWithdrawalTxFee = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, 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, 16, value); +}; + + +/** + * optional double max_price_distance_in_percent = 17; + * @return {number} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getMaxPriceDistanceInPercent = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 17, 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, 17, value); +}; + + +/** + * optional string offer_book_chart_screen_currency_code = 18; + * @return {string} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getOfferBookChartScreenCurrencyCode = 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.setOfferBookChartScreenCurrencyCode = function(value) { + return jspb.Message.setProto3StringField(this, 18, value); +}; + + +/** + * optional string trade_charts_screen_currency_code = 19; + * @return {string} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getTradeChartsScreenCurrencyCode = 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.setTradeChartsScreenCurrencyCode = function(value) { + return jspb.Message.setProto3StringField(this, 19, value); +}; + + +/** + * optional string buy_screen_currency_code = 20; + * @return {string} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBuyScreenCurrencyCode = 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.setBuyScreenCurrencyCode = function(value) { + return jspb.Message.setProto3StringField(this, 20, value); +}; + + +/** + * optional string sell_screen_currency_code = 21; + * @return {string} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getSellScreenCurrencyCode = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, "")); +}; + + +/** + * @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, 21, value); +}; + + +/** + * optional int32 trade_statistics_tick_unit_index = 22; + * @return {number} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getTradeStatisticsTickUnitIndex = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 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, 22, value); +}; + + +/** + * optional bool resync_Spv_requested = 23; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getResyncSpvRequested = 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.setResyncSpvRequested = function(value) { + return jspb.Message.setProto3BooleanField(this, 23, value); +}; + + +/** + * optional bool sort_market_currencies_numerically = 24; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getSortMarketCurrenciesNumerically = 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.setSortMarketCurrenciesNumerically = function(value) { + return jspb.Message.setProto3BooleanField(this, 24, value); +}; + + +/** + * optional bool use_percentage_based_price = 25; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUsePercentageBasedPrice = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 25, 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, 25, value); +}; + + +/** + * map peer_tag_map = 26; + * @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, 26, 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 = 27; + * @return {string} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBitcoinNodes = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 27, "")); +}; + + +/** + * @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, 27, value); +}; + + +/** + * repeated string ignore_traders_list = 28; + * @return {!Array} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getIgnoreTradersListList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 28)); +}; + + +/** + * @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, 28, 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, 28, 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 = 29; + * @return {string} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getDirectoryChooserPath = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 29, "")); +}; + + +/** + * @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, 29, value); +}; + + +/** + * optional int64 buyer_security_deposit_as_long = 30; + * @return {number} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBuyerSecurityDepositAsLong = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 30, 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, 30, value); +}; + + +/** + * optional bool use_animations = 31; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUseAnimations = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 31, 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, 31, value); +}; + + +/** + * optional PaymentAccount selectedPayment_account_for_createOffer = 32; + * @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, 32)); +}; + + +/** + * @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, 32, 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, 32) != null; +}; + + +/** + * optional bool pay_fee_in_Btc = 33; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getPayFeeInBtc = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 33, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.setPayFeeInBtc = function(value) { + return jspb.Message.setProto3BooleanField(this, 33, value); +}; + + +/** + * repeated string bridge_addresses = 34; + * @return {!Array} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBridgeAddressesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 34)); +}; + + +/** + * @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, 34, 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, 34, 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 = 35; + * @return {number} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBridgeOptionOrdinal = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 35, 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, 35, value); +}; + + +/** + * optional int32 tor_transport_ordinal = 36; + * @return {number} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getTorTransportOrdinal = 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.setTorTransportOrdinal = function(value) { + return jspb.Message.setProto3IntField(this, 36, value); +}; + + +/** + * optional string custom_bridges = 37; + * @return {string} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getCustomBridges = 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.setCustomBridges = function(value) { + return jspb.Message.setProto3StringField(this, 37, value); +}; + + +/** + * optional int32 bitcoin_nodes_option_ordinal = 38; + * @return {number} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBitcoinNodesOptionOrdinal = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 38, 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, 38, value); +}; + + +/** + * optional string referral_id = 39; + * @return {string} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getReferralId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 39, "")); +}; + + +/** + * @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, 39, value); +}; + + +/** + * optional string phone_key_and_token = 40; + * @return {string} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getPhoneKeyAndToken = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 40, "")); +}; + + +/** + * @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, 40, value); +}; + + +/** + * optional bool use_sound_for_mobile_notifications = 41; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUseSoundForMobileNotifications = 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.setUseSoundForMobileNotifications = function(value) { + return jspb.Message.setProto3BooleanField(this, 41, value); +}; + + +/** + * optional bool use_trade_notifications = 42; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUseTradeNotifications = 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.setUseTradeNotifications = function(value) { + return jspb.Message.setProto3BooleanField(this, 42, value); +}; + + +/** + * optional bool use_market_notifications = 43; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUseMarketNotifications = 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.setUseMarketNotifications = function(value) { + return jspb.Message.setProto3BooleanField(this, 43, value); +}; + + +/** + * optional bool use_price_notifications = 44; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUsePriceNotifications = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 44, 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, 44, value); +}; + + +/** + * optional bool use_standby_mode = 45; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getUseStandbyMode = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 45, 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, 45, value); +}; + + +/** + * optional bool is_dao_full_node = 46; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getIsDaoFullNode = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 46, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.PreferencesPayload} returns this + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.setIsDaoFullNode = function(value) { + return jspb.Message.setProto3BooleanField(this, 46, value); +}; + + +/** + * optional string rpc_user = 47; + * @return {string} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getRpcUser = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 47, "")); +}; + + +/** + * @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, 47, value); +}; + + +/** + * optional string rpc_pw = 48; + * @return {string} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getRpcPw = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 48, "")); +}; + + +/** + * @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, 48, value); +}; + + +/** + * optional string take_offer_selected_payment_account_id = 49; + * @return {string} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getTakeOfferSelectedPaymentAccountId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 49, "")); +}; + + +/** + * @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, 49, value); +}; + + +/** + * optional double buyer_security_deposit_as_percent = 50; + * @return {number} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBuyerSecurityDepositAsPercent = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 50, 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, 50, value); +}; + + +/** + * optional int32 ignore_dust_threshold = 51; + * @return {number} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getIgnoreDustThreshold = 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.setIgnoreDustThreshold = function(value) { + return jspb.Message.setProto3IntField(this, 51, value); +}; + + +/** + * optional double buyer_security_deposit_as_percent_for_crypto = 52; + * @return {number} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBuyerSecurityDepositAsPercentForCrypto = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 52, 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, 52, value); +}; + + +/** + * optional int32 block_notify_port = 53; + * @return {number} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getBlockNotifyPort = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 53, 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, 53, value); +}; + + +/** + * optional int32 css_theme = 54; + * @return {number} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getCssTheme = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 54, 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, 54, value); +}; + + +/** + * optional bool tac_accepted_v120 = 55; + * @return {boolean} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getTacAcceptedV120 = 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.setTacAcceptedV120 = function(value) { + return jspb.Message.setProto3BooleanField(this, 55, value); +}; + + +/** + * repeated AutoConfirmSettings auto_confirm_settings = 56; + * @return {!Array} + */ +proto.io.bisq.protobuffer.PreferencesPayload.prototype.getAutoConfirmSettingsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.AutoConfirmSettings, 56)); +}; + + +/** + * @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, 56, 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, 56, 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([]); +}; + + + +/** + * 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) + }; + + if (includeInstance) { + obj.$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; + 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 + ); + } +}; + + +/** + * 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; +}; + + + +/** + * 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.BaseBlock.oneofGroups_ = [[5,6]]; + +/** + * @enum {number} + */ +proto.io.bisq.protobuffer.BaseBlock.MessageCase = { + MESSAGE_NOT_SET: 0, + RAW_BLOCK: 5, + BLOCK: 6 +}; + +/** + * @return {proto.io.bisq.protobuffer.BaseBlock.MessageCase} + */ +proto.io.bisq.protobuffer.BaseBlock.prototype.getMessageCase = function() { + return /** @type {proto.io.bisq.protobuffer.BaseBlock.MessageCase} */(jspb.Message.computeOneofCase(this, proto.io.bisq.protobuffer.BaseBlock.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.BaseBlock.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.BaseBlock.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.BaseBlock} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BaseBlock.toObject = function(includeInstance, msg) { + var f, obj = { + height: jspb.Message.getFieldWithDefault(msg, 1, 0), + time: jspb.Message.getFieldWithDefault(msg, 2, 0), + hash: jspb.Message.getFieldWithDefault(msg, 3, ""), + previousBlockHash: jspb.Message.getFieldWithDefault(msg, 4, ""), + rawBlock: (f = msg.getRawBlock()) && proto.io.bisq.protobuffer.RawBlock.toObject(includeInstance, f), + block: (f = msg.getBlock()) && proto.io.bisq.protobuffer.Block.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.BaseBlock} + */ +proto.io.bisq.protobuffer.BaseBlock.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.BaseBlock; + return proto.io.bisq.protobuffer.BaseBlock.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.BaseBlock} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.BaseBlock} + */ +proto.io.bisq.protobuffer.BaseBlock.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.setHeight(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setTime(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setHash(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setPreviousBlockHash(value); + break; + case 5: + var value = new proto.io.bisq.protobuffer.RawBlock; + reader.readMessage(value,proto.io.bisq.protobuffer.RawBlock.deserializeBinaryFromReader); + msg.setRawBlock(value); + break; + case 6: + var value = new proto.io.bisq.protobuffer.Block; + reader.readMessage(value,proto.io.bisq.protobuffer.Block.deserializeBinaryFromReader); + msg.setBlock(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.BaseBlock.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.BaseBlock.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.BaseBlock} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BaseBlock.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHeight(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getTime(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getHash(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getPreviousBlockHash(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getRawBlock(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.io.bisq.protobuffer.RawBlock.serializeBinaryToWriter + ); + } + f = message.getBlock(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.io.bisq.protobuffer.Block.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 height = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.BaseBlock.prototype.getHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BaseBlock} returns this + */ +proto.io.bisq.protobuffer.BaseBlock.prototype.setHeight = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int64 time = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.BaseBlock.prototype.getTime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BaseBlock} returns this + */ +proto.io.bisq.protobuffer.BaseBlock.prototype.setTime = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional string hash = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.BaseBlock.prototype.getHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.BaseBlock} returns this + */ +proto.io.bisq.protobuffer.BaseBlock.prototype.setHash = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string previous_block_hash = 4; + * @return {string} + */ +proto.io.bisq.protobuffer.BaseBlock.prototype.getPreviousBlockHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.BaseBlock} returns this + */ +proto.io.bisq.protobuffer.BaseBlock.prototype.setPreviousBlockHash = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional RawBlock raw_block = 5; + * @return {?proto.io.bisq.protobuffer.RawBlock} + */ +proto.io.bisq.protobuffer.BaseBlock.prototype.getRawBlock = function() { + return /** @type{?proto.io.bisq.protobuffer.RawBlock} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.RawBlock, 5)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.RawBlock|undefined} value + * @return {!proto.io.bisq.protobuffer.BaseBlock} returns this +*/ +proto.io.bisq.protobuffer.BaseBlock.prototype.setRawBlock = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.io.bisq.protobuffer.BaseBlock.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.BaseBlock} returns this + */ +proto.io.bisq.protobuffer.BaseBlock.prototype.clearRawBlock = function() { + return this.setRawBlock(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.BaseBlock.prototype.hasRawBlock = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional Block block = 6; + * @return {?proto.io.bisq.protobuffer.Block} + */ +proto.io.bisq.protobuffer.BaseBlock.prototype.getBlock = function() { + return /** @type{?proto.io.bisq.protobuffer.Block} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Block, 6)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.Block|undefined} value + * @return {!proto.io.bisq.protobuffer.BaseBlock} returns this +*/ +proto.io.bisq.protobuffer.BaseBlock.prototype.setBlock = function(value) { + return jspb.Message.setOneofWrapperField(this, 6, proto.io.bisq.protobuffer.BaseBlock.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.BaseBlock} returns this + */ +proto.io.bisq.protobuffer.BaseBlock.prototype.clearBlock = function() { + return this.setBlock(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.BaseBlock.prototype.hasBlock = function() { + return jspb.Message.getField(this, 6) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.RawBlock.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.RawBlock.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.RawBlock.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.RawBlock} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.RawBlock.toObject = function(includeInstance, msg) { + var f, obj = { + rawTxsList: jspb.Message.toObjectList(msg.getRawTxsList(), + proto.io.bisq.protobuffer.BaseTx.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.RawBlock} + */ +proto.io.bisq.protobuffer.RawBlock.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.RawBlock; + return proto.io.bisq.protobuffer.RawBlock.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.RawBlock} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.RawBlock} + */ +proto.io.bisq.protobuffer.RawBlock.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.BaseTx; + reader.readMessage(value,proto.io.bisq.protobuffer.BaseTx.deserializeBinaryFromReader); + msg.addRawTxs(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.RawBlock.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.RawBlock.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.RawBlock} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.RawBlock.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRawTxsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.BaseTx.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated BaseTx raw_txs = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.RawBlock.prototype.getRawTxsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.BaseTx, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.RawBlock} returns this +*/ +proto.io.bisq.protobuffer.RawBlock.prototype.setRawTxsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.BaseTx=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.BaseTx} + */ +proto.io.bisq.protobuffer.RawBlock.prototype.addRawTxs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.BaseTx, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.RawBlock} returns this + */ +proto.io.bisq.protobuffer.RawBlock.prototype.clearRawTxsList = function() { + return this.setRawTxsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.Block.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.Block.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.Block.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.Block} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.Block.toObject = function(includeInstance, msg) { + var f, obj = { + txsList: jspb.Message.toObjectList(msg.getTxsList(), + proto.io.bisq.protobuffer.BaseTx.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.Block} + */ +proto.io.bisq.protobuffer.Block.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.Block; + return proto.io.bisq.protobuffer.Block.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.Block} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.Block} + */ +proto.io.bisq.protobuffer.Block.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.BaseTx; + reader.readMessage(value,proto.io.bisq.protobuffer.BaseTx.deserializeBinaryFromReader); + msg.addTxs(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.Block.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.Block.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.Block} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.Block.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTxsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.BaseTx.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated BaseTx txs = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.Block.prototype.getTxsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.BaseTx, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.Block} returns this +*/ +proto.io.bisq.protobuffer.Block.prototype.setTxsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.BaseTx=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.BaseTx} + */ +proto.io.bisq.protobuffer.Block.prototype.addTxs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.BaseTx, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.Block} returns this + */ +proto.io.bisq.protobuffer.Block.prototype.clearTxsList = function() { + return this.setTxsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.BaseTx.repeatedFields_ = [6]; + +/** + * 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.BaseTx.oneofGroups_ = [[7,8]]; + +/** + * @enum {number} + */ +proto.io.bisq.protobuffer.BaseTx.MessageCase = { + MESSAGE_NOT_SET: 0, + RAW_TX: 7, + TX: 8 +}; + +/** + * @return {proto.io.bisq.protobuffer.BaseTx.MessageCase} + */ +proto.io.bisq.protobuffer.BaseTx.prototype.getMessageCase = function() { + return /** @type {proto.io.bisq.protobuffer.BaseTx.MessageCase} */(jspb.Message.computeOneofCase(this, proto.io.bisq.protobuffer.BaseTx.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.BaseTx.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.BaseTx.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.BaseTx} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BaseTx.toObject = function(includeInstance, msg) { + var f, obj = { + txVersion: jspb.Message.getFieldWithDefault(msg, 1, ""), + id: jspb.Message.getFieldWithDefault(msg, 2, ""), + blockHeight: jspb.Message.getFieldWithDefault(msg, 3, 0), + blockHash: jspb.Message.getFieldWithDefault(msg, 4, ""), + time: jspb.Message.getFieldWithDefault(msg, 5, 0), + txInputsList: jspb.Message.toObjectList(msg.getTxInputsList(), + proto.io.bisq.protobuffer.TxInput.toObject, includeInstance), + rawTx: (f = msg.getRawTx()) && proto.io.bisq.protobuffer.RawTx.toObject(includeInstance, f), + tx: (f = msg.getTx()) && proto.io.bisq.protobuffer.Tx.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.BaseTx} + */ +proto.io.bisq.protobuffer.BaseTx.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.BaseTx; + return proto.io.bisq.protobuffer.BaseTx.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.BaseTx} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.BaseTx} + */ +proto.io.bisq.protobuffer.BaseTx.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.setTxVersion(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setBlockHeight(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setBlockHash(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt64()); + msg.setTime(value); + break; + case 6: + var value = new proto.io.bisq.protobuffer.TxInput; + reader.readMessage(value,proto.io.bisq.protobuffer.TxInput.deserializeBinaryFromReader); + msg.addTxInputs(value); + break; + case 7: + var value = new proto.io.bisq.protobuffer.RawTx; + reader.readMessage(value,proto.io.bisq.protobuffer.RawTx.deserializeBinaryFromReader); + msg.setRawTx(value); + break; + case 8: + var value = new proto.io.bisq.protobuffer.Tx; + reader.readMessage(value,proto.io.bisq.protobuffer.Tx.deserializeBinaryFromReader); + msg.setTx(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.BaseTx.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.BaseTx.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.BaseTx} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BaseTx.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTxVersion(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getBlockHeight(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } + f = message.getBlockHash(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getTime(); + if (f !== 0) { + writer.writeInt64( + 5, + f + ); + } + f = message.getTxInputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 6, + f, + proto.io.bisq.protobuffer.TxInput.serializeBinaryToWriter + ); + } + f = message.getRawTx(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.io.bisq.protobuffer.RawTx.serializeBinaryToWriter + ); + } + f = message.getTx(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.io.bisq.protobuffer.Tx.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string tx_version = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.BaseTx.prototype.getTxVersion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.BaseTx} returns this + */ +proto.io.bisq.protobuffer.BaseTx.prototype.setTxVersion = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string id = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.BaseTx.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.BaseTx} returns this + */ +proto.io.bisq.protobuffer.BaseTx.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional int32 block_height = 3; + * @return {number} + */ +proto.io.bisq.protobuffer.BaseTx.prototype.getBlockHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BaseTx} returns this + */ +proto.io.bisq.protobuffer.BaseTx.prototype.setBlockHeight = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional string block_hash = 4; + * @return {string} + */ +proto.io.bisq.protobuffer.BaseTx.prototype.getBlockHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.BaseTx} returns this + */ +proto.io.bisq.protobuffer.BaseTx.prototype.setBlockHash = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional int64 time = 5; + * @return {number} + */ +proto.io.bisq.protobuffer.BaseTx.prototype.getTime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BaseTx} returns this + */ +proto.io.bisq.protobuffer.BaseTx.prototype.setTime = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * repeated TxInput tx_inputs = 6; + * @return {!Array} + */ +proto.io.bisq.protobuffer.BaseTx.prototype.getTxInputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.TxInput, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.BaseTx} returns this +*/ +proto.io.bisq.protobuffer.BaseTx.prototype.setTxInputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.TxInput=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.TxInput} + */ +proto.io.bisq.protobuffer.BaseTx.prototype.addTxInputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.io.bisq.protobuffer.TxInput, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.BaseTx} returns this + */ +proto.io.bisq.protobuffer.BaseTx.prototype.clearTxInputsList = function() { + return this.setTxInputsList([]); +}; + + +/** + * optional RawTx raw_tx = 7; + * @return {?proto.io.bisq.protobuffer.RawTx} + */ +proto.io.bisq.protobuffer.BaseTx.prototype.getRawTx = function() { + return /** @type{?proto.io.bisq.protobuffer.RawTx} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.RawTx, 7)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.RawTx|undefined} value + * @return {!proto.io.bisq.protobuffer.BaseTx} returns this +*/ +proto.io.bisq.protobuffer.BaseTx.prototype.setRawTx = function(value) { + return jspb.Message.setOneofWrapperField(this, 7, proto.io.bisq.protobuffer.BaseTx.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.BaseTx} returns this + */ +proto.io.bisq.protobuffer.BaseTx.prototype.clearRawTx = function() { + return this.setRawTx(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.BaseTx.prototype.hasRawTx = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional Tx tx = 8; + * @return {?proto.io.bisq.protobuffer.Tx} + */ +proto.io.bisq.protobuffer.BaseTx.prototype.getTx = function() { + return /** @type{?proto.io.bisq.protobuffer.Tx} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Tx, 8)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.Tx|undefined} value + * @return {!proto.io.bisq.protobuffer.BaseTx} returns this +*/ +proto.io.bisq.protobuffer.BaseTx.prototype.setTx = function(value) { + return jspb.Message.setOneofWrapperField(this, 8, proto.io.bisq.protobuffer.BaseTx.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.BaseTx} returns this + */ +proto.io.bisq.protobuffer.BaseTx.prototype.clearTx = function() { + return this.setTx(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.BaseTx.prototype.hasTx = function() { + return jspb.Message.getField(this, 8) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.RawTx.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.RawTx.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.RawTx.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.RawTx} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.RawTx.toObject = function(includeInstance, msg) { + var f, obj = { + rawTxOutputsList: jspb.Message.toObjectList(msg.getRawTxOutputsList(), + proto.io.bisq.protobuffer.BaseTxOutput.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.RawTx} + */ +proto.io.bisq.protobuffer.RawTx.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.RawTx; + return proto.io.bisq.protobuffer.RawTx.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.RawTx} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.RawTx} + */ +proto.io.bisq.protobuffer.RawTx.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.BaseTxOutput; + reader.readMessage(value,proto.io.bisq.protobuffer.BaseTxOutput.deserializeBinaryFromReader); + msg.addRawTxOutputs(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.RawTx.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.RawTx.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.RawTx} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.RawTx.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRawTxOutputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.BaseTxOutput.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated BaseTxOutput raw_tx_outputs = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.RawTx.prototype.getRawTxOutputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.BaseTxOutput, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.RawTx} returns this +*/ +proto.io.bisq.protobuffer.RawTx.prototype.setRawTxOutputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.BaseTxOutput=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.BaseTxOutput} + */ +proto.io.bisq.protobuffer.RawTx.prototype.addRawTxOutputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.BaseTxOutput, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.RawTx} returns this + */ +proto.io.bisq.protobuffer.RawTx.prototype.clearRawTxOutputsList = function() { + return this.setRawTxOutputsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.Tx.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.Tx.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.Tx.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.Tx} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.Tx.toObject = function(includeInstance, msg) { + var f, obj = { + txOutputsList: jspb.Message.toObjectList(msg.getTxOutputsList(), + proto.io.bisq.protobuffer.BaseTxOutput.toObject, includeInstance), + txtype: jspb.Message.getFieldWithDefault(msg, 2, 0), + burntBsq: 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.Tx} + */ +proto.io.bisq.protobuffer.Tx.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.Tx; + return proto.io.bisq.protobuffer.Tx.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.Tx} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.Tx} + */ +proto.io.bisq.protobuffer.Tx.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.BaseTxOutput; + reader.readMessage(value,proto.io.bisq.protobuffer.BaseTxOutput.deserializeBinaryFromReader); + msg.addTxOutputs(value); + break; + case 2: + var value = /** @type {!proto.io.bisq.protobuffer.TxType} */ (reader.readEnum()); + msg.setTxtype(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setBurntBsq(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.Tx.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.Tx.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.Tx} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.Tx.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTxOutputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.BaseTxOutput.serializeBinaryToWriter + ); + } + f = message.getTxtype(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getBurntBsq(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } +}; + + +/** + * repeated BaseTxOutput tx_outputs = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.Tx.prototype.getTxOutputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.BaseTxOutput, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.Tx} returns this +*/ +proto.io.bisq.protobuffer.Tx.prototype.setTxOutputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.BaseTxOutput=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.BaseTxOutput} + */ +proto.io.bisq.protobuffer.Tx.prototype.addTxOutputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.BaseTxOutput, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.Tx} returns this + */ +proto.io.bisq.protobuffer.Tx.prototype.clearTxOutputsList = function() { + return this.setTxOutputsList([]); +}; + + +/** + * optional TxType txType = 2; + * @return {!proto.io.bisq.protobuffer.TxType} + */ +proto.io.bisq.protobuffer.Tx.prototype.getTxtype = function() { + return /** @type {!proto.io.bisq.protobuffer.TxType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.TxType} value + * @return {!proto.io.bisq.protobuffer.Tx} returns this + */ +proto.io.bisq.protobuffer.Tx.prototype.setTxtype = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional int64 burnt_bsq = 3; + * @return {number} + */ +proto.io.bisq.protobuffer.Tx.prototype.getBurntBsq = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.Tx} returns this + */ +proto.io.bisq.protobuffer.Tx.prototype.setBurntBsq = function(value) { + return jspb.Message.setProto3IntField(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.TxInput.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.TxInput.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.TxInput} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TxInput.toObject = function(includeInstance, msg) { + var f, obj = { + connectedTxOutputTxId: jspb.Message.getFieldWithDefault(msg, 1, ""), + connectedTxOutputIndex: jspb.Message.getFieldWithDefault(msg, 2, 0), + pubKey: 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.TxInput} + */ +proto.io.bisq.protobuffer.TxInput.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.TxInput; + return proto.io.bisq.protobuffer.TxInput.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.TxInput} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.TxInput} + */ +proto.io.bisq.protobuffer.TxInput.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.setConnectedTxOutputTxId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setConnectedTxOutputIndex(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setPubKey(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.TxInput.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.TxInput.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.TxInput} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TxInput.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getConnectedTxOutputTxId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getConnectedTxOutputIndex(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getPubKey(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string connected_tx_output_tx_id = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.TxInput.prototype.getConnectedTxOutputTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TxInput} returns this + */ +proto.io.bisq.protobuffer.TxInput.prototype.setConnectedTxOutputTxId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int32 connected_tx_output_index = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.TxInput.prototype.getConnectedTxOutputIndex = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TxInput} returns this + */ +proto.io.bisq.protobuffer.TxInput.prototype.setConnectedTxOutputIndex = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional string pub_key = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.TxInput.prototype.getPubKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.TxInput} returns this + */ +proto.io.bisq.protobuffer.TxInput.prototype.setPubKey = function(value) { + return jspb.Message.setProto3StringField(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.BaseTxOutput.oneofGroups_ = [[8,9]]; + +/** + * @enum {number} + */ +proto.io.bisq.protobuffer.BaseTxOutput.MessageCase = { + MESSAGE_NOT_SET: 0, + RAW_TX_OUTPUT: 8, + TX_OUTPUT: 9 +}; + +/** + * @return {proto.io.bisq.protobuffer.BaseTxOutput.MessageCase} + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.getMessageCase = function() { + return /** @type {proto.io.bisq.protobuffer.BaseTxOutput.MessageCase} */(jspb.Message.computeOneofCase(this, proto.io.bisq.protobuffer.BaseTxOutput.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.BaseTxOutput.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.BaseTxOutput.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.BaseTxOutput} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BaseTxOutput.toObject = function(includeInstance, msg) { + var f, obj = { + index: jspb.Message.getFieldWithDefault(msg, 1, 0), + value: jspb.Message.getFieldWithDefault(msg, 2, 0), + txId: jspb.Message.getFieldWithDefault(msg, 3, ""), + pubKeyScript: (f = msg.getPubKeyScript()) && proto.io.bisq.protobuffer.PubKeyScript.toObject(includeInstance, f), + address: jspb.Message.getFieldWithDefault(msg, 5, ""), + opReturnData: msg.getOpReturnData_asB64(), + blockHeight: jspb.Message.getFieldWithDefault(msg, 7, 0), + rawTxOutput: (f = msg.getRawTxOutput()) && proto.io.bisq.protobuffer.RawTxOutput.toObject(includeInstance, f), + txOutput: (f = msg.getTxOutput()) && proto.io.bisq.protobuffer.TxOutput.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.BaseTxOutput} + */ +proto.io.bisq.protobuffer.BaseTxOutput.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.BaseTxOutput; + return proto.io.bisq.protobuffer.BaseTxOutput.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.BaseTxOutput} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.BaseTxOutput} + */ +proto.io.bisq.protobuffer.BaseTxOutput.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.setIndex(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setValue(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setTxId(value); + break; + case 4: + var value = new proto.io.bisq.protobuffer.PubKeyScript; + reader.readMessage(value,proto.io.bisq.protobuffer.PubKeyScript.deserializeBinaryFromReader); + msg.setPubKeyScript(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setAddress(value); + break; + case 6: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setOpReturnData(value); + break; + case 7: + var value = /** @type {number} */ (reader.readInt32()); + msg.setBlockHeight(value); + break; + case 8: + var value = new proto.io.bisq.protobuffer.RawTxOutput; + reader.readMessage(value,proto.io.bisq.protobuffer.RawTxOutput.deserializeBinaryFromReader); + msg.setRawTxOutput(value); + break; + case 9: + var value = new proto.io.bisq.protobuffer.TxOutput; + reader.readMessage(value,proto.io.bisq.protobuffer.TxOutput.deserializeBinaryFromReader); + msg.setTxOutput(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.BaseTxOutput.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.BaseTxOutput} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BaseTxOutput.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIndex(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getValue(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getTxId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getPubKeyScript(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.io.bisq.protobuffer.PubKeyScript.serializeBinaryToWriter + ); + } + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getOpReturnData_asU8(); + if (f.length > 0) { + writer.writeBytes( + 6, + f + ); + } + f = message.getBlockHeight(); + if (f !== 0) { + writer.writeInt32( + 7, + f + ); + } + f = message.getRawTxOutput(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.io.bisq.protobuffer.RawTxOutput.serializeBinaryToWriter + ); + } + f = message.getTxOutput(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.io.bisq.protobuffer.TxOutput.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 index = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.getIndex = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BaseTxOutput} returns this + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.setIndex = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int64 value = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.getValue = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BaseTxOutput} returns this + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.setValue = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional string tx_id = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.getTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.BaseTxOutput} returns this + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.setTxId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional PubKeyScript pub_key_script = 4; + * @return {?proto.io.bisq.protobuffer.PubKeyScript} + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.getPubKeyScript = function() { + return /** @type{?proto.io.bisq.protobuffer.PubKeyScript} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.PubKeyScript, 4)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.PubKeyScript|undefined} value + * @return {!proto.io.bisq.protobuffer.BaseTxOutput} returns this +*/ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.setPubKeyScript = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.BaseTxOutput} returns this + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.clearPubKeyScript = function() { + return this.setPubKeyScript(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.hasPubKeyScript = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional string address = 5; + * @return {string} + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.BaseTxOutput} returns this + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional bytes op_return_data = 6; + * @return {string} + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.getOpReturnData = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * optional bytes op_return_data = 6; + * This is a type-conversion wrapper around `getOpReturnData()` + * @return {string} + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.getOpReturnData_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getOpReturnData())); +}; + + +/** + * optional bytes op_return_data = 6; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getOpReturnData()` + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.getOpReturnData_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getOpReturnData())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.BaseTxOutput} returns this + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.setOpReturnData = function(value) { + return jspb.Message.setProto3BytesField(this, 6, value); +}; + + +/** + * optional int32 block_height = 7; + * @return {number} + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.getBlockHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BaseTxOutput} returns this + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.setBlockHeight = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional RawTxOutput raw_tx_output = 8; + * @return {?proto.io.bisq.protobuffer.RawTxOutput} + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.getRawTxOutput = function() { + return /** @type{?proto.io.bisq.protobuffer.RawTxOutput} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.RawTxOutput, 8)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.RawTxOutput|undefined} value + * @return {!proto.io.bisq.protobuffer.BaseTxOutput} returns this +*/ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.setRawTxOutput = function(value) { + return jspb.Message.setOneofWrapperField(this, 8, proto.io.bisq.protobuffer.BaseTxOutput.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.BaseTxOutput} returns this + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.clearRawTxOutput = function() { + return this.setRawTxOutput(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.hasRawTxOutput = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional TxOutput tx_output = 9; + * @return {?proto.io.bisq.protobuffer.TxOutput} + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.getTxOutput = function() { + return /** @type{?proto.io.bisq.protobuffer.TxOutput} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.TxOutput, 9)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.TxOutput|undefined} value + * @return {!proto.io.bisq.protobuffer.BaseTxOutput} returns this +*/ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.setTxOutput = function(value) { + return jspb.Message.setOneofWrapperField(this, 9, proto.io.bisq.protobuffer.BaseTxOutput.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.BaseTxOutput} returns this + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.clearTxOutput = function() { + return this.setTxOutput(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.BaseTxOutput.prototype.hasTxOutput = function() { + return jspb.Message.getField(this, 9) != 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.UnconfirmedTxOutput.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.UnconfirmedTxOutput.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.UnconfirmedTxOutput} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.UnconfirmedTxOutput.toObject = function(includeInstance, msg) { + var f, obj = { + index: jspb.Message.getFieldWithDefault(msg, 1, 0), + value: jspb.Message.getFieldWithDefault(msg, 2, 0), + txId: 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.UnconfirmedTxOutput} + */ +proto.io.bisq.protobuffer.UnconfirmedTxOutput.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.UnconfirmedTxOutput; + return proto.io.bisq.protobuffer.UnconfirmedTxOutput.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.UnconfirmedTxOutput} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.UnconfirmedTxOutput} + */ +proto.io.bisq.protobuffer.UnconfirmedTxOutput.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.setIndex(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setValue(value); + break; + case 3: + 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.UnconfirmedTxOutput.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.UnconfirmedTxOutput.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.UnconfirmedTxOutput} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.UnconfirmedTxOutput.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIndex(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getValue(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getTxId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional int32 index = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.UnconfirmedTxOutput.prototype.getIndex = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.UnconfirmedTxOutput} returns this + */ +proto.io.bisq.protobuffer.UnconfirmedTxOutput.prototype.setIndex = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int64 value = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.UnconfirmedTxOutput.prototype.getValue = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.UnconfirmedTxOutput} returns this + */ +proto.io.bisq.protobuffer.UnconfirmedTxOutput.prototype.setValue = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional string tx_id = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.UnconfirmedTxOutput.prototype.getTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.UnconfirmedTxOutput} returns this + */ +proto.io.bisq.protobuffer.UnconfirmedTxOutput.prototype.setTxId = 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.RawTxOutput.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.RawTxOutput.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.RawTxOutput} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.RawTxOutput.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.RawTxOutput} + */ +proto.io.bisq.protobuffer.RawTxOutput.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.RawTxOutput; + return proto.io.bisq.protobuffer.RawTxOutput.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.RawTxOutput} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.RawTxOutput} + */ +proto.io.bisq.protobuffer.RawTxOutput.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.RawTxOutput.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.RawTxOutput.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.RawTxOutput} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.RawTxOutput.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.TxOutput.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.TxOutput.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.TxOutput} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TxOutput.toObject = function(includeInstance, msg) { + var f, obj = { + txOutputType: jspb.Message.getFieldWithDefault(msg, 1, 0), + lockTime: jspb.Message.getFieldWithDefault(msg, 2, 0), + unlockBlockHeight: 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.TxOutput} + */ +proto.io.bisq.protobuffer.TxOutput.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.TxOutput; + return proto.io.bisq.protobuffer.TxOutput.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.TxOutput} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.TxOutput} + */ +proto.io.bisq.protobuffer.TxOutput.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.TxOutputType} */ (reader.readEnum()); + msg.setTxOutputType(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setLockTime(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setUnlockBlockHeight(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.TxOutput.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.TxOutput.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.TxOutput} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TxOutput.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTxOutputType(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getLockTime(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getUnlockBlockHeight(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } +}; + + +/** + * optional TxOutputType tx_output_type = 1; + * @return {!proto.io.bisq.protobuffer.TxOutputType} + */ +proto.io.bisq.protobuffer.TxOutput.prototype.getTxOutputType = function() { + return /** @type {!proto.io.bisq.protobuffer.TxOutputType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.TxOutputType} value + * @return {!proto.io.bisq.protobuffer.TxOutput} returns this + */ +proto.io.bisq.protobuffer.TxOutput.prototype.setTxOutputType = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional int32 lock_time = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.TxOutput.prototype.getLockTime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TxOutput} returns this + */ +proto.io.bisq.protobuffer.TxOutput.prototype.setLockTime = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional int32 unlock_block_height = 3; + * @return {number} + */ +proto.io.bisq.protobuffer.TxOutput.prototype.getUnlockBlockHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.TxOutput} returns this + */ +proto.io.bisq.protobuffer.TxOutput.prototype.setUnlockBlockHeight = function(value) { + return jspb.Message.setProto3IntField(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.SpentInfo.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.SpentInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.SpentInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.SpentInfo.toObject = function(includeInstance, msg) { + var f, obj = { + blockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0), + txId: jspb.Message.getFieldWithDefault(msg, 2, ""), + inputIndex: 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.SpentInfo} + */ +proto.io.bisq.protobuffer.SpentInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.SpentInfo; + return proto.io.bisq.protobuffer.SpentInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.SpentInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.SpentInfo} + */ +proto.io.bisq.protobuffer.SpentInfo.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.setBlockHeight(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setTxId(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setInputIndex(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.SpentInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.SpentInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.SpentInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.SpentInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBlockHeight(); + if (f !== 0) { + writer.writeInt64( + 1, + f + ); + } + f = message.getTxId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getInputIndex(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } +}; + + +/** + * optional int64 block_height = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.SpentInfo.prototype.getBlockHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.SpentInfo} returns this + */ +proto.io.bisq.protobuffer.SpentInfo.prototype.setBlockHeight = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string tx_id = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.SpentInfo.prototype.getTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.SpentInfo} returns this + */ +proto.io.bisq.protobuffer.SpentInfo.prototype.setTxId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional int32 input_index = 3; + * @return {number} + */ +proto.io.bisq.protobuffer.SpentInfo.prototype.getInputIndex = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.SpentInfo} returns this + */ +proto.io.bisq.protobuffer.SpentInfo.prototype.setInputIndex = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.PubKeyScript.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.PubKeyScript.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.PubKeyScript.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.PubKeyScript} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.PubKeyScript.toObject = function(includeInstance, msg) { + var f, obj = { + reqSigs: jspb.Message.getFieldWithDefault(msg, 1, 0), + scriptType: jspb.Message.getFieldWithDefault(msg, 2, 0), + addressesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + asm: jspb.Message.getFieldWithDefault(msg, 4, ""), + hex: 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.PubKeyScript} + */ +proto.io.bisq.protobuffer.PubKeyScript.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.PubKeyScript; + return proto.io.bisq.protobuffer.PubKeyScript.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.PubKeyScript} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.PubKeyScript} + */ +proto.io.bisq.protobuffer.PubKeyScript.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.setReqSigs(value); + break; + case 2: + var value = /** @type {!proto.io.bisq.protobuffer.ScriptType} */ (reader.readEnum()); + msg.setScriptType(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addAddresses(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAsm(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setHex(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.PubKeyScript.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.PubKeyScript.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.PubKeyScript} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.PubKeyScript.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getReqSigs(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getScriptType(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getAddressesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } + f = message.getAsm(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getHex(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } +}; + + +/** + * optional int32 req_sigs = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.PubKeyScript.prototype.getReqSigs = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.PubKeyScript} returns this + */ +proto.io.bisq.protobuffer.PubKeyScript.prototype.setReqSigs = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional ScriptType script_type = 2; + * @return {!proto.io.bisq.protobuffer.ScriptType} + */ +proto.io.bisq.protobuffer.PubKeyScript.prototype.getScriptType = function() { + return /** @type {!proto.io.bisq.protobuffer.ScriptType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.ScriptType} value + * @return {!proto.io.bisq.protobuffer.PubKeyScript} returns this + */ +proto.io.bisq.protobuffer.PubKeyScript.prototype.setScriptType = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * repeated string addresses = 3; + * @return {!Array} + */ +proto.io.bisq.protobuffer.PubKeyScript.prototype.getAddressesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.PubKeyScript} returns this + */ +proto.io.bisq.protobuffer.PubKeyScript.prototype.setAddressesList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.PubKeyScript} returns this + */ +proto.io.bisq.protobuffer.PubKeyScript.prototype.addAddresses = 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.PubKeyScript} returns this + */ +proto.io.bisq.protobuffer.PubKeyScript.prototype.clearAddressesList = function() { + return this.setAddressesList([]); +}; + + +/** + * optional string asm = 4; + * @return {string} + */ +proto.io.bisq.protobuffer.PubKeyScript.prototype.getAsm = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.PubKeyScript} returns this + */ +proto.io.bisq.protobuffer.PubKeyScript.prototype.setAsm = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string hex = 5; + * @return {string} + */ +proto.io.bisq.protobuffer.PubKeyScript.prototype.getHex = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.PubKeyScript} returns this + */ +proto.io.bisq.protobuffer.PubKeyScript.prototype.setHex = 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.DaoPhase.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.DaoPhase.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.DaoPhase} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.DaoPhase.toObject = function(includeInstance, msg) { + var f, obj = { + phaseOrdinal: jspb.Message.getFieldWithDefault(msg, 1, 0), + duration: 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.DaoPhase} + */ +proto.io.bisq.protobuffer.DaoPhase.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.DaoPhase; + return proto.io.bisq.protobuffer.DaoPhase.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.DaoPhase} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.DaoPhase} + */ +proto.io.bisq.protobuffer.DaoPhase.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.setPhaseOrdinal(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setDuration(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.DaoPhase.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.DaoPhase.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.DaoPhase} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.DaoPhase.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPhaseOrdinal(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getDuration(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } +}; + + +/** + * optional int32 phase_ordinal = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.DaoPhase.prototype.getPhaseOrdinal = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.DaoPhase} returns this + */ +proto.io.bisq.protobuffer.DaoPhase.prototype.setPhaseOrdinal = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int32 duration = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.DaoPhase.prototype.getDuration = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.DaoPhase} returns this + */ +proto.io.bisq.protobuffer.DaoPhase.prototype.setDuration = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.Cycle.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.Cycle.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.Cycle.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.Cycle} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.Cycle.toObject = function(includeInstance, msg) { + var f, obj = { + heightOfFirstLock: jspb.Message.getFieldWithDefault(msg, 1, 0), + daoPhaseList: jspb.Message.toObjectList(msg.getDaoPhaseList(), + proto.io.bisq.protobuffer.DaoPhase.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.Cycle} + */ +proto.io.bisq.protobuffer.Cycle.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.Cycle; + return proto.io.bisq.protobuffer.Cycle.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.Cycle} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.Cycle} + */ +proto.io.bisq.protobuffer.Cycle.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.setHeightOfFirstLock(value); + break; + case 2: + var value = new proto.io.bisq.protobuffer.DaoPhase; + reader.readMessage(value,proto.io.bisq.protobuffer.DaoPhase.deserializeBinaryFromReader); + msg.addDaoPhase(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.Cycle.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.Cycle.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.Cycle} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.Cycle.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHeightOfFirstLock(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getDaoPhaseList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.io.bisq.protobuffer.DaoPhase.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 height_of_first_lock = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.Cycle.prototype.getHeightOfFirstLock = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.Cycle} returns this + */ +proto.io.bisq.protobuffer.Cycle.prototype.setHeightOfFirstLock = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * repeated DaoPhase dao_phase = 2; + * @return {!Array} + */ +proto.io.bisq.protobuffer.Cycle.prototype.getDaoPhaseList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.DaoPhase, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.Cycle} returns this +*/ +proto.io.bisq.protobuffer.Cycle.prototype.setDaoPhaseList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.DaoPhase=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.DaoPhase} + */ +proto.io.bisq.protobuffer.Cycle.prototype.addDaoPhase = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.io.bisq.protobuffer.DaoPhase, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.Cycle} returns this + */ +proto.io.bisq.protobuffer.Cycle.prototype.clearDaoPhaseList = function() { + return this.setDaoPhaseList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.DaoState.repeatedFields_ = [2,3,6,8,9,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.DaoState.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.DaoState.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.DaoState} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.DaoState.toObject = function(includeInstance, msg) { + var f, obj = { + chainHeight: jspb.Message.getFieldWithDefault(msg, 1, 0), + blocksList: jspb.Message.toObjectList(msg.getBlocksList(), + proto.io.bisq.protobuffer.BaseBlock.toObject, includeInstance), + cyclesList: jspb.Message.toObjectList(msg.getCyclesList(), + proto.io.bisq.protobuffer.Cycle.toObject, includeInstance), + unspentTxOutputMapMap: (f = msg.getUnspentTxOutputMapMap()) ? f.toObject(includeInstance, proto.io.bisq.protobuffer.BaseTxOutput.toObject) : [], + issuanceMapMap: (f = msg.getIssuanceMapMap()) ? f.toObject(includeInstance, proto.io.bisq.protobuffer.Issuance.toObject) : [], + confiscatedLockupTxListList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f, + spentInfoMapMap: (f = msg.getSpentInfoMapMap()) ? f.toObject(includeInstance, proto.io.bisq.protobuffer.SpentInfo.toObject) : [], + paramChangeListList: jspb.Message.toObjectList(msg.getParamChangeListList(), + proto.io.bisq.protobuffer.ParamChange.toObject, includeInstance), + evaluatedProposalListList: jspb.Message.toObjectList(msg.getEvaluatedProposalListList(), + proto.io.bisq.protobuffer.EvaluatedProposal.toObject, includeInstance), + decryptedBallotsWithMeritsListList: jspb.Message.toObjectList(msg.getDecryptedBallotsWithMeritsListList(), + proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.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.DaoState} + */ +proto.io.bisq.protobuffer.DaoState.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.DaoState; + return proto.io.bisq.protobuffer.DaoState.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.DaoState} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.DaoState} + */ +proto.io.bisq.protobuffer.DaoState.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.setChainHeight(value); + break; + case 2: + var value = new proto.io.bisq.protobuffer.BaseBlock; + reader.readMessage(value,proto.io.bisq.protobuffer.BaseBlock.deserializeBinaryFromReader); + msg.addBlocks(value); + break; + case 3: + var value = new proto.io.bisq.protobuffer.Cycle; + reader.readMessage(value,proto.io.bisq.protobuffer.Cycle.deserializeBinaryFromReader); + msg.addCycles(value); + break; + case 4: + var value = msg.getUnspentTxOutputMapMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.io.bisq.protobuffer.BaseTxOutput.deserializeBinaryFromReader, "", new proto.io.bisq.protobuffer.BaseTxOutput()); + }); + break; + case 5: + var value = msg.getIssuanceMapMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.io.bisq.protobuffer.Issuance.deserializeBinaryFromReader, "", new proto.io.bisq.protobuffer.Issuance()); + }); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.addConfiscatedLockupTxList(value); + break; + case 7: + var value = msg.getSpentInfoMapMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.io.bisq.protobuffer.SpentInfo.deserializeBinaryFromReader, "", new proto.io.bisq.protobuffer.SpentInfo()); + }); + break; + case 8: + var value = new proto.io.bisq.protobuffer.ParamChange; + reader.readMessage(value,proto.io.bisq.protobuffer.ParamChange.deserializeBinaryFromReader); + msg.addParamChangeList(value); + break; + case 9: + var value = new proto.io.bisq.protobuffer.EvaluatedProposal; + reader.readMessage(value,proto.io.bisq.protobuffer.EvaluatedProposal.deserializeBinaryFromReader); + msg.addEvaluatedProposalList(value); + break; + case 10: + var value = new proto.io.bisq.protobuffer.DecryptedBallotsWithMerits; + reader.readMessage(value,proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.deserializeBinaryFromReader); + msg.addDecryptedBallotsWithMeritsList(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.DaoState.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.DaoState.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.DaoState} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.DaoState.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getChainHeight(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getBlocksList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.io.bisq.protobuffer.BaseBlock.serializeBinaryToWriter + ); + } + f = message.getCyclesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.io.bisq.protobuffer.Cycle.serializeBinaryToWriter + ); + } + f = message.getUnspentTxOutputMapMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.io.bisq.protobuffer.BaseTxOutput.serializeBinaryToWriter); + } + f = message.getIssuanceMapMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.io.bisq.protobuffer.Issuance.serializeBinaryToWriter); + } + f = message.getConfiscatedLockupTxListList(); + if (f.length > 0) { + writer.writeRepeatedString( + 6, + f + ); + } + f = message.getSpentInfoMapMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.io.bisq.protobuffer.SpentInfo.serializeBinaryToWriter); + } + f = message.getParamChangeListList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 8, + f, + proto.io.bisq.protobuffer.ParamChange.serializeBinaryToWriter + ); + } + f = message.getEvaluatedProposalListList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 9, + f, + proto.io.bisq.protobuffer.EvaluatedProposal.serializeBinaryToWriter + ); + } + f = message.getDecryptedBallotsWithMeritsListList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 10, + f, + proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 chain_height = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.DaoState.prototype.getChainHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.DaoState} returns this + */ +proto.io.bisq.protobuffer.DaoState.prototype.setChainHeight = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * repeated BaseBlock blocks = 2; + * @return {!Array} + */ +proto.io.bisq.protobuffer.DaoState.prototype.getBlocksList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.BaseBlock, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.DaoState} returns this +*/ +proto.io.bisq.protobuffer.DaoState.prototype.setBlocksList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.BaseBlock=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.BaseBlock} + */ +proto.io.bisq.protobuffer.DaoState.prototype.addBlocks = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.io.bisq.protobuffer.BaseBlock, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.DaoState} returns this + */ +proto.io.bisq.protobuffer.DaoState.prototype.clearBlocksList = function() { + return this.setBlocksList([]); +}; + + +/** + * repeated Cycle cycles = 3; + * @return {!Array} + */ +proto.io.bisq.protobuffer.DaoState.prototype.getCyclesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.Cycle, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.DaoState} returns this +*/ +proto.io.bisq.protobuffer.DaoState.prototype.setCyclesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.Cycle=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.Cycle} + */ +proto.io.bisq.protobuffer.DaoState.prototype.addCycles = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.io.bisq.protobuffer.Cycle, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.DaoState} returns this + */ +proto.io.bisq.protobuffer.DaoState.prototype.clearCyclesList = function() { + return this.setCyclesList([]); +}; + + +/** + * map unspent_tx_output_map = 4; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.io.bisq.protobuffer.DaoState.prototype.getUnspentTxOutputMapMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 4, opt_noLazyCreate, + proto.io.bisq.protobuffer.BaseTxOutput)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.io.bisq.protobuffer.DaoState} returns this + */ +proto.io.bisq.protobuffer.DaoState.prototype.clearUnspentTxOutputMapMap = function() { + this.getUnspentTxOutputMapMap().clear(); + return this;}; + + +/** + * map issuance_map = 5; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.io.bisq.protobuffer.DaoState.prototype.getIssuanceMapMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 5, opt_noLazyCreate, + proto.io.bisq.protobuffer.Issuance)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.io.bisq.protobuffer.DaoState} returns this + */ +proto.io.bisq.protobuffer.DaoState.prototype.clearIssuanceMapMap = function() { + this.getIssuanceMapMap().clear(); + return this;}; + + +/** + * repeated string confiscated_lockup_tx_list = 6; + * @return {!Array} + */ +proto.io.bisq.protobuffer.DaoState.prototype.getConfiscatedLockupTxListList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.DaoState} returns this + */ +proto.io.bisq.protobuffer.DaoState.prototype.setConfiscatedLockupTxListList = function(value) { + return jspb.Message.setField(this, 6, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.DaoState} returns this + */ +proto.io.bisq.protobuffer.DaoState.prototype.addConfiscatedLockupTxList = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 6, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.DaoState} returns this + */ +proto.io.bisq.protobuffer.DaoState.prototype.clearConfiscatedLockupTxListList = function() { + return this.setConfiscatedLockupTxListList([]); +}; + + +/** + * map spent_info_map = 7; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.io.bisq.protobuffer.DaoState.prototype.getSpentInfoMapMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 7, opt_noLazyCreate, + proto.io.bisq.protobuffer.SpentInfo)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.io.bisq.protobuffer.DaoState} returns this + */ +proto.io.bisq.protobuffer.DaoState.prototype.clearSpentInfoMapMap = function() { + this.getSpentInfoMapMap().clear(); + return this;}; + + +/** + * repeated ParamChange param_change_list = 8; + * @return {!Array} + */ +proto.io.bisq.protobuffer.DaoState.prototype.getParamChangeListList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.ParamChange, 8)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.DaoState} returns this +*/ +proto.io.bisq.protobuffer.DaoState.prototype.setParamChangeListList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 8, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.ParamChange=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.ParamChange} + */ +proto.io.bisq.protobuffer.DaoState.prototype.addParamChangeList = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.io.bisq.protobuffer.ParamChange, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.DaoState} returns this + */ +proto.io.bisq.protobuffer.DaoState.prototype.clearParamChangeListList = function() { + return this.setParamChangeListList([]); +}; + + +/** + * repeated EvaluatedProposal evaluated_proposal_list = 9; + * @return {!Array} + */ +proto.io.bisq.protobuffer.DaoState.prototype.getEvaluatedProposalListList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.EvaluatedProposal, 9)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.DaoState} returns this +*/ +proto.io.bisq.protobuffer.DaoState.prototype.setEvaluatedProposalListList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 9, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.EvaluatedProposal=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.EvaluatedProposal} + */ +proto.io.bisq.protobuffer.DaoState.prototype.addEvaluatedProposalList = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.io.bisq.protobuffer.EvaluatedProposal, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.DaoState} returns this + */ +proto.io.bisq.protobuffer.DaoState.prototype.clearEvaluatedProposalListList = function() { + return this.setEvaluatedProposalListList([]); +}; + + +/** + * repeated DecryptedBallotsWithMerits decrypted_ballots_with_merits_list = 10; + * @return {!Array} + */ +proto.io.bisq.protobuffer.DaoState.prototype.getDecryptedBallotsWithMeritsListList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.DecryptedBallotsWithMerits, 10)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.DaoState} returns this +*/ +proto.io.bisq.protobuffer.DaoState.prototype.setDecryptedBallotsWithMeritsListList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 10, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.DecryptedBallotsWithMerits=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.DecryptedBallotsWithMerits} + */ +proto.io.bisq.protobuffer.DaoState.prototype.addDecryptedBallotsWithMeritsList = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.io.bisq.protobuffer.DecryptedBallotsWithMerits, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.DaoState} returns this + */ +proto.io.bisq.protobuffer.DaoState.prototype.clearDecryptedBallotsWithMeritsListList = function() { + return this.setDecryptedBallotsWithMeritsListList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.Issuance.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.Issuance.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.Issuance} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.Issuance.toObject = function(includeInstance, msg) { + var f, obj = { + txId: jspb.Message.getFieldWithDefault(msg, 1, ""), + chainHeight: jspb.Message.getFieldWithDefault(msg, 2, 0), + amount: jspb.Message.getFieldWithDefault(msg, 3, 0), + pubKey: jspb.Message.getFieldWithDefault(msg, 4, ""), + issuanceType: 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.Issuance} + */ +proto.io.bisq.protobuffer.Issuance.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.Issuance; + return proto.io.bisq.protobuffer.Issuance.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.Issuance} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.Issuance} + */ +proto.io.bisq.protobuffer.Issuance.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.readInt32()); + msg.setChainHeight(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setAmount(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setPubKey(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setIssuanceType(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.Issuance.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.Issuance.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.Issuance} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.Issuance.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTxId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getChainHeight(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getAmount(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } + f = message.getPubKey(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getIssuanceType(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } +}; + + +/** + * optional string tx_id = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.Issuance.prototype.getTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.Issuance} returns this + */ +proto.io.bisq.protobuffer.Issuance.prototype.setTxId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int32 chain_height = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.Issuance.prototype.getChainHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.Issuance} returns this + */ +proto.io.bisq.protobuffer.Issuance.prototype.setChainHeight = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional int64 amount = 3; + * @return {number} + */ +proto.io.bisq.protobuffer.Issuance.prototype.getAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.Issuance} returns this + */ +proto.io.bisq.protobuffer.Issuance.prototype.setAmount = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional string pub_key = 4; + * @return {string} + */ +proto.io.bisq.protobuffer.Issuance.prototype.getPubKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.Issuance} returns this + */ +proto.io.bisq.protobuffer.Issuance.prototype.setPubKey = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string issuance_type = 5; + * @return {string} + */ +proto.io.bisq.protobuffer.Issuance.prototype.getIssuanceType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.Issuance} returns this + */ +proto.io.bisq.protobuffer.Issuance.prototype.setIssuanceType = function(value) { + return jspb.Message.setProto3StringField(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.Proposal.oneofGroups_ = [[6,7,8,9,10,11,12]]; + +/** + * @enum {number} + */ +proto.io.bisq.protobuffer.Proposal.MessageCase = { + MESSAGE_NOT_SET: 0, + COMPENSATION_PROPOSAL: 6, + REIMBURSEMENT_PROPOSAL: 7, + CHANGE_PARAM_PROPOSAL: 8, + ROLE_PROPOSAL: 9, + CONFISCATE_BOND_PROPOSAL: 10, + GENERIC_PROPOSAL: 11, + REMOVE_ASSET_PROPOSAL: 12 +}; + +/** + * @return {proto.io.bisq.protobuffer.Proposal.MessageCase} + */ +proto.io.bisq.protobuffer.Proposal.prototype.getMessageCase = function() { + return /** @type {proto.io.bisq.protobuffer.Proposal.MessageCase} */(jspb.Message.computeOneofCase(this, proto.io.bisq.protobuffer.Proposal.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.Proposal.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.Proposal.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.Proposal} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.Proposal.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + link: jspb.Message.getFieldWithDefault(msg, 2, ""), + version: jspb.Message.getFieldWithDefault(msg, 3, 0), + creationDate: jspb.Message.getFieldWithDefault(msg, 4, 0), + txId: jspb.Message.getFieldWithDefault(msg, 5, ""), + compensationProposal: (f = msg.getCompensationProposal()) && proto.io.bisq.protobuffer.CompensationProposal.toObject(includeInstance, f), + reimbursementProposal: (f = msg.getReimbursementProposal()) && proto.io.bisq.protobuffer.ReimbursementProposal.toObject(includeInstance, f), + changeParamProposal: (f = msg.getChangeParamProposal()) && proto.io.bisq.protobuffer.ChangeParamProposal.toObject(includeInstance, f), + roleProposal: (f = msg.getRoleProposal()) && proto.io.bisq.protobuffer.RoleProposal.toObject(includeInstance, f), + confiscateBondProposal: (f = msg.getConfiscateBondProposal()) && proto.io.bisq.protobuffer.ConfiscateBondProposal.toObject(includeInstance, f), + genericProposal: (f = msg.getGenericProposal()) && proto.io.bisq.protobuffer.GenericProposal.toObject(includeInstance, f), + removeAssetProposal: (f = msg.getRemoveAssetProposal()) && proto.io.bisq.protobuffer.RemoveAssetProposal.toObject(includeInstance, f), + 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.Proposal} + */ +proto.io.bisq.protobuffer.Proposal.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.Proposal; + return proto.io.bisq.protobuffer.Proposal.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.Proposal} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.Proposal} + */ +proto.io.bisq.protobuffer.Proposal.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.setLink(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setVersion(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setCreationDate(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setTxId(value); + break; + case 6: + var value = new proto.io.bisq.protobuffer.CompensationProposal; + reader.readMessage(value,proto.io.bisq.protobuffer.CompensationProposal.deserializeBinaryFromReader); + msg.setCompensationProposal(value); + break; + case 7: + var value = new proto.io.bisq.protobuffer.ReimbursementProposal; + reader.readMessage(value,proto.io.bisq.protobuffer.ReimbursementProposal.deserializeBinaryFromReader); + msg.setReimbursementProposal(value); + break; + case 8: + var value = new proto.io.bisq.protobuffer.ChangeParamProposal; + reader.readMessage(value,proto.io.bisq.protobuffer.ChangeParamProposal.deserializeBinaryFromReader); + msg.setChangeParamProposal(value); + break; + case 9: + var value = new proto.io.bisq.protobuffer.RoleProposal; + reader.readMessage(value,proto.io.bisq.protobuffer.RoleProposal.deserializeBinaryFromReader); + msg.setRoleProposal(value); + break; + case 10: + var value = new proto.io.bisq.protobuffer.ConfiscateBondProposal; + reader.readMessage(value,proto.io.bisq.protobuffer.ConfiscateBondProposal.deserializeBinaryFromReader); + msg.setConfiscateBondProposal(value); + break; + case 11: + var value = new proto.io.bisq.protobuffer.GenericProposal; + reader.readMessage(value,proto.io.bisq.protobuffer.GenericProposal.deserializeBinaryFromReader); + msg.setGenericProposal(value); + break; + case 12: + var value = new proto.io.bisq.protobuffer.RemoveAssetProposal; + reader.readMessage(value,proto.io.bisq.protobuffer.RemoveAssetProposal.deserializeBinaryFromReader); + msg.setRemoveAssetProposal(value); + break; + case 20: + 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.Proposal.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.Proposal.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.Proposal} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.Proposal.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getLink(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getVersion(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getCreationDate(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } + f = message.getTxId(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getCompensationProposal(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.io.bisq.protobuffer.CompensationProposal.serializeBinaryToWriter + ); + } + f = message.getReimbursementProposal(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.io.bisq.protobuffer.ReimbursementProposal.serializeBinaryToWriter + ); + } + f = message.getChangeParamProposal(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.io.bisq.protobuffer.ChangeParamProposal.serializeBinaryToWriter + ); + } + f = message.getRoleProposal(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.io.bisq.protobuffer.RoleProposal.serializeBinaryToWriter + ); + } + f = message.getConfiscateBondProposal(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.io.bisq.protobuffer.ConfiscateBondProposal.serializeBinaryToWriter + ); + } + f = message.getGenericProposal(); + if (f != null) { + writer.writeMessage( + 11, + f, + proto.io.bisq.protobuffer.GenericProposal.serializeBinaryToWriter + ); + } + f = message.getRemoveAssetProposal(); + if (f != null) { + writer.writeMessage( + 12, + f, + proto.io.bisq.protobuffer.RemoveAssetProposal.serializeBinaryToWriter + ); + } + f = message.getExtraDataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(20, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.Proposal.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.Proposal} returns this + */ +proto.io.bisq.protobuffer.Proposal.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string link = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.Proposal.prototype.getLink = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.Proposal} returns this + */ +proto.io.bisq.protobuffer.Proposal.prototype.setLink = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional uint32 version = 3; + * @return {number} + */ +proto.io.bisq.protobuffer.Proposal.prototype.getVersion = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.Proposal} returns this + */ +proto.io.bisq.protobuffer.Proposal.prototype.setVersion = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional int64 creation_date = 4; + * @return {number} + */ +proto.io.bisq.protobuffer.Proposal.prototype.getCreationDate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.Proposal} returns this + */ +proto.io.bisq.protobuffer.Proposal.prototype.setCreationDate = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional string tx_id = 5; + * @return {string} + */ +proto.io.bisq.protobuffer.Proposal.prototype.getTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.Proposal} returns this + */ +proto.io.bisq.protobuffer.Proposal.prototype.setTxId = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional CompensationProposal compensation_proposal = 6; + * @return {?proto.io.bisq.protobuffer.CompensationProposal} + */ +proto.io.bisq.protobuffer.Proposal.prototype.getCompensationProposal = function() { + return /** @type{?proto.io.bisq.protobuffer.CompensationProposal} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.CompensationProposal, 6)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.CompensationProposal|undefined} value + * @return {!proto.io.bisq.protobuffer.Proposal} returns this +*/ +proto.io.bisq.protobuffer.Proposal.prototype.setCompensationProposal = function(value) { + return jspb.Message.setOneofWrapperField(this, 6, proto.io.bisq.protobuffer.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.Proposal} returns this + */ +proto.io.bisq.protobuffer.Proposal.prototype.clearCompensationProposal = function() { + return this.setCompensationProposal(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.Proposal.prototype.hasCompensationProposal = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional ReimbursementProposal reimbursement_proposal = 7; + * @return {?proto.io.bisq.protobuffer.ReimbursementProposal} + */ +proto.io.bisq.protobuffer.Proposal.prototype.getReimbursementProposal = function() { + return /** @type{?proto.io.bisq.protobuffer.ReimbursementProposal} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ReimbursementProposal, 7)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.ReimbursementProposal|undefined} value + * @return {!proto.io.bisq.protobuffer.Proposal} returns this +*/ +proto.io.bisq.protobuffer.Proposal.prototype.setReimbursementProposal = function(value) { + return jspb.Message.setOneofWrapperField(this, 7, proto.io.bisq.protobuffer.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.Proposal} returns this + */ +proto.io.bisq.protobuffer.Proposal.prototype.clearReimbursementProposal = function() { + return this.setReimbursementProposal(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.Proposal.prototype.hasReimbursementProposal = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional ChangeParamProposal change_param_proposal = 8; + * @return {?proto.io.bisq.protobuffer.ChangeParamProposal} + */ +proto.io.bisq.protobuffer.Proposal.prototype.getChangeParamProposal = function() { + return /** @type{?proto.io.bisq.protobuffer.ChangeParamProposal} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ChangeParamProposal, 8)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.ChangeParamProposal|undefined} value + * @return {!proto.io.bisq.protobuffer.Proposal} returns this +*/ +proto.io.bisq.protobuffer.Proposal.prototype.setChangeParamProposal = function(value) { + return jspb.Message.setOneofWrapperField(this, 8, proto.io.bisq.protobuffer.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.Proposal} returns this + */ +proto.io.bisq.protobuffer.Proposal.prototype.clearChangeParamProposal = function() { + return this.setChangeParamProposal(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.Proposal.prototype.hasChangeParamProposal = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional RoleProposal role_proposal = 9; + * @return {?proto.io.bisq.protobuffer.RoleProposal} + */ +proto.io.bisq.protobuffer.Proposal.prototype.getRoleProposal = function() { + return /** @type{?proto.io.bisq.protobuffer.RoleProposal} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.RoleProposal, 9)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.RoleProposal|undefined} value + * @return {!proto.io.bisq.protobuffer.Proposal} returns this +*/ +proto.io.bisq.protobuffer.Proposal.prototype.setRoleProposal = function(value) { + return jspb.Message.setOneofWrapperField(this, 9, proto.io.bisq.protobuffer.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.Proposal} returns this + */ +proto.io.bisq.protobuffer.Proposal.prototype.clearRoleProposal = function() { + return this.setRoleProposal(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.Proposal.prototype.hasRoleProposal = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional ConfiscateBondProposal confiscate_bond_proposal = 10; + * @return {?proto.io.bisq.protobuffer.ConfiscateBondProposal} + */ +proto.io.bisq.protobuffer.Proposal.prototype.getConfiscateBondProposal = function() { + return /** @type{?proto.io.bisq.protobuffer.ConfiscateBondProposal} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ConfiscateBondProposal, 10)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.ConfiscateBondProposal|undefined} value + * @return {!proto.io.bisq.protobuffer.Proposal} returns this +*/ +proto.io.bisq.protobuffer.Proposal.prototype.setConfiscateBondProposal = function(value) { + return jspb.Message.setOneofWrapperField(this, 10, proto.io.bisq.protobuffer.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.Proposal} returns this + */ +proto.io.bisq.protobuffer.Proposal.prototype.clearConfiscateBondProposal = function() { + return this.setConfiscateBondProposal(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.Proposal.prototype.hasConfiscateBondProposal = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional GenericProposal generic_proposal = 11; + * @return {?proto.io.bisq.protobuffer.GenericProposal} + */ +proto.io.bisq.protobuffer.Proposal.prototype.getGenericProposal = function() { + return /** @type{?proto.io.bisq.protobuffer.GenericProposal} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.GenericProposal, 11)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.GenericProposal|undefined} value + * @return {!proto.io.bisq.protobuffer.Proposal} returns this +*/ +proto.io.bisq.protobuffer.Proposal.prototype.setGenericProposal = function(value) { + return jspb.Message.setOneofWrapperField(this, 11, proto.io.bisq.protobuffer.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.Proposal} returns this + */ +proto.io.bisq.protobuffer.Proposal.prototype.clearGenericProposal = function() { + return this.setGenericProposal(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.Proposal.prototype.hasGenericProposal = function() { + return jspb.Message.getField(this, 11) != null; +}; + + +/** + * optional RemoveAssetProposal remove_asset_proposal = 12; + * @return {?proto.io.bisq.protobuffer.RemoveAssetProposal} + */ +proto.io.bisq.protobuffer.Proposal.prototype.getRemoveAssetProposal = function() { + return /** @type{?proto.io.bisq.protobuffer.RemoveAssetProposal} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.RemoveAssetProposal, 12)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.RemoveAssetProposal|undefined} value + * @return {!proto.io.bisq.protobuffer.Proposal} returns this +*/ +proto.io.bisq.protobuffer.Proposal.prototype.setRemoveAssetProposal = function(value) { + return jspb.Message.setOneofWrapperField(this, 12, proto.io.bisq.protobuffer.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.Proposal} returns this + */ +proto.io.bisq.protobuffer.Proposal.prototype.clearRemoveAssetProposal = function() { + return this.setRemoveAssetProposal(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.Proposal.prototype.hasRemoveAssetProposal = function() { + return jspb.Message.getField(this, 12) != null; +}; + + +/** + * map extra_data = 20; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.io.bisq.protobuffer.Proposal.prototype.getExtraDataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 20, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.io.bisq.protobuffer.Proposal} returns this + */ +proto.io.bisq.protobuffer.Proposal.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.CompensationProposal.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.CompensationProposal.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.CompensationProposal} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CompensationProposal.toObject = function(includeInstance, msg) { + var f, obj = { + requestedBsq: jspb.Message.getFieldWithDefault(msg, 1, 0), + bsqAddress: 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.CompensationProposal} + */ +proto.io.bisq.protobuffer.CompensationProposal.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.CompensationProposal; + return proto.io.bisq.protobuffer.CompensationProposal.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.CompensationProposal} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.CompensationProposal} + */ +proto.io.bisq.protobuffer.CompensationProposal.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.setRequestedBsq(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setBsqAddress(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.CompensationProposal.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.CompensationProposal.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.CompensationProposal} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.CompensationProposal.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRequestedBsq(); + if (f !== 0) { + writer.writeInt64( + 1, + f + ); + } + f = message.getBsqAddress(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional int64 requested_bsq = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.CompensationProposal.prototype.getRequestedBsq = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.CompensationProposal} returns this + */ +proto.io.bisq.protobuffer.CompensationProposal.prototype.setRequestedBsq = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string bsq_address = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.CompensationProposal.prototype.getBsqAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.CompensationProposal} returns this + */ +proto.io.bisq.protobuffer.CompensationProposal.prototype.setBsqAddress = 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.ReimbursementProposal.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.ReimbursementProposal.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.ReimbursementProposal} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ReimbursementProposal.toObject = function(includeInstance, msg) { + var f, obj = { + requestedBsq: jspb.Message.getFieldWithDefault(msg, 1, 0), + bsqAddress: 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.ReimbursementProposal} + */ +proto.io.bisq.protobuffer.ReimbursementProposal.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.ReimbursementProposal; + return proto.io.bisq.protobuffer.ReimbursementProposal.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.ReimbursementProposal} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.ReimbursementProposal} + */ +proto.io.bisq.protobuffer.ReimbursementProposal.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.setRequestedBsq(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setBsqAddress(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.ReimbursementProposal.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.ReimbursementProposal.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.ReimbursementProposal} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ReimbursementProposal.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRequestedBsq(); + if (f !== 0) { + writer.writeInt64( + 1, + f + ); + } + f = message.getBsqAddress(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional int64 requested_bsq = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.ReimbursementProposal.prototype.getRequestedBsq = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.ReimbursementProposal} returns this + */ +proto.io.bisq.protobuffer.ReimbursementProposal.prototype.setRequestedBsq = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string bsq_address = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.ReimbursementProposal.prototype.getBsqAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.ReimbursementProposal} returns this + */ +proto.io.bisq.protobuffer.ReimbursementProposal.prototype.setBsqAddress = 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.ChangeParamProposal.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.ChangeParamProposal.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.ChangeParamProposal} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ChangeParamProposal.toObject = function(includeInstance, msg) { + var f, obj = { + param: jspb.Message.getFieldWithDefault(msg, 1, ""), + paramValue: 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.ChangeParamProposal} + */ +proto.io.bisq.protobuffer.ChangeParamProposal.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.ChangeParamProposal; + return proto.io.bisq.protobuffer.ChangeParamProposal.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.ChangeParamProposal} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.ChangeParamProposal} + */ +proto.io.bisq.protobuffer.ChangeParamProposal.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.setParam(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setParamValue(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.ChangeParamProposal.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.ChangeParamProposal.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.ChangeParamProposal} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ChangeParamProposal.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParam(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getParamValue(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string param = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.ChangeParamProposal.prototype.getParam = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.ChangeParamProposal} returns this + */ +proto.io.bisq.protobuffer.ChangeParamProposal.prototype.setParam = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string param_value = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.ChangeParamProposal.prototype.getParamValue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.ChangeParamProposal} returns this + */ +proto.io.bisq.protobuffer.ChangeParamProposal.prototype.setParamValue = 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.RoleProposal.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.RoleProposal.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.RoleProposal} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.RoleProposal.toObject = function(includeInstance, msg) { + var f, obj = { + role: (f = msg.getRole()) && proto.io.bisq.protobuffer.Role.toObject(includeInstance, f), + requiredBondUnit: jspb.Message.getFieldWithDefault(msg, 2, 0), + unlockTime: 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.RoleProposal} + */ +proto.io.bisq.protobuffer.RoleProposal.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.RoleProposal; + return proto.io.bisq.protobuffer.RoleProposal.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.RoleProposal} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.RoleProposal} + */ +proto.io.bisq.protobuffer.RoleProposal.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.Role; + reader.readMessage(value,proto.io.bisq.protobuffer.Role.deserializeBinaryFromReader); + msg.setRole(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setRequiredBondUnit(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setUnlockTime(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.RoleProposal.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.RoleProposal.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.RoleProposal} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.RoleProposal.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRole(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.Role.serializeBinaryToWriter + ); + } + f = message.getRequiredBondUnit(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getUnlockTime(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } +}; + + +/** + * optional Role role = 1; + * @return {?proto.io.bisq.protobuffer.Role} + */ +proto.io.bisq.protobuffer.RoleProposal.prototype.getRole = function() { + return /** @type{?proto.io.bisq.protobuffer.Role} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Role, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.Role|undefined} value + * @return {!proto.io.bisq.protobuffer.RoleProposal} returns this +*/ +proto.io.bisq.protobuffer.RoleProposal.prototype.setRole = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.RoleProposal} returns this + */ +proto.io.bisq.protobuffer.RoleProposal.prototype.clearRole = function() { + return this.setRole(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.RoleProposal.prototype.hasRole = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional int64 required_bond_unit = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.RoleProposal.prototype.getRequiredBondUnit = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.RoleProposal} returns this + */ +proto.io.bisq.protobuffer.RoleProposal.prototype.setRequiredBondUnit = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional int32 unlock_time = 3; + * @return {number} + */ +proto.io.bisq.protobuffer.RoleProposal.prototype.getUnlockTime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.RoleProposal} returns this + */ +proto.io.bisq.protobuffer.RoleProposal.prototype.setUnlockTime = function(value) { + return jspb.Message.setProto3IntField(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.ConfiscateBondProposal.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.ConfiscateBondProposal.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.ConfiscateBondProposal} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ConfiscateBondProposal.toObject = function(includeInstance, msg) { + var f, obj = { + lockupTxId: 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.ConfiscateBondProposal} + */ +proto.io.bisq.protobuffer.ConfiscateBondProposal.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.ConfiscateBondProposal; + return proto.io.bisq.protobuffer.ConfiscateBondProposal.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.ConfiscateBondProposal} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.ConfiscateBondProposal} + */ +proto.io.bisq.protobuffer.ConfiscateBondProposal.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.setLockupTxId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.ConfiscateBondProposal.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.ConfiscateBondProposal.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.ConfiscateBondProposal} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ConfiscateBondProposal.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLockupTxId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string lockup_tx_id = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.ConfiscateBondProposal.prototype.getLockupTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.ConfiscateBondProposal} returns this + */ +proto.io.bisq.protobuffer.ConfiscateBondProposal.prototype.setLockupTxId = 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.GenericProposal.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.GenericProposal.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.GenericProposal} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GenericProposal.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.GenericProposal} + */ +proto.io.bisq.protobuffer.GenericProposal.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.GenericProposal; + return proto.io.bisq.protobuffer.GenericProposal.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.GenericProposal} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.GenericProposal} + */ +proto.io.bisq.protobuffer.GenericProposal.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.GenericProposal.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.GenericProposal.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.GenericProposal} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.GenericProposal.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.RemoveAssetProposal.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.RemoveAssetProposal.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.RemoveAssetProposal} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.RemoveAssetProposal.toObject = function(includeInstance, msg) { + var f, obj = { + tickerSymbol: 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.RemoveAssetProposal} + */ +proto.io.bisq.protobuffer.RemoveAssetProposal.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.RemoveAssetProposal; + return proto.io.bisq.protobuffer.RemoveAssetProposal.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.RemoveAssetProposal} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.RemoveAssetProposal} + */ +proto.io.bisq.protobuffer.RemoveAssetProposal.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.setTickerSymbol(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.RemoveAssetProposal.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.RemoveAssetProposal.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.RemoveAssetProposal} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.RemoveAssetProposal.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTickerSymbol(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string ticker_symbol = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.RemoveAssetProposal.prototype.getTickerSymbol = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.RemoveAssetProposal} returns this + */ +proto.io.bisq.protobuffer.RemoveAssetProposal.prototype.setTickerSymbol = 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.Role.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.Role.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.Role} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.Role.toObject = function(includeInstance, msg) { + var f, obj = { + uid: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + link: jspb.Message.getFieldWithDefault(msg, 3, ""), + bondedRoleType: 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.Role} + */ +proto.io.bisq.protobuffer.Role.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.Role; + return proto.io.bisq.protobuffer.Role.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.Role} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.Role} + */ +proto.io.bisq.protobuffer.Role.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.setName(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setLink(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setBondedRoleType(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.Role.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.Role.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.Role} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.Role.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUid(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getLink(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getBondedRoleType(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional string uid = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.Role.prototype.getUid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.Role} returns this + */ +proto.io.bisq.protobuffer.Role.prototype.setUid = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string name = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.Role.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.Role} returns this + */ +proto.io.bisq.protobuffer.Role.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string link = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.Role.prototype.getLink = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.Role} returns this + */ +proto.io.bisq.protobuffer.Role.prototype.setLink = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string bonded_role_type = 4; + * @return {string} + */ +proto.io.bisq.protobuffer.Role.prototype.getBondedRoleType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.Role} returns this + */ +proto.io.bisq.protobuffer.Role.prototype.setBondedRoleType = 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.MyReputation.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.MyReputation.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.MyReputation} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MyReputation.toObject = function(includeInstance, msg) { + var f, obj = { + uid: jspb.Message.getFieldWithDefault(msg, 1, ""), + salt: msg.getSalt_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.MyReputation} + */ +proto.io.bisq.protobuffer.MyReputation.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.MyReputation; + return proto.io.bisq.protobuffer.MyReputation.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.MyReputation} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.MyReputation} + */ +proto.io.bisq.protobuffer.MyReputation.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 {!Uint8Array} */ (reader.readBytes()); + msg.setSalt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.MyReputation.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.MyReputation.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.MyReputation} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MyReputation.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUid(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getSalt_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } +}; + + +/** + * optional string uid = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.MyReputation.prototype.getUid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.MyReputation} returns this + */ +proto.io.bisq.protobuffer.MyReputation.prototype.setUid = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bytes salt = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.MyReputation.prototype.getSalt = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes salt = 2; + * This is a type-conversion wrapper around `getSalt()` + * @return {string} + */ +proto.io.bisq.protobuffer.MyReputation.prototype.getSalt_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSalt())); +}; + + +/** + * optional bytes salt = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSalt()` + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.MyReputation.prototype.getSalt_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSalt())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.MyReputation} returns this + */ +proto.io.bisq.protobuffer.MyReputation.prototype.setSalt = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.MyReputationList.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.MyReputationList.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.MyReputationList.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.MyReputationList} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MyReputationList.toObject = function(includeInstance, msg) { + var f, obj = { + myReputationList: jspb.Message.toObjectList(msg.getMyReputationList(), + proto.io.bisq.protobuffer.MyReputation.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.MyReputationList} + */ +proto.io.bisq.protobuffer.MyReputationList.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.MyReputationList; + return proto.io.bisq.protobuffer.MyReputationList.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.MyReputationList} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.MyReputationList} + */ +proto.io.bisq.protobuffer.MyReputationList.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.MyReputation; + reader.readMessage(value,proto.io.bisq.protobuffer.MyReputation.deserializeBinaryFromReader); + msg.addMyReputation(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.MyReputationList.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.MyReputationList.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.MyReputationList} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MyReputationList.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMyReputationList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.MyReputation.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated MyReputation my_reputation = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.MyReputationList.prototype.getMyReputationList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.MyReputation, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.MyReputationList} returns this +*/ +proto.io.bisq.protobuffer.MyReputationList.prototype.setMyReputationList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.MyReputation=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.MyReputation} + */ +proto.io.bisq.protobuffer.MyReputationList.prototype.addMyReputation = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.MyReputation, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.MyReputationList} returns this + */ +proto.io.bisq.protobuffer.MyReputationList.prototype.clearMyReputationList = function() { + return this.setMyReputationList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.MyProofOfBurn.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.MyProofOfBurn.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.MyProofOfBurn} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MyProofOfBurn.toObject = function(includeInstance, msg) { + var f, obj = { + txId: jspb.Message.getFieldWithDefault(msg, 1, ""), + preImage: 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.MyProofOfBurn} + */ +proto.io.bisq.protobuffer.MyProofOfBurn.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.MyProofOfBurn; + return proto.io.bisq.protobuffer.MyProofOfBurn.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.MyProofOfBurn} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.MyProofOfBurn} + */ +proto.io.bisq.protobuffer.MyProofOfBurn.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 {string} */ (reader.readString()); + msg.setPreImage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.MyProofOfBurn.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.MyProofOfBurn.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.MyProofOfBurn} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MyProofOfBurn.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTxId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getPreImage(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string tx_id = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.MyProofOfBurn.prototype.getTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.MyProofOfBurn} returns this + */ +proto.io.bisq.protobuffer.MyProofOfBurn.prototype.setTxId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string pre_image = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.MyProofOfBurn.prototype.getPreImage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.MyProofOfBurn} returns this + */ +proto.io.bisq.protobuffer.MyProofOfBurn.prototype.setPreImage = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.MyProofOfBurnList.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.MyProofOfBurnList.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.MyProofOfBurnList.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.MyProofOfBurnList} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MyProofOfBurnList.toObject = function(includeInstance, msg) { + var f, obj = { + myProofOfBurnList: jspb.Message.toObjectList(msg.getMyProofOfBurnList(), + proto.io.bisq.protobuffer.MyProofOfBurn.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.MyProofOfBurnList} + */ +proto.io.bisq.protobuffer.MyProofOfBurnList.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.MyProofOfBurnList; + return proto.io.bisq.protobuffer.MyProofOfBurnList.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.MyProofOfBurnList} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.MyProofOfBurnList} + */ +proto.io.bisq.protobuffer.MyProofOfBurnList.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.MyProofOfBurn; + reader.readMessage(value,proto.io.bisq.protobuffer.MyProofOfBurn.deserializeBinaryFromReader); + msg.addMyProofOfBurn(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.MyProofOfBurnList.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.MyProofOfBurnList.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.MyProofOfBurnList} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MyProofOfBurnList.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMyProofOfBurnList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.MyProofOfBurn.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated MyProofOfBurn my_proof_of_burn = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.MyProofOfBurnList.prototype.getMyProofOfBurnList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.MyProofOfBurn, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.MyProofOfBurnList} returns this +*/ +proto.io.bisq.protobuffer.MyProofOfBurnList.prototype.setMyProofOfBurnList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.MyProofOfBurn=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.MyProofOfBurn} + */ +proto.io.bisq.protobuffer.MyProofOfBurnList.prototype.addMyProofOfBurn = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.MyProofOfBurn, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.MyProofOfBurnList} returns this + */ +proto.io.bisq.protobuffer.MyProofOfBurnList.prototype.clearMyProofOfBurnList = function() { + return this.setMyProofOfBurnList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList.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.UnconfirmedBsqChangeOutputList.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList.toObject = function(includeInstance, msg) { + var f, obj = { + unconfirmedTxOutputList: jspb.Message.toObjectList(msg.getUnconfirmedTxOutputList(), + proto.io.bisq.protobuffer.UnconfirmedTxOutput.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.UnconfirmedBsqChangeOutputList} + */ +proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList; + return proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList} + */ +proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList.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.UnconfirmedTxOutput; + reader.readMessage(value,proto.io.bisq.protobuffer.UnconfirmedTxOutput.deserializeBinaryFromReader); + msg.addUnconfirmedTxOutput(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUnconfirmedTxOutputList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.UnconfirmedTxOutput.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated UnconfirmedTxOutput unconfirmed_tx_output = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList.prototype.getUnconfirmedTxOutputList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.UnconfirmedTxOutput, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList} returns this +*/ +proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList.prototype.setUnconfirmedTxOutputList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.UnconfirmedTxOutput=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.UnconfirmedTxOutput} + */ +proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList.prototype.addUnconfirmedTxOutput = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.UnconfirmedTxOutput, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList} returns this + */ +proto.io.bisq.protobuffer.UnconfirmedBsqChangeOutputList.prototype.clearUnconfirmedTxOutputList = function() { + return this.setUnconfirmedTxOutputList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.TempProposalPayload.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.TempProposalPayload.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.TempProposalPayload} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TempProposalPayload.toObject = function(includeInstance, msg) { + var f, obj = { + proposal: (f = msg.getProposal()) && proto.io.bisq.protobuffer.Proposal.toObject(includeInstance, f), + ownerPubKeyEncoded: msg.getOwnerPubKeyEncoded_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.TempProposalPayload} + */ +proto.io.bisq.protobuffer.TempProposalPayload.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.TempProposalPayload; + return proto.io.bisq.protobuffer.TempProposalPayload.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.TempProposalPayload} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.TempProposalPayload} + */ +proto.io.bisq.protobuffer.TempProposalPayload.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.Proposal; + reader.readMessage(value,proto.io.bisq.protobuffer.Proposal.deserializeBinaryFromReader); + msg.setProposal(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setOwnerPubKeyEncoded(value); + break; + case 3: + 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.TempProposalPayload.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.TempProposalPayload.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.TempProposalPayload} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TempProposalPayload.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProposal(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.Proposal.serializeBinaryToWriter + ); + } + f = message.getOwnerPubKeyEncoded_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getExtraDataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } +}; + + +/** + * optional Proposal proposal = 1; + * @return {?proto.io.bisq.protobuffer.Proposal} + */ +proto.io.bisq.protobuffer.TempProposalPayload.prototype.getProposal = function() { + return /** @type{?proto.io.bisq.protobuffer.Proposal} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Proposal, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.Proposal|undefined} value + * @return {!proto.io.bisq.protobuffer.TempProposalPayload} returns this +*/ +proto.io.bisq.protobuffer.TempProposalPayload.prototype.setProposal = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.TempProposalPayload} returns this + */ +proto.io.bisq.protobuffer.TempProposalPayload.prototype.clearProposal = function() { + return this.setProposal(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.TempProposalPayload.prototype.hasProposal = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bytes owner_pub_key_encoded = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.TempProposalPayload.prototype.getOwnerPubKeyEncoded = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes owner_pub_key_encoded = 2; + * This is a type-conversion wrapper around `getOwnerPubKeyEncoded()` + * @return {string} + */ +proto.io.bisq.protobuffer.TempProposalPayload.prototype.getOwnerPubKeyEncoded_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getOwnerPubKeyEncoded())); +}; + + +/** + * optional bytes owner_pub_key_encoded = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getOwnerPubKeyEncoded()` + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.TempProposalPayload.prototype.getOwnerPubKeyEncoded_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getOwnerPubKeyEncoded())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.TempProposalPayload} returns this + */ +proto.io.bisq.protobuffer.TempProposalPayload.prototype.setOwnerPubKeyEncoded = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * map extra_data = 3; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.io.bisq.protobuffer.TempProposalPayload.prototype.getExtraDataMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 3, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.io.bisq.protobuffer.TempProposalPayload} returns this + */ +proto.io.bisq.protobuffer.TempProposalPayload.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.ProposalPayload.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.ProposalPayload.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.ProposalPayload} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ProposalPayload.toObject = function(includeInstance, msg) { + var f, obj = { + proposal: (f = msg.getProposal()) && proto.io.bisq.protobuffer.Proposal.toObject(includeInstance, f), + hash: msg.getHash_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.ProposalPayload} + */ +proto.io.bisq.protobuffer.ProposalPayload.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.ProposalPayload; + return proto.io.bisq.protobuffer.ProposalPayload.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.ProposalPayload} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.ProposalPayload} + */ +proto.io.bisq.protobuffer.ProposalPayload.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.Proposal; + reader.readMessage(value,proto.io.bisq.protobuffer.Proposal.deserializeBinaryFromReader); + msg.setProposal(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setHash(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.ProposalPayload.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.ProposalPayload.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.ProposalPayload} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ProposalPayload.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProposal(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.Proposal.serializeBinaryToWriter + ); + } + f = message.getHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } +}; + + +/** + * optional Proposal proposal = 1; + * @return {?proto.io.bisq.protobuffer.Proposal} + */ +proto.io.bisq.protobuffer.ProposalPayload.prototype.getProposal = function() { + return /** @type{?proto.io.bisq.protobuffer.Proposal} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Proposal, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.Proposal|undefined} value + * @return {!proto.io.bisq.protobuffer.ProposalPayload} returns this +*/ +proto.io.bisq.protobuffer.ProposalPayload.prototype.setProposal = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.ProposalPayload} returns this + */ +proto.io.bisq.protobuffer.ProposalPayload.prototype.clearProposal = function() { + return this.setProposal(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.ProposalPayload.prototype.hasProposal = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bytes hash = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.ProposalPayload.prototype.getHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes hash = 2; + * This is a type-conversion wrapper around `getHash()` + * @return {string} + */ +proto.io.bisq.protobuffer.ProposalPayload.prototype.getHash_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getHash())); +}; + + +/** + * optional bytes hash = 2; + * 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.ProposalPayload.prototype.getHash_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getHash())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.ProposalPayload} returns this + */ +proto.io.bisq.protobuffer.ProposalPayload.prototype.setHash = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.ProposalStore.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.ProposalStore.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.ProposalStore.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.ProposalStore} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ProposalStore.toObject = function(includeInstance, msg) { + var f, obj = { + itemsList: jspb.Message.toObjectList(msg.getItemsList(), + proto.io.bisq.protobuffer.ProposalPayload.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.ProposalStore} + */ +proto.io.bisq.protobuffer.ProposalStore.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.ProposalStore; + return proto.io.bisq.protobuffer.ProposalStore.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.ProposalStore} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.ProposalStore} + */ +proto.io.bisq.protobuffer.ProposalStore.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.ProposalPayload; + reader.readMessage(value,proto.io.bisq.protobuffer.ProposalPayload.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.ProposalStore.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.ProposalStore.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.ProposalStore} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ProposalStore.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getItemsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.ProposalPayload.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated ProposalPayload items = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.ProposalStore.prototype.getItemsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.ProposalPayload, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.ProposalStore} returns this +*/ +proto.io.bisq.protobuffer.ProposalStore.prototype.setItemsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.ProposalPayload=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.ProposalPayload} + */ +proto.io.bisq.protobuffer.ProposalStore.prototype.addItems = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.ProposalPayload, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.ProposalStore} returns this + */ +proto.io.bisq.protobuffer.ProposalStore.prototype.clearItemsList = function() { + return this.setItemsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.TempProposalStore.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.TempProposalStore.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.TempProposalStore.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.TempProposalStore} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TempProposalStore.toObject = function(includeInstance, msg) { + var f, obj = { + itemsList: jspb.Message.toObjectList(msg.getItemsList(), + proto.io.bisq.protobuffer.ProtectedStorageEntry.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.TempProposalStore} + */ +proto.io.bisq.protobuffer.TempProposalStore.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.TempProposalStore; + return proto.io.bisq.protobuffer.TempProposalStore.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.TempProposalStore} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.TempProposalStore} + */ +proto.io.bisq.protobuffer.TempProposalStore.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.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.TempProposalStore.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.TempProposalStore.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.TempProposalStore} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.TempProposalStore.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getItemsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.ProtectedStorageEntry.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated ProtectedStorageEntry items = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.TempProposalStore.prototype.getItemsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.ProtectedStorageEntry, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.TempProposalStore} returns this +*/ +proto.io.bisq.protobuffer.TempProposalStore.prototype.setItemsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.ProtectedStorageEntry=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.ProtectedStorageEntry} + */ +proto.io.bisq.protobuffer.TempProposalStore.prototype.addItems = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.ProtectedStorageEntry, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.TempProposalStore} returns this + */ +proto.io.bisq.protobuffer.TempProposalStore.prototype.clearItemsList = function() { + return this.setItemsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.Ballot.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.Ballot.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.Ballot} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.Ballot.toObject = function(includeInstance, msg) { + var f, obj = { + proposal: (f = msg.getProposal()) && proto.io.bisq.protobuffer.Proposal.toObject(includeInstance, f), + vote: (f = msg.getVote()) && proto.io.bisq.protobuffer.Vote.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.Ballot} + */ +proto.io.bisq.protobuffer.Ballot.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.Ballot; + return proto.io.bisq.protobuffer.Ballot.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.Ballot} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.Ballot} + */ +proto.io.bisq.protobuffer.Ballot.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.Proposal; + reader.readMessage(value,proto.io.bisq.protobuffer.Proposal.deserializeBinaryFromReader); + msg.setProposal(value); + break; + case 2: + var value = new proto.io.bisq.protobuffer.Vote; + reader.readMessage(value,proto.io.bisq.protobuffer.Vote.deserializeBinaryFromReader); + msg.setVote(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.Ballot.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.Ballot.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.Ballot} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.Ballot.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProposal(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.Proposal.serializeBinaryToWriter + ); + } + f = message.getVote(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.io.bisq.protobuffer.Vote.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Proposal proposal = 1; + * @return {?proto.io.bisq.protobuffer.Proposal} + */ +proto.io.bisq.protobuffer.Ballot.prototype.getProposal = function() { + return /** @type{?proto.io.bisq.protobuffer.Proposal} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Proposal, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.Proposal|undefined} value + * @return {!proto.io.bisq.protobuffer.Ballot} returns this +*/ +proto.io.bisq.protobuffer.Ballot.prototype.setProposal = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.Ballot} returns this + */ +proto.io.bisq.protobuffer.Ballot.prototype.clearProposal = function() { + return this.setProposal(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.Ballot.prototype.hasProposal = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Vote vote = 2; + * @return {?proto.io.bisq.protobuffer.Vote} + */ +proto.io.bisq.protobuffer.Ballot.prototype.getVote = function() { + return /** @type{?proto.io.bisq.protobuffer.Vote} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Vote, 2)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.Vote|undefined} value + * @return {!proto.io.bisq.protobuffer.Ballot} returns this +*/ +proto.io.bisq.protobuffer.Ballot.prototype.setVote = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.Ballot} returns this + */ +proto.io.bisq.protobuffer.Ballot.prototype.clearVote = function() { + return this.setVote(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.Ballot.prototype.hasVote = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.MyProposalList.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.MyProposalList.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.MyProposalList.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.MyProposalList} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MyProposalList.toObject = function(includeInstance, msg) { + var f, obj = { + proposalList: jspb.Message.toObjectList(msg.getProposalList(), + proto.io.bisq.protobuffer.Proposal.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.MyProposalList} + */ +proto.io.bisq.protobuffer.MyProposalList.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.MyProposalList; + return proto.io.bisq.protobuffer.MyProposalList.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.MyProposalList} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.MyProposalList} + */ +proto.io.bisq.protobuffer.MyProposalList.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.Proposal; + reader.readMessage(value,proto.io.bisq.protobuffer.Proposal.deserializeBinaryFromReader); + msg.addProposal(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.MyProposalList.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.MyProposalList.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.MyProposalList} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MyProposalList.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProposalList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.Proposal.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated Proposal proposal = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.MyProposalList.prototype.getProposalList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.Proposal, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.MyProposalList} returns this +*/ +proto.io.bisq.protobuffer.MyProposalList.prototype.setProposalList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.Proposal=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.Proposal} + */ +proto.io.bisq.protobuffer.MyProposalList.prototype.addProposal = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.Proposal, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.MyProposalList} returns this + */ +proto.io.bisq.protobuffer.MyProposalList.prototype.clearProposalList = function() { + return this.setProposalList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.BallotList.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.BallotList.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.BallotList.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.BallotList} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BallotList.toObject = function(includeInstance, msg) { + var f, obj = { + ballotList: jspb.Message.toObjectList(msg.getBallotList(), + proto.io.bisq.protobuffer.Ballot.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.BallotList} + */ +proto.io.bisq.protobuffer.BallotList.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.BallotList; + return proto.io.bisq.protobuffer.BallotList.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.BallotList} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.BallotList} + */ +proto.io.bisq.protobuffer.BallotList.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.Ballot; + reader.readMessage(value,proto.io.bisq.protobuffer.Ballot.deserializeBinaryFromReader); + msg.addBallot(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.BallotList.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.BallotList.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.BallotList} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BallotList.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBallotList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.Ballot.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated Ballot ballot = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.BallotList.prototype.getBallotList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.Ballot, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.BallotList} returns this +*/ +proto.io.bisq.protobuffer.BallotList.prototype.setBallotList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.Ballot=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.Ballot} + */ +proto.io.bisq.protobuffer.BallotList.prototype.addBallot = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.Ballot, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.BallotList} returns this + */ +proto.io.bisq.protobuffer.BallotList.prototype.clearBallotList = function() { + return this.setBallotList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.ParamChange.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.ParamChange.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.ParamChange} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ParamChange.toObject = function(includeInstance, msg) { + var f, obj = { + paramName: jspb.Message.getFieldWithDefault(msg, 1, ""), + paramValue: jspb.Message.getFieldWithDefault(msg, 2, ""), + activationHeight: 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.ParamChange} + */ +proto.io.bisq.protobuffer.ParamChange.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.ParamChange; + return proto.io.bisq.protobuffer.ParamChange.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.ParamChange} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.ParamChange} + */ +proto.io.bisq.protobuffer.ParamChange.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.setParamName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setParamValue(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setActivationHeight(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.ParamChange.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.ParamChange.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.ParamChange} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ParamChange.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParamName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getParamValue(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getActivationHeight(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } +}; + + +/** + * optional string param_name = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.ParamChange.prototype.getParamName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.ParamChange} returns this + */ +proto.io.bisq.protobuffer.ParamChange.prototype.setParamName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string param_value = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.ParamChange.prototype.getParamValue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.ParamChange} returns this + */ +proto.io.bisq.protobuffer.ParamChange.prototype.setParamValue = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional int32 activation_height = 3; + * @return {number} + */ +proto.io.bisq.protobuffer.ParamChange.prototype.getActivationHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.ParamChange} returns this + */ +proto.io.bisq.protobuffer.ParamChange.prototype.setActivationHeight = function(value) { + return jspb.Message.setProto3IntField(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.ConfiscateBond.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.ConfiscateBond.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.ConfiscateBond} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ConfiscateBond.toObject = function(includeInstance, msg) { + var f, obj = { + lockupTxId: 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.ConfiscateBond} + */ +proto.io.bisq.protobuffer.ConfiscateBond.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.ConfiscateBond; + return proto.io.bisq.protobuffer.ConfiscateBond.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.ConfiscateBond} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.ConfiscateBond} + */ +proto.io.bisq.protobuffer.ConfiscateBond.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.setLockupTxId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.ConfiscateBond.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.ConfiscateBond.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.ConfiscateBond} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ConfiscateBond.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLockupTxId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string lockup_tx_id = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.ConfiscateBond.prototype.getLockupTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.ConfiscateBond} returns this + */ +proto.io.bisq.protobuffer.ConfiscateBond.prototype.setLockupTxId = 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.MyVote.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.MyVote.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.MyVote} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MyVote.toObject = function(includeInstance, msg) { + var f, obj = { + height: jspb.Message.getFieldWithDefault(msg, 1, 0), + ballotList: (f = msg.getBallotList()) && proto.io.bisq.protobuffer.BallotList.toObject(includeInstance, f), + secretKeyEncoded: msg.getSecretKeyEncoded_asB64(), + blindVote: (f = msg.getBlindVote()) && proto.io.bisq.protobuffer.BlindVote.toObject(includeInstance, f), + date: jspb.Message.getFieldWithDefault(msg, 5, 0), + revealTxId: 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.MyVote} + */ +proto.io.bisq.protobuffer.MyVote.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.MyVote; + return proto.io.bisq.protobuffer.MyVote.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.MyVote} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.MyVote} + */ +proto.io.bisq.protobuffer.MyVote.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.setHeight(value); + break; + case 2: + var value = new proto.io.bisq.protobuffer.BallotList; + reader.readMessage(value,proto.io.bisq.protobuffer.BallotList.deserializeBinaryFromReader); + msg.setBallotList(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSecretKeyEncoded(value); + break; + case 4: + var value = new proto.io.bisq.protobuffer.BlindVote; + reader.readMessage(value,proto.io.bisq.protobuffer.BlindVote.deserializeBinaryFromReader); + msg.setBlindVote(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt64()); + msg.setDate(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setRevealTxId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.MyVote.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.MyVote.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.MyVote} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MyVote.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHeight(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getBallotList(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.io.bisq.protobuffer.BallotList.serializeBinaryToWriter + ); + } + f = message.getSecretKeyEncoded_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } + f = message.getBlindVote(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.io.bisq.protobuffer.BlindVote.serializeBinaryToWriter + ); + } + f = message.getDate(); + if (f !== 0) { + writer.writeInt64( + 5, + f + ); + } + f = message.getRevealTxId(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } +}; + + +/** + * optional int32 height = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.MyVote.prototype.getHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.MyVote} returns this + */ +proto.io.bisq.protobuffer.MyVote.prototype.setHeight = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional BallotList ballot_list = 2; + * @return {?proto.io.bisq.protobuffer.BallotList} + */ +proto.io.bisq.protobuffer.MyVote.prototype.getBallotList = function() { + return /** @type{?proto.io.bisq.protobuffer.BallotList} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.BallotList, 2)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.BallotList|undefined} value + * @return {!proto.io.bisq.protobuffer.MyVote} returns this +*/ +proto.io.bisq.protobuffer.MyVote.prototype.setBallotList = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.MyVote} returns this + */ +proto.io.bisq.protobuffer.MyVote.prototype.clearBallotList = function() { + return this.setBallotList(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.MyVote.prototype.hasBallotList = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional bytes secret_key_encoded = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.MyVote.prototype.getSecretKeyEncoded = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes secret_key_encoded = 3; + * This is a type-conversion wrapper around `getSecretKeyEncoded()` + * @return {string} + */ +proto.io.bisq.protobuffer.MyVote.prototype.getSecretKeyEncoded_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSecretKeyEncoded())); +}; + + +/** + * optional bytes secret_key_encoded = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSecretKeyEncoded()` + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.MyVote.prototype.getSecretKeyEncoded_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSecretKeyEncoded())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.MyVote} returns this + */ +proto.io.bisq.protobuffer.MyVote.prototype.setSecretKeyEncoded = function(value) { + return jspb.Message.setProto3BytesField(this, 3, value); +}; + + +/** + * optional BlindVote blind_vote = 4; + * @return {?proto.io.bisq.protobuffer.BlindVote} + */ +proto.io.bisq.protobuffer.MyVote.prototype.getBlindVote = function() { + return /** @type{?proto.io.bisq.protobuffer.BlindVote} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.BlindVote, 4)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.BlindVote|undefined} value + * @return {!proto.io.bisq.protobuffer.MyVote} returns this +*/ +proto.io.bisq.protobuffer.MyVote.prototype.setBlindVote = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.MyVote} returns this + */ +proto.io.bisq.protobuffer.MyVote.prototype.clearBlindVote = function() { + return this.setBlindVote(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.MyVote.prototype.hasBlindVote = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional int64 date = 5; + * @return {number} + */ +proto.io.bisq.protobuffer.MyVote.prototype.getDate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.MyVote} returns this + */ +proto.io.bisq.protobuffer.MyVote.prototype.setDate = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional string reveal_tx_id = 6; + * @return {string} + */ +proto.io.bisq.protobuffer.MyVote.prototype.getRevealTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.MyVote} returns this + */ +proto.io.bisq.protobuffer.MyVote.prototype.setRevealTxId = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.MyVoteList.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.MyVoteList.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.MyVoteList.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.MyVoteList} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MyVoteList.toObject = function(includeInstance, msg) { + var f, obj = { + myVoteList: jspb.Message.toObjectList(msg.getMyVoteList(), + proto.io.bisq.protobuffer.MyVote.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.MyVoteList} + */ +proto.io.bisq.protobuffer.MyVoteList.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.MyVoteList; + return proto.io.bisq.protobuffer.MyVoteList.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.MyVoteList} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.MyVoteList} + */ +proto.io.bisq.protobuffer.MyVoteList.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.MyVote; + reader.readMessage(value,proto.io.bisq.protobuffer.MyVote.deserializeBinaryFromReader); + msg.addMyVote(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.MyVoteList.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.MyVoteList.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.MyVoteList} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MyVoteList.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMyVoteList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.MyVote.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated MyVote my_vote = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.MyVoteList.prototype.getMyVoteList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.MyVote, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.MyVoteList} returns this +*/ +proto.io.bisq.protobuffer.MyVoteList.prototype.setMyVoteList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.MyVote=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.MyVote} + */ +proto.io.bisq.protobuffer.MyVoteList.prototype.addMyVote = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.MyVote, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.MyVoteList} returns this + */ +proto.io.bisq.protobuffer.MyVoteList.prototype.clearMyVoteList = function() { + return this.setMyVoteList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.VoteWithProposalTxId.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.VoteWithProposalTxId.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.VoteWithProposalTxId} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.VoteWithProposalTxId.toObject = function(includeInstance, msg) { + var f, obj = { + proposalTxId: jspb.Message.getFieldWithDefault(msg, 1, ""), + vote: (f = msg.getVote()) && proto.io.bisq.protobuffer.Vote.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.VoteWithProposalTxId} + */ +proto.io.bisq.protobuffer.VoteWithProposalTxId.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.VoteWithProposalTxId; + return proto.io.bisq.protobuffer.VoteWithProposalTxId.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.VoteWithProposalTxId} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.VoteWithProposalTxId} + */ +proto.io.bisq.protobuffer.VoteWithProposalTxId.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.setProposalTxId(value); + break; + case 2: + var value = new proto.io.bisq.protobuffer.Vote; + reader.readMessage(value,proto.io.bisq.protobuffer.Vote.deserializeBinaryFromReader); + msg.setVote(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.VoteWithProposalTxId.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.VoteWithProposalTxId.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.VoteWithProposalTxId} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.VoteWithProposalTxId.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProposalTxId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getVote(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.io.bisq.protobuffer.Vote.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string proposal_tx_id = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.VoteWithProposalTxId.prototype.getProposalTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.VoteWithProposalTxId} returns this + */ +proto.io.bisq.protobuffer.VoteWithProposalTxId.prototype.setProposalTxId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional Vote vote = 2; + * @return {?proto.io.bisq.protobuffer.Vote} + */ +proto.io.bisq.protobuffer.VoteWithProposalTxId.prototype.getVote = function() { + return /** @type{?proto.io.bisq.protobuffer.Vote} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Vote, 2)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.Vote|undefined} value + * @return {!proto.io.bisq.protobuffer.VoteWithProposalTxId} returns this +*/ +proto.io.bisq.protobuffer.VoteWithProposalTxId.prototype.setVote = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.VoteWithProposalTxId} returns this + */ +proto.io.bisq.protobuffer.VoteWithProposalTxId.prototype.clearVote = function() { + return this.setVote(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.VoteWithProposalTxId.prototype.hasVote = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.VoteWithProposalTxIdList.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.VoteWithProposalTxIdList.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.VoteWithProposalTxIdList.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.VoteWithProposalTxIdList} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.VoteWithProposalTxIdList.toObject = function(includeInstance, msg) { + var f, obj = { + itemList: jspb.Message.toObjectList(msg.getItemList(), + proto.io.bisq.protobuffer.VoteWithProposalTxId.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.VoteWithProposalTxIdList} + */ +proto.io.bisq.protobuffer.VoteWithProposalTxIdList.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.VoteWithProposalTxIdList; + return proto.io.bisq.protobuffer.VoteWithProposalTxIdList.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.VoteWithProposalTxIdList} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.VoteWithProposalTxIdList} + */ +proto.io.bisq.protobuffer.VoteWithProposalTxIdList.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.VoteWithProposalTxId; + reader.readMessage(value,proto.io.bisq.protobuffer.VoteWithProposalTxId.deserializeBinaryFromReader); + msg.addItem(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.VoteWithProposalTxIdList.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.VoteWithProposalTxIdList.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.VoteWithProposalTxIdList} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.VoteWithProposalTxIdList.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getItemList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.VoteWithProposalTxId.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated VoteWithProposalTxId item = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.VoteWithProposalTxIdList.prototype.getItemList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.VoteWithProposalTxId, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.VoteWithProposalTxIdList} returns this +*/ +proto.io.bisq.protobuffer.VoteWithProposalTxIdList.prototype.setItemList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.VoteWithProposalTxId=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.VoteWithProposalTxId} + */ +proto.io.bisq.protobuffer.VoteWithProposalTxIdList.prototype.addItem = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.VoteWithProposalTxId, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.VoteWithProposalTxIdList} returns this + */ +proto.io.bisq.protobuffer.VoteWithProposalTxIdList.prototype.clearItemList = function() { + return this.setItemList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.BlindVote.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.BlindVote.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.BlindVote} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BlindVote.toObject = function(includeInstance, msg) { + var f, obj = { + encryptedVotes: msg.getEncryptedVotes_asB64(), + txId: jspb.Message.getFieldWithDefault(msg, 2, ""), + stake: jspb.Message.getFieldWithDefault(msg, 3, 0), + encryptedMeritList: msg.getEncryptedMeritList_asB64(), + date: jspb.Message.getFieldWithDefault(msg, 5, 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.BlindVote} + */ +proto.io.bisq.protobuffer.BlindVote.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.BlindVote; + return proto.io.bisq.protobuffer.BlindVote.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.BlindVote} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.BlindVote} + */ +proto.io.bisq.protobuffer.BlindVote.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.setEncryptedVotes(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setTxId(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setStake(value); + break; + case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setEncryptedMeritList(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt64()); + msg.setDate(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; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.BlindVote.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.BlindVote.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.BlindVote} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BlindVote.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEncryptedVotes_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } + f = message.getTxId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getStake(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } + f = message.getEncryptedMeritList_asU8(); + if (f.length > 0) { + writer.writeBytes( + 4, + f + ); + } + f = message.getDate(); + if (f !== 0) { + writer.writeInt64( + 5, + f + ); + } + f = message.getExtraDataMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } +}; + + +/** + * optional bytes encrypted_votes = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.BlindVote.prototype.getEncryptedVotes = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes encrypted_votes = 1; + * This is a type-conversion wrapper around `getEncryptedVotes()` + * @return {string} + */ +proto.io.bisq.protobuffer.BlindVote.prototype.getEncryptedVotes_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getEncryptedVotes())); +}; + + +/** + * optional bytes encrypted_votes = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getEncryptedVotes()` + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.BlindVote.prototype.getEncryptedVotes_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getEncryptedVotes())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.BlindVote} returns this + */ +proto.io.bisq.protobuffer.BlindVote.prototype.setEncryptedVotes = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + +/** + * optional string tx_id = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.BlindVote.prototype.getTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.BlindVote} returns this + */ +proto.io.bisq.protobuffer.BlindVote.prototype.setTxId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional int64 stake = 3; + * @return {number} + */ +proto.io.bisq.protobuffer.BlindVote.prototype.getStake = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BlindVote} returns this + */ +proto.io.bisq.protobuffer.BlindVote.prototype.setStake = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional bytes encrypted_merit_list = 4; + * @return {string} + */ +proto.io.bisq.protobuffer.BlindVote.prototype.getEncryptedMeritList = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * optional bytes encrypted_merit_list = 4; + * This is a type-conversion wrapper around `getEncryptedMeritList()` + * @return {string} + */ +proto.io.bisq.protobuffer.BlindVote.prototype.getEncryptedMeritList_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getEncryptedMeritList())); +}; + + +/** + * optional bytes encrypted_merit_list = 4; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getEncryptedMeritList()` + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.BlindVote.prototype.getEncryptedMeritList_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getEncryptedMeritList())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.BlindVote} returns this + */ +proto.io.bisq.protobuffer.BlindVote.prototype.setEncryptedMeritList = function(value) { + return jspb.Message.setProto3BytesField(this, 4, value); +}; + + +/** + * optional int64 date = 5; + * @return {number} + */ +proto.io.bisq.protobuffer.BlindVote.prototype.getDate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BlindVote} returns this + */ +proto.io.bisq.protobuffer.BlindVote.prototype.setDate = function(value) { + return jspb.Message.setProto3IntField(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.BlindVote.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.BlindVote} returns this + */ +proto.io.bisq.protobuffer.BlindVote.prototype.clearExtraDataMap = function() { + this.getExtraDataMap().clear(); + return this;}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.MyBlindVoteList.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.MyBlindVoteList.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.MyBlindVoteList.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.MyBlindVoteList} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MyBlindVoteList.toObject = function(includeInstance, msg) { + var f, obj = { + blindVoteList: jspb.Message.toObjectList(msg.getBlindVoteList(), + proto.io.bisq.protobuffer.BlindVote.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.MyBlindVoteList} + */ +proto.io.bisq.protobuffer.MyBlindVoteList.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.MyBlindVoteList; + return proto.io.bisq.protobuffer.MyBlindVoteList.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.MyBlindVoteList} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.MyBlindVoteList} + */ +proto.io.bisq.protobuffer.MyBlindVoteList.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.BlindVote; + reader.readMessage(value,proto.io.bisq.protobuffer.BlindVote.deserializeBinaryFromReader); + msg.addBlindVote(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.MyBlindVoteList.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.MyBlindVoteList.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.MyBlindVoteList} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MyBlindVoteList.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBlindVoteList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.BlindVote.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated BlindVote blind_vote = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.MyBlindVoteList.prototype.getBlindVoteList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.BlindVote, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.MyBlindVoteList} returns this +*/ +proto.io.bisq.protobuffer.MyBlindVoteList.prototype.setBlindVoteList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.BlindVote=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.BlindVote} + */ +proto.io.bisq.protobuffer.MyBlindVoteList.prototype.addBlindVote = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.BlindVote, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.MyBlindVoteList} returns this + */ +proto.io.bisq.protobuffer.MyBlindVoteList.prototype.clearBlindVoteList = function() { + return this.setBlindVoteList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.BlindVoteStore.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.BlindVoteStore.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.BlindVoteStore.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.BlindVoteStore} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BlindVoteStore.toObject = function(includeInstance, msg) { + var f, obj = { + itemsList: jspb.Message.toObjectList(msg.getItemsList(), + proto.io.bisq.protobuffer.BlindVotePayload.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.BlindVoteStore} + */ +proto.io.bisq.protobuffer.BlindVoteStore.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.BlindVoteStore; + return proto.io.bisq.protobuffer.BlindVoteStore.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.BlindVoteStore} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.BlindVoteStore} + */ +proto.io.bisq.protobuffer.BlindVoteStore.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.BlindVotePayload; + reader.readMessage(value,proto.io.bisq.protobuffer.BlindVotePayload.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.BlindVoteStore.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.BlindVoteStore.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.BlindVoteStore} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BlindVoteStore.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getItemsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.BlindVotePayload.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated BlindVotePayload items = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.BlindVoteStore.prototype.getItemsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.BlindVotePayload, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.BlindVoteStore} returns this +*/ +proto.io.bisq.protobuffer.BlindVoteStore.prototype.setItemsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.BlindVotePayload=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.BlindVotePayload} + */ +proto.io.bisq.protobuffer.BlindVoteStore.prototype.addItems = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.BlindVotePayload, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.BlindVoteStore} returns this + */ +proto.io.bisq.protobuffer.BlindVoteStore.prototype.clearItemsList = function() { + return this.setItemsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.BlindVotePayload.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.BlindVotePayload.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.BlindVotePayload} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BlindVotePayload.toObject = function(includeInstance, msg) { + var f, obj = { + blindVote: (f = msg.getBlindVote()) && proto.io.bisq.protobuffer.BlindVote.toObject(includeInstance, f), + hash: msg.getHash_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.BlindVotePayload} + */ +proto.io.bisq.protobuffer.BlindVotePayload.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.BlindVotePayload; + return proto.io.bisq.protobuffer.BlindVotePayload.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.BlindVotePayload} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.BlindVotePayload} + */ +proto.io.bisq.protobuffer.BlindVotePayload.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.BlindVote; + reader.readMessage(value,proto.io.bisq.protobuffer.BlindVote.deserializeBinaryFromReader); + msg.setBlindVote(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setHash(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.BlindVotePayload.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.BlindVotePayload.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.BlindVotePayload} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BlindVotePayload.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBlindVote(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.BlindVote.serializeBinaryToWriter + ); + } + f = message.getHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } +}; + + +/** + * optional BlindVote blind_vote = 1; + * @return {?proto.io.bisq.protobuffer.BlindVote} + */ +proto.io.bisq.protobuffer.BlindVotePayload.prototype.getBlindVote = function() { + return /** @type{?proto.io.bisq.protobuffer.BlindVote} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.BlindVote, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.BlindVote|undefined} value + * @return {!proto.io.bisq.protobuffer.BlindVotePayload} returns this +*/ +proto.io.bisq.protobuffer.BlindVotePayload.prototype.setBlindVote = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.BlindVotePayload} returns this + */ +proto.io.bisq.protobuffer.BlindVotePayload.prototype.clearBlindVote = function() { + return this.setBlindVote(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.BlindVotePayload.prototype.hasBlindVote = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bytes hash = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.BlindVotePayload.prototype.getHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes hash = 2; + * This is a type-conversion wrapper around `getHash()` + * @return {string} + */ +proto.io.bisq.protobuffer.BlindVotePayload.prototype.getHash_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getHash())); +}; + + +/** + * optional bytes hash = 2; + * 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.BlindVotePayload.prototype.getHash_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getHash())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.BlindVotePayload} returns this + */ +proto.io.bisq.protobuffer.BlindVotePayload.prototype.setHash = 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.Vote.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.Vote.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.Vote} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.Vote.toObject = function(includeInstance, msg) { + var f, obj = { + accepted: 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.Vote} + */ +proto.io.bisq.protobuffer.Vote.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.Vote; + return proto.io.bisq.protobuffer.Vote.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.Vote} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.Vote} + */ +proto.io.bisq.protobuffer.Vote.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.setAccepted(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.Vote.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.Vote.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.Vote} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.Vote.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAccepted(); + if (f) { + writer.writeBool( + 1, + f + ); + } +}; + + +/** + * optional bool accepted = 1; + * @return {boolean} + */ +proto.io.bisq.protobuffer.Vote.prototype.getAccepted = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.Vote} returns this + */ +proto.io.bisq.protobuffer.Vote.prototype.setAccepted = 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.Merit.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.Merit.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.Merit} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.Merit.toObject = function(includeInstance, msg) { + var f, obj = { + issuance: (f = msg.getIssuance()) && proto.io.bisq.protobuffer.Issuance.toObject(includeInstance, f), + signature: msg.getSignature_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.Merit} + */ +proto.io.bisq.protobuffer.Merit.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.Merit; + return proto.io.bisq.protobuffer.Merit.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.Merit} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.Merit} + */ +proto.io.bisq.protobuffer.Merit.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.Issuance; + reader.readMessage(value,proto.io.bisq.protobuffer.Issuance.deserializeBinaryFromReader); + msg.setIssuance(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSignature(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.Merit.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.Merit.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.Merit} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.Merit.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIssuance(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.Issuance.serializeBinaryToWriter + ); + } + f = message.getSignature_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } +}; + + +/** + * optional Issuance issuance = 1; + * @return {?proto.io.bisq.protobuffer.Issuance} + */ +proto.io.bisq.protobuffer.Merit.prototype.getIssuance = function() { + return /** @type{?proto.io.bisq.protobuffer.Issuance} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Issuance, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.Issuance|undefined} value + * @return {!proto.io.bisq.protobuffer.Merit} returns this +*/ +proto.io.bisq.protobuffer.Merit.prototype.setIssuance = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.Merit} returns this + */ +proto.io.bisq.protobuffer.Merit.prototype.clearIssuance = function() { + return this.setIssuance(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.Merit.prototype.hasIssuance = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bytes signature = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.Merit.prototype.getSignature = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes signature = 2; + * This is a type-conversion wrapper around `getSignature()` + * @return {string} + */ +proto.io.bisq.protobuffer.Merit.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.Merit.prototype.getSignature_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSignature())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.Merit} returns this + */ +proto.io.bisq.protobuffer.Merit.prototype.setSignature = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.MeritList.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.MeritList.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.MeritList.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.MeritList} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MeritList.toObject = function(includeInstance, msg) { + var f, obj = { + meritList: jspb.Message.toObjectList(msg.getMeritList(), + proto.io.bisq.protobuffer.Merit.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.MeritList} + */ +proto.io.bisq.protobuffer.MeritList.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.MeritList; + return proto.io.bisq.protobuffer.MeritList.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.MeritList} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.MeritList} + */ +proto.io.bisq.protobuffer.MeritList.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.Merit; + reader.readMessage(value,proto.io.bisq.protobuffer.Merit.deserializeBinaryFromReader); + msg.addMerit(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.MeritList.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.MeritList.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.MeritList} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.MeritList.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMeritList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.io.bisq.protobuffer.Merit.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated Merit merit = 1; + * @return {!Array} + */ +proto.io.bisq.protobuffer.MeritList.prototype.getMeritList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.Merit, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.MeritList} returns this +*/ +proto.io.bisq.protobuffer.MeritList.prototype.setMeritList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.Merit=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.Merit} + */ +proto.io.bisq.protobuffer.MeritList.prototype.addMerit = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.bisq.protobuffer.Merit, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.MeritList} returns this + */ +proto.io.bisq.protobuffer.MeritList.prototype.clearMeritList = function() { + return this.setMeritList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.ProposalVoteResult.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.ProposalVoteResult.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.ProposalVoteResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ProposalVoteResult.toObject = function(includeInstance, msg) { + var f, obj = { + proposal: (f = msg.getProposal()) && proto.io.bisq.protobuffer.Proposal.toObject(includeInstance, f), + stakeOfAcceptedVotes: jspb.Message.getFieldWithDefault(msg, 2, 0), + stakeOfRejectedVotes: jspb.Message.getFieldWithDefault(msg, 3, 0), + numAcceptedVotes: jspb.Message.getFieldWithDefault(msg, 4, 0), + numRejectedVotes: jspb.Message.getFieldWithDefault(msg, 5, 0), + numIgnoredVotes: jspb.Message.getFieldWithDefault(msg, 6, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.io.bisq.protobuffer.ProposalVoteResult} + */ +proto.io.bisq.protobuffer.ProposalVoteResult.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.ProposalVoteResult; + return proto.io.bisq.protobuffer.ProposalVoteResult.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.ProposalVoteResult} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.ProposalVoteResult} + */ +proto.io.bisq.protobuffer.ProposalVoteResult.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.Proposal; + reader.readMessage(value,proto.io.bisq.protobuffer.Proposal.deserializeBinaryFromReader); + msg.setProposal(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setStakeOfAcceptedVotes(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setStakeOfRejectedVotes(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt32()); + msg.setNumAcceptedVotes(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt32()); + msg.setNumRejectedVotes(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt32()); + msg.setNumIgnoredVotes(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.ProposalVoteResult.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.ProposalVoteResult.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.ProposalVoteResult} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ProposalVoteResult.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProposal(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.Proposal.serializeBinaryToWriter + ); + } + f = message.getStakeOfAcceptedVotes(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getStakeOfRejectedVotes(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } + f = message.getNumAcceptedVotes(); + if (f !== 0) { + writer.writeInt32( + 4, + f + ); + } + f = message.getNumRejectedVotes(); + if (f !== 0) { + writer.writeInt32( + 5, + f + ); + } + f = message.getNumIgnoredVotes(); + if (f !== 0) { + writer.writeInt32( + 6, + f + ); + } +}; + + +/** + * optional Proposal proposal = 1; + * @return {?proto.io.bisq.protobuffer.Proposal} + */ +proto.io.bisq.protobuffer.ProposalVoteResult.prototype.getProposal = function() { + return /** @type{?proto.io.bisq.protobuffer.Proposal} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.Proposal, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.Proposal|undefined} value + * @return {!proto.io.bisq.protobuffer.ProposalVoteResult} returns this +*/ +proto.io.bisq.protobuffer.ProposalVoteResult.prototype.setProposal = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.ProposalVoteResult} returns this + */ +proto.io.bisq.protobuffer.ProposalVoteResult.prototype.clearProposal = function() { + return this.setProposal(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.ProposalVoteResult.prototype.hasProposal = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional int64 stake_of_Accepted_votes = 2; + * @return {number} + */ +proto.io.bisq.protobuffer.ProposalVoteResult.prototype.getStakeOfAcceptedVotes = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.ProposalVoteResult} returns this + */ +proto.io.bisq.protobuffer.ProposalVoteResult.prototype.setStakeOfAcceptedVotes = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional int64 stake_of_Rejected_votes = 3; + * @return {number} + */ +proto.io.bisq.protobuffer.ProposalVoteResult.prototype.getStakeOfRejectedVotes = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.ProposalVoteResult} returns this + */ +proto.io.bisq.protobuffer.ProposalVoteResult.prototype.setStakeOfRejectedVotes = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional int32 num_accepted_votes = 4; + * @return {number} + */ +proto.io.bisq.protobuffer.ProposalVoteResult.prototype.getNumAcceptedVotes = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.ProposalVoteResult} returns this + */ +proto.io.bisq.protobuffer.ProposalVoteResult.prototype.setNumAcceptedVotes = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional int32 num_rejected_votes = 5; + * @return {number} + */ +proto.io.bisq.protobuffer.ProposalVoteResult.prototype.getNumRejectedVotes = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.ProposalVoteResult} returns this + */ +proto.io.bisq.protobuffer.ProposalVoteResult.prototype.setNumRejectedVotes = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional int32 num_ignored_votes = 6; + * @return {number} + */ +proto.io.bisq.protobuffer.ProposalVoteResult.prototype.getNumIgnoredVotes = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.ProposalVoteResult} returns this + */ +proto.io.bisq.protobuffer.ProposalVoteResult.prototype.setNumIgnoredVotes = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.EvaluatedProposal.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.EvaluatedProposal.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.EvaluatedProposal} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.EvaluatedProposal.toObject = function(includeInstance, msg) { + var f, obj = { + isAccepted: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + proposalVoteResult: (f = msg.getProposalVoteResult()) && proto.io.bisq.protobuffer.ProposalVoteResult.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.EvaluatedProposal} + */ +proto.io.bisq.protobuffer.EvaluatedProposal.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.EvaluatedProposal; + return proto.io.bisq.protobuffer.EvaluatedProposal.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.EvaluatedProposal} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.EvaluatedProposal} + */ +proto.io.bisq.protobuffer.EvaluatedProposal.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.setIsAccepted(value); + break; + case 2: + var value = new proto.io.bisq.protobuffer.ProposalVoteResult; + reader.readMessage(value,proto.io.bisq.protobuffer.ProposalVoteResult.deserializeBinaryFromReader); + msg.setProposalVoteResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.EvaluatedProposal.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.EvaluatedProposal.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.EvaluatedProposal} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.EvaluatedProposal.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIsAccepted(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getProposalVoteResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.io.bisq.protobuffer.ProposalVoteResult.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bool is_accepted = 1; + * @return {boolean} + */ +proto.io.bisq.protobuffer.EvaluatedProposal.prototype.getIsAccepted = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.io.bisq.protobuffer.EvaluatedProposal} returns this + */ +proto.io.bisq.protobuffer.EvaluatedProposal.prototype.setIsAccepted = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * optional ProposalVoteResult proposal_vote_result = 2; + * @return {?proto.io.bisq.protobuffer.ProposalVoteResult} + */ +proto.io.bisq.protobuffer.EvaluatedProposal.prototype.getProposalVoteResult = function() { + return /** @type{?proto.io.bisq.protobuffer.ProposalVoteResult} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.ProposalVoteResult, 2)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.ProposalVoteResult|undefined} value + * @return {!proto.io.bisq.protobuffer.EvaluatedProposal} returns this +*/ +proto.io.bisq.protobuffer.EvaluatedProposal.prototype.setProposalVoteResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.EvaluatedProposal} returns this + */ +proto.io.bisq.protobuffer.EvaluatedProposal.prototype.clearProposalVoteResult = function() { + return this.setProposalVoteResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.EvaluatedProposal.prototype.hasProposalVoteResult = 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.DecryptedBallotsWithMerits.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.DecryptedBallotsWithMerits} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.toObject = function(includeInstance, msg) { + var f, obj = { + hashOfBlindVoteList: msg.getHashOfBlindVoteList_asB64(), + blindVoteTxId: jspb.Message.getFieldWithDefault(msg, 2, ""), + voteRevealTxId: jspb.Message.getFieldWithDefault(msg, 3, ""), + stake: jspb.Message.getFieldWithDefault(msg, 4, 0), + ballotList: (f = msg.getBallotList()) && proto.io.bisq.protobuffer.BallotList.toObject(includeInstance, f), + meritList: (f = msg.getMeritList()) && proto.io.bisq.protobuffer.MeritList.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.DecryptedBallotsWithMerits} + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.DecryptedBallotsWithMerits; + return proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.DecryptedBallotsWithMerits} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.DecryptedBallotsWithMerits} + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.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.setHashOfBlindVoteList(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setBlindVoteTxId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setVoteRevealTxId(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setStake(value); + break; + case 5: + var value = new proto.io.bisq.protobuffer.BallotList; + reader.readMessage(value,proto.io.bisq.protobuffer.BallotList.deserializeBinaryFromReader); + msg.setBallotList(value); + break; + case 6: + var value = new proto.io.bisq.protobuffer.MeritList; + reader.readMessage(value,proto.io.bisq.protobuffer.MeritList.deserializeBinaryFromReader); + msg.setMeritList(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.DecryptedBallotsWithMerits} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHashOfBlindVoteList_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } + f = message.getBlindVoteTxId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getVoteRevealTxId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getStake(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } + f = message.getBallotList(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.io.bisq.protobuffer.BallotList.serializeBinaryToWriter + ); + } + f = message.getMeritList(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.io.bisq.protobuffer.MeritList.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bytes hash_of_blind_vote_list = 1; + * @return {string} + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.getHashOfBlindVoteList = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes hash_of_blind_vote_list = 1; + * This is a type-conversion wrapper around `getHashOfBlindVoteList()` + * @return {string} + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.getHashOfBlindVoteList_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getHashOfBlindVoteList())); +}; + + +/** + * optional bytes hash_of_blind_vote_list = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getHashOfBlindVoteList()` + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.getHashOfBlindVoteList_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getHashOfBlindVoteList())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.DecryptedBallotsWithMerits} returns this + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.setHashOfBlindVoteList = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + +/** + * optional string blind_vote_tx_id = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.getBlindVoteTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.DecryptedBallotsWithMerits} returns this + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.setBlindVoteTxId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string vote_reveal_tx_id = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.getVoteRevealTxId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.io.bisq.protobuffer.DecryptedBallotsWithMerits} returns this + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.setVoteRevealTxId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional int64 stake = 4; + * @return {number} + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.getStake = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.DecryptedBallotsWithMerits} returns this + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.setStake = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional BallotList ballot_list = 5; + * @return {?proto.io.bisq.protobuffer.BallotList} + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.getBallotList = function() { + return /** @type{?proto.io.bisq.protobuffer.BallotList} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.BallotList, 5)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.BallotList|undefined} value + * @return {!proto.io.bisq.protobuffer.DecryptedBallotsWithMerits} returns this +*/ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.setBallotList = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.DecryptedBallotsWithMerits} returns this + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.clearBallotList = function() { + return this.setBallotList(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.hasBallotList = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional MeritList merit_list = 6; + * @return {?proto.io.bisq.protobuffer.MeritList} + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.getMeritList = function() { + return /** @type{?proto.io.bisq.protobuffer.MeritList} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.MeritList, 6)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.MeritList|undefined} value + * @return {!proto.io.bisq.protobuffer.DecryptedBallotsWithMerits} returns this +*/ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.setMeritList = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.DecryptedBallotsWithMerits} returns this + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.clearMeritList = function() { + return this.setMeritList(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.hasMeritList = function() { + return jspb.Message.getField(this, 6) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.io.bisq.protobuffer.DaoStateStore.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.DaoStateStore.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.DaoStateStore.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.DaoStateStore} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.DaoStateStore.toObject = function(includeInstance, msg) { + var f, obj = { + daoState: (f = msg.getDaoState()) && proto.io.bisq.protobuffer.DaoState.toObject(includeInstance, f), + daoStateHashList: jspb.Message.toObjectList(msg.getDaoStateHashList(), + proto.io.bisq.protobuffer.DaoStateHash.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.DaoStateStore} + */ +proto.io.bisq.protobuffer.DaoStateStore.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.DaoStateStore; + return proto.io.bisq.protobuffer.DaoStateStore.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.DaoStateStore} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.DaoStateStore} + */ +proto.io.bisq.protobuffer.DaoStateStore.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.DaoState; + reader.readMessage(value,proto.io.bisq.protobuffer.DaoState.deserializeBinaryFromReader); + msg.setDaoState(value); + break; + case 2: + var value = new proto.io.bisq.protobuffer.DaoStateHash; + reader.readMessage(value,proto.io.bisq.protobuffer.DaoStateHash.deserializeBinaryFromReader); + msg.addDaoStateHash(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.DaoStateStore.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.DaoStateStore.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.DaoStateStore} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.DaoStateStore.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDaoState(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.io.bisq.protobuffer.DaoState.serializeBinaryToWriter + ); + } + f = message.getDaoStateHashList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.io.bisq.protobuffer.DaoStateHash.serializeBinaryToWriter + ); + } +}; + + +/** + * optional DaoState dao_state = 1; + * @return {?proto.io.bisq.protobuffer.DaoState} + */ +proto.io.bisq.protobuffer.DaoStateStore.prototype.getDaoState = function() { + return /** @type{?proto.io.bisq.protobuffer.DaoState} */ ( + jspb.Message.getWrapperField(this, proto.io.bisq.protobuffer.DaoState, 1)); +}; + + +/** + * @param {?proto.io.bisq.protobuffer.DaoState|undefined} value + * @return {!proto.io.bisq.protobuffer.DaoStateStore} returns this +*/ +proto.io.bisq.protobuffer.DaoStateStore.prototype.setDaoState = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.io.bisq.protobuffer.DaoStateStore} returns this + */ +proto.io.bisq.protobuffer.DaoStateStore.prototype.clearDaoState = function() { + return this.setDaoState(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.io.bisq.protobuffer.DaoStateStore.prototype.hasDaoState = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated DaoStateHash dao_state_hash = 2; + * @return {!Array} + */ +proto.io.bisq.protobuffer.DaoStateStore.prototype.getDaoStateHashList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.io.bisq.protobuffer.DaoStateHash, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.io.bisq.protobuffer.DaoStateStore} returns this +*/ +proto.io.bisq.protobuffer.DaoStateStore.prototype.setDaoStateHashList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.io.bisq.protobuffer.DaoStateHash=} opt_value + * @param {number=} opt_index + * @return {!proto.io.bisq.protobuffer.DaoStateHash} + */ +proto.io.bisq.protobuffer.DaoStateStore.prototype.addDaoStateHash = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.io.bisq.protobuffer.DaoStateHash, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.io.bisq.protobuffer.DaoStateStore} returns this + */ +proto.io.bisq.protobuffer.DaoStateStore.prototype.clearDaoStateHashList = function() { + return this.setDaoStateHashList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.io.bisq.protobuffer.DaoStateHash.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.DaoStateHash.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.DaoStateHash} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.DaoStateHash.toObject = function(includeInstance, msg) { + var f, obj = { + height: jspb.Message.getFieldWithDefault(msg, 1, 0), + hash: msg.getHash_asB64(), + prevHash: msg.getPrevHash_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.DaoStateHash} + */ +proto.io.bisq.protobuffer.DaoStateHash.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.DaoStateHash; + return proto.io.bisq.protobuffer.DaoStateHash.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.DaoStateHash} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.DaoStateHash} + */ +proto.io.bisq.protobuffer.DaoStateHash.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.setHeight(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setHash(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setPrevHash(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.DaoStateHash.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.DaoStateHash.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.DaoStateHash} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.DaoStateHash.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHeight(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getPrevHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } +}; + + +/** + * optional int32 height = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.DaoStateHash.prototype.getHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.DaoStateHash} returns this + */ +proto.io.bisq.protobuffer.DaoStateHash.prototype.setHeight = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bytes hash = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.DaoStateHash.prototype.getHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes hash = 2; + * This is a type-conversion wrapper around `getHash()` + * @return {string} + */ +proto.io.bisq.protobuffer.DaoStateHash.prototype.getHash_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getHash())); +}; + + +/** + * optional bytes hash = 2; + * 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.DaoStateHash.prototype.getHash_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getHash())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.DaoStateHash} returns this + */ +proto.io.bisq.protobuffer.DaoStateHash.prototype.setHash = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * optional bytes prev_hash = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.DaoStateHash.prototype.getPrevHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes prev_hash = 3; + * This is a type-conversion wrapper around `getPrevHash()` + * @return {string} + */ +proto.io.bisq.protobuffer.DaoStateHash.prototype.getPrevHash_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getPrevHash())); +}; + + +/** + * optional bytes prev_hash = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPrevHash()` + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.DaoStateHash.prototype.getPrevHash_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getPrevHash())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.DaoStateHash} returns this + */ +proto.io.bisq.protobuffer.DaoStateHash.prototype.setPrevHash = 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.ProposalStateHash.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.ProposalStateHash.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.ProposalStateHash} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ProposalStateHash.toObject = function(includeInstance, msg) { + var f, obj = { + height: jspb.Message.getFieldWithDefault(msg, 1, 0), + hash: msg.getHash_asB64(), + prevHash: msg.getPrevHash_asB64(), + numProposals: 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.ProposalStateHash} + */ +proto.io.bisq.protobuffer.ProposalStateHash.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.ProposalStateHash; + return proto.io.bisq.protobuffer.ProposalStateHash.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.ProposalStateHash} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.ProposalStateHash} + */ +proto.io.bisq.protobuffer.ProposalStateHash.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.setHeight(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setHash(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setPrevHash(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt32()); + msg.setNumProposals(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.ProposalStateHash.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.ProposalStateHash.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.ProposalStateHash} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.ProposalStateHash.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHeight(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getPrevHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } + f = message.getNumProposals(); + if (f !== 0) { + writer.writeInt32( + 4, + f + ); + } +}; + + +/** + * optional int32 height = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.ProposalStateHash.prototype.getHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.ProposalStateHash} returns this + */ +proto.io.bisq.protobuffer.ProposalStateHash.prototype.setHeight = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bytes hash = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.ProposalStateHash.prototype.getHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes hash = 2; + * This is a type-conversion wrapper around `getHash()` + * @return {string} + */ +proto.io.bisq.protobuffer.ProposalStateHash.prototype.getHash_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getHash())); +}; + + +/** + * optional bytes hash = 2; + * 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.ProposalStateHash.prototype.getHash_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getHash())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.ProposalStateHash} returns this + */ +proto.io.bisq.protobuffer.ProposalStateHash.prototype.setHash = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * optional bytes prev_hash = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.ProposalStateHash.prototype.getPrevHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes prev_hash = 3; + * This is a type-conversion wrapper around `getPrevHash()` + * @return {string} + */ +proto.io.bisq.protobuffer.ProposalStateHash.prototype.getPrevHash_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getPrevHash())); +}; + + +/** + * optional bytes prev_hash = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPrevHash()` + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.ProposalStateHash.prototype.getPrevHash_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getPrevHash())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.ProposalStateHash} returns this + */ +proto.io.bisq.protobuffer.ProposalStateHash.prototype.setPrevHash = function(value) { + return jspb.Message.setProto3BytesField(this, 3, value); +}; + + +/** + * optional int32 num_proposals = 4; + * @return {number} + */ +proto.io.bisq.protobuffer.ProposalStateHash.prototype.getNumProposals = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.ProposalStateHash} returns this + */ +proto.io.bisq.protobuffer.ProposalStateHash.prototype.setNumProposals = 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.BlindVoteStateHash.prototype.toObject = function(opt_includeInstance) { + return proto.io.bisq.protobuffer.BlindVoteStateHash.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.io.bisq.protobuffer.BlindVoteStateHash} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BlindVoteStateHash.toObject = function(includeInstance, msg) { + var f, obj = { + height: jspb.Message.getFieldWithDefault(msg, 1, 0), + hash: msg.getHash_asB64(), + prevHash: msg.getPrevHash_asB64(), + numBlindVotes: 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.BlindVoteStateHash} + */ +proto.io.bisq.protobuffer.BlindVoteStateHash.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.io.bisq.protobuffer.BlindVoteStateHash; + return proto.io.bisq.protobuffer.BlindVoteStateHash.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.io.bisq.protobuffer.BlindVoteStateHash} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.io.bisq.protobuffer.BlindVoteStateHash} + */ +proto.io.bisq.protobuffer.BlindVoteStateHash.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.setHeight(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setHash(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setPrevHash(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt32()); + msg.setNumBlindVotes(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.BlindVoteStateHash.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.io.bisq.protobuffer.BlindVoteStateHash.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.io.bisq.protobuffer.BlindVoteStateHash} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.io.bisq.protobuffer.BlindVoteStateHash.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHeight(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getPrevHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } + f = message.getNumBlindVotes(); + if (f !== 0) { + writer.writeInt32( + 4, + f + ); + } +}; + + +/** + * optional int32 height = 1; + * @return {number} + */ +proto.io.bisq.protobuffer.BlindVoteStateHash.prototype.getHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BlindVoteStateHash} returns this + */ +proto.io.bisq.protobuffer.BlindVoteStateHash.prototype.setHeight = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional bytes hash = 2; + * @return {string} + */ +proto.io.bisq.protobuffer.BlindVoteStateHash.prototype.getHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes hash = 2; + * This is a type-conversion wrapper around `getHash()` + * @return {string} + */ +proto.io.bisq.protobuffer.BlindVoteStateHash.prototype.getHash_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getHash())); +}; + + +/** + * optional bytes hash = 2; + * 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.BlindVoteStateHash.prototype.getHash_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getHash())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.BlindVoteStateHash} returns this + */ +proto.io.bisq.protobuffer.BlindVoteStateHash.prototype.setHash = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * optional bytes prev_hash = 3; + * @return {string} + */ +proto.io.bisq.protobuffer.BlindVoteStateHash.prototype.getPrevHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes prev_hash = 3; + * This is a type-conversion wrapper around `getPrevHash()` + * @return {string} + */ +proto.io.bisq.protobuffer.BlindVoteStateHash.prototype.getPrevHash_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getPrevHash())); +}; + + +/** + * optional bytes prev_hash = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPrevHash()` + * @return {!Uint8Array} + */ +proto.io.bisq.protobuffer.BlindVoteStateHash.prototype.getPrevHash_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getPrevHash())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.io.bisq.protobuffer.BlindVoteStateHash} returns this + */ +proto.io.bisq.protobuffer.BlindVoteStateHash.prototype.setPrevHash = function(value) { + return jspb.Message.setProto3BytesField(this, 3, value); +}; + + +/** + * optional int32 num_blind_votes = 4; + * @return {number} + */ +proto.io.bisq.protobuffer.BlindVoteStateHash.prototype.getNumBlindVotes = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.BlindVoteStateHash} returns this + */ +proto.io.bisq.protobuffer.BlindVoteStateHash.prototype.setNumBlindVotes = 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.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 {number} */ (reader.readInt64()); + 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 (f !== 0) { + writer.writeInt64( + 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 {number} + */ +proto.io.bisq.protobuffer.PaymentAccount.prototype.getCreationDate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.PaymentAccount} returns this + */ +proto.io.bisq.protobuffer.PaymentAccount.prototype.setCreationDate = function(value) { + return jspb.Message.setProto3IntField(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 {number} */ (reader.readInt64()); + msg.setMaxTradePeriod(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + 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 (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getMaxTradeLimit(); + if (f !== 0) { + writer.writeInt64( + 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 {number} + */ +proto.io.bisq.protobuffer.PaymentMethod.prototype.getMaxTradePeriod = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.PaymentMethod} returns this + */ +proto.io.bisq.protobuffer.PaymentMethod.prototype.setMaxTradePeriod = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional int64 max_trade_limit = 3; + * @return {number} + */ +proto.io.bisq.protobuffer.PaymentMethod.prototype.getMaxTradeLimit = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.io.bisq.protobuffer.PaymentMethod} returns this + */ +proto.io.bisq.protobuffer.PaymentMethod.prototype.setMaxTradeLimit = function(value) { + return jspb.Message.setProto3IntField(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 +}; + +/** + * @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 +}; + +/** + * @enum {number} + */ +proto.io.bisq.protobuffer.TxType = { + PB_ERROR_TX_TYPE: 0, + UNDEFINED_TX_TYPE: 1, + UNVERIFIED: 2, + INVALID: 3, + GENESIS: 4, + TRANSFER_BSQ: 5, + PAY_TRADE_FEE: 6, + PROPOSAL: 7, + COMPENSATION_REQUEST: 8, + REIMBURSEMENT_REQUEST: 9, + BLIND_VOTE: 10, + VOTE_REVEAL: 11, + LOCKUP: 12, + UNLOCK: 13, + ASSET_LISTING_FEE: 14, + PROOF_OF_BURN: 15, + IRREGULAR: 16 +}; + +/** + * @enum {number} + */ +proto.io.bisq.protobuffer.TxOutputType = { + PB_ERROR_TX_OUTPUT_TYPE: 0, + UNDEFINED_OUTPUT: 1, + GENESIS_OUTPUT: 2, + BSQ_OUTPUT: 3, + BTC_OUTPUT: 4, + PROPOSAL_OP_RETURN_OUTPUT: 5, + COMP_REQ_OP_RETURN_OUTPUT: 6, + REIMBURSEMENT_OP_RETURN_OUTPUT: 7, + CONFISCATE_BOND_OP_RETURN_OUTPUT: 8, + ISSUANCE_CANDIDATE_OUTPUT: 9, + BLIND_VOTE_LOCK_STAKE_OUTPUT: 10, + BLIND_VOTE_OP_RETURN_OUTPUT: 11, + VOTE_REVEAL_UNLOCK_STAKE_OUTPUT: 12, + VOTE_REVEAL_OP_RETURN_OUTPUT: 13, + ASSET_LISTING_FEE_OP_RETURN_OUTPUT: 14, + PROOF_OF_BURN_OP_RETURN_OUTPUT: 15, + LOCKUP_OUTPUT: 16, + LOCKUP_OP_RETURN_OUTPUT: 17, + UNLOCK_OUTPUT: 18, + INVALID_OUTPUT: 19 +}; + +/** + * @enum {number} + */ +proto.io.bisq.protobuffer.ScriptType = { + PB_ERROR_SCRIPT_TYPES: 0, + PUB_KEY: 1, + PUB_KEY_HASH: 2, + SCRIPT_HASH: 3, + MULTISIG: 4, + NULL_DATA: 5, + WITNESS_V0_KEYHASH: 6, + WITNESS_V0_SCRIPTHASH: 7, + NONSTANDARD: 8 +}; + +goog.object.extend(exports, proto.io.bisq.protobuffer);